Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index b75ffe81847b623177849d1aa66844cde32aa975..327f93888645b77063e9d41986fe6b7d7a18a61a 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13493,6 +13493,14 @@ const char* Code::Kind2String(Kind kind) { |
return NULL; |
} |
+// Identify kind of code. |
+const char* AbstractCode::Kind2String(Kind kind) { |
+ if (kind < AbstractCode::INTERPRETED_FUNCTION) |
+ return Code::Kind2String((Code::Kind)kind); |
+ if (kind == AbstractCode::INTERPRETED_FUNCTION) return "INTERPRETED_FUNCTION"; |
+ UNREACHABLE(); |
+ return NULL; |
+} |
Handle<WeakCell> Code::WeakCellFor(Handle<Code> code) { |
DCHECK(code->kind() == OPTIMIZED_FUNCTION); |