Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 09581aa82ac1ae1f4dba521dc2994cea55eab3dd..95f0760aec097c88aca4eae18e704c37d1c07f44 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -149,13 +149,16 @@ Object* CodeStub::TryGetCode() { |
} |
-const char* CodeStub::MajorName(CodeStub::Major major_key) { |
+const char* CodeStub::MajorName(CodeStub::Major major_key, |
+ bool allow_unknown_keys) { |
switch (major_key) { |
#define DEF_CASE(name) case name: return #name; |
CODE_STUB_LIST(DEF_CASE) |
#undef DEF_CASE |
default: |
- UNREACHABLE(); |
+ if (!allow_unknown_keys) { |
+ UNREACHABLE(); |
+ } |
return NULL; |
} |
} |