Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index b82d377f71fda4040cdcb5784c0f14744a64f42b..3dcaae1ac19e088a08c53dab0505e5d15a2b5f9a 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2798,13 +2798,8 @@ static Handle<JSFunction> InstallBuiltin(Isolate* isolate, |
Builtins::Name builtin_name) { |
Handle<String> key = isolate->factory()->InternalizeUtf8String(name); |
Handle<Code> code(isolate->builtins()->builtin(builtin_name)); |
- Handle<JSFunction> optimized = |
- isolate->factory()->NewFunction(MaybeHandle<Object>(), |
- key, |
- JS_OBJECT_TYPE, |
- JSObject::kHeaderSize, |
- code, |
- false); |
+ Handle<JSFunction> optimized = isolate->factory()->NewFunction( |
+ key, MaybeHandle<Object>(), code); |
optimized->shared()->DontAdaptArguments(); |
JSReceiver::SetProperty(holder, key, optimized, NONE, STRICT).Assert(); |
return optimized; |