| Index: src/compiler/pipeline.cc
|
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
|
| index 3a542e6890b5825036b5d54ccda37d404a8ecf9a..bc7ebae56adcb21040b4812048d45fc38f2341d6 100644
|
| --- a/src/compiler/pipeline.cc
|
| +++ b/src/compiler/pipeline.cc
|
| @@ -990,10 +990,8 @@ Handle<Code> Pipeline::GenerateCode() {
|
| // TODO(mstarzinger): This is just a temporary hack to make TurboFan work,
|
| // the correct solution is to restore the context register after invoking
|
| // builtins from full-codegen.
|
| - for (int i = 0; i < Builtins::NumberOfJavaScriptBuiltins(); i++) {
|
| - Builtins::JavaScript id = static_cast<Builtins::JavaScript>(i);
|
| - Object* builtin = isolate()->js_builtins_object()->javascript_builtin(id);
|
| - if (*info()->closure() == builtin) return Handle<Code>::null();
|
| + if (Context::IsJSBuiltin(isolate()->native_context(), info()->closure())) {
|
| + return Handle<Code>::null();
|
| }
|
|
|
| ZonePool zone_pool;
|
|
|