Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 4897592cebbe02371491ccffc9eb12bdc00650ce..7dee66f6de955f76e1100f2cd1ccde8e7f1475f1 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -993,11 +993,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()) { |