Index: src/builtins/builtins.cc |
diff --git a/src/builtins/builtins.cc b/src/builtins/builtins.cc |
index 45a4842bb3b349384394167bf0f5c6144df60b6f..1d8b3d34b6d77341ce59bfe9dfd0ac3058d47c96 100644 |
--- a/src/builtins/builtins.cc |
+++ b/src/builtins/builtins.cc |
@@ -125,6 +125,14 @@ Callable Builtins::CallableFor(Isolate* isolate, Name name) { |
BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, CASE, CASE, |
CASE, IGNORE_BUILTIN, IGNORE_BUILTIN) |
#undef CASE |
+#define CASE(Name, ...) \ |
+ case k##Name: { \ |
+ Handle<Code> code = isolate->builtins()->Name(); \ |
+ return Callable(code, BuiltinDescriptor(isolate)); \ |
+ } |
+ BUILTIN_LIST(CASE, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, |
+ IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) |
+#undef CASE |
default: |
UNREACHABLE(); |
return Callable(Handle<Code>::null(), VoidDescriptor(isolate)); |