Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index d798c3ede65b34d4dd860aeafc0e9ebe28e26a89..7c09fab49c83c23698d9972d75e341556af5860f 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -987,11 +987,8 @@ Handle<JSObject> Factory::NewArgumentsObject(Handle<Object> callee, |
Handle<JSFunction> Factory::CreateApiFunction( |
Handle<FunctionTemplateInfo> obj, ApiInstanceType instance_type) { |
- Handle<Code> code = Handle<Code>(isolate()->builtins()->builtin( |
- Builtins::HandleApiCall)); |
- Handle<Code> construct_stub = |
- Handle<Code>(isolate()->builtins()->builtin( |
- Builtins::JSConstructStubApi)); |
+ Handle<Code> code = isolate()->builtins()->HandleApiCall(); |
+ Handle<Code> construct_stub = isolate()->builtins()->JSConstructStubApi(); |
int internal_field_count = 0; |
if (!obj->instance_template()->IsUndefined()) { |