diff --git a/common.gypi b/common.gypi index 2a1d72f655c6b3..f3e9ac4154875f 100644 --- a/common.gypi +++ b/common.gypi @@ -28,7 +28,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.5', + 'v8_embedder_string': '-node.6', # Enable disassembler for `--print-code` v8 options 'v8_enable_disassembler': 1, diff --git a/deps/v8/src/api.cc b/deps/v8/src/api.cc index f51576ed2a6132..34b4773c2f495d 100644 --- a/deps/v8/src/api.cc +++ b/deps/v8/src/api.cc @@ -10148,6 +10148,10 @@ const char* CodeEvent::GetCodeEventTypeName(CodeEventType code_event_type) { CODE_EVENTS_LIST(V) #undef V } + // The execution should never pass here + UNREACHABLE(); + // NOTE(mmarchini): Workaround to fix a compiler failure on GCC 4.9 + return "Unknown"; } CodeEventHandler::CodeEventHandler(Isolate* isolate) { diff --git a/deps/v8/src/log.cc b/deps/v8/src/log.cc index f46f849b4d0295..fb3b4761a34e78 100644 --- a/deps/v8/src/log.cc +++ b/deps/v8/src/log.cc @@ -59,6 +59,10 @@ static v8::CodeEventType GetCodeEventTypeForTag( TAGS_LIST(V) #undef V } + // The execution should never pass here + UNREACHABLE(); + // NOTE(mmarchini): Workaround to fix a compiler failure on GCC 4.9 + return v8::CodeEventType::kUnknownType; } #define CALL_CODE_EVENT_HANDLER(Call) \ if (listener_) { \