Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 454cf46685b9663ab0b57b3b6070dde80a09007e..637aeca12b6dfb7925d78d092907d8bf024d7101 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1655,8 +1655,19 @@ void Builtins::InitBuiltinFunctionTable() { |
functions->extra_args = NO_EXTRA_ARGUMENTS; \ |
++functions; |
+#define DEF_FUNCTION_PTR_H(aname, kind, extra) \ |
+ functions->generator = FUNCTION_ADDR(Generate_##aname); \ |
+ functions->c_code = NULL; \ |
+ functions->s_name = #aname; \ |
+ functions->name = k##aname; \ |
+ functions->flags = Code::ComputeFlags( \ |
+ Code::HANDLER, MONOMORPHIC, extra, Code::NORMAL, Code::kind); \ |
+ functions->extra_args = NO_EXTRA_ARGUMENTS; \ |
+ ++functions; |
+ |
BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) |
BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) |
+ BUILTIN_LIST_H(DEF_FUNCTION_PTR_H) |
BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) |
#undef DEF_FUNCTION_PTR_C |
@@ -1781,8 +1792,15 @@ Handle<Code> Builtins::name() { \ |
reinterpret_cast<Code**>(builtin_address(k##name)); \ |
return Handle<Code>(code_address); \ |
} |
+#define DEFINE_BUILTIN_ACCESSOR_H(name, kind, extra) \ |
+Handle<Code> Builtins::name() { \ |
+ Code** code_address = \ |
+ reinterpret_cast<Code**>(builtin_address(k##name)); \ |
+ return Handle<Code>(code_address); \ |
+} |
BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
+BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) |
BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
#undef DEFINE_BUILTIN_ACCESSOR_C |
#undef DEFINE_BUILTIN_ACCESSOR_A |