Chromium Code Reviews| Index: src/bootstrapper.cc |
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
| index a20f87b122cda6954667cb88e20d1c40a5e7e51a..5c98a5c77dff86993ee2cbc5910f1510d43a8e51 100644 |
| --- a/src/bootstrapper.cc |
| +++ b/src/bootstrapper.cc |
| @@ -2094,11 +2094,9 @@ bool Genesis::InstallJSBuiltins(Handle<JSBuiltinsObject> builtins) { |
| builtins->set_javascript_builtin(id, *function); |
| Handle<SharedFunctionInfo> shared |
|
Michael Starzinger
2012/06/05 12:07:41
Move that below the compilation, or inline it into
ulan
2012/06/05 13:14:16
Done.
|
| = Handle<SharedFunctionInfo>(function->shared()); |
| - if (!SharedFunctionInfo::EnsureCompiled(shared, CLEAR_EXCEPTION)) { |
| + if (!JSFunction::CompileLazy(function, CLEAR_EXCEPTION)) { |
| return false; |
| } |
| - // Set the code object on the function object. |
| - function->ReplaceCode(function->shared()->code()); |
| builtins->set_javascript_builtin_code(id, shared->code()); |
| } |
| return true; |