| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 5aef46ee3d040b8000b2b1605fd462abbb0f10eb..a368f29810bde90f624fe77ffcca11c18455b63a 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -445,9 +445,6 @@
|
| FLAG_turbo_asm_deoptimization) {
|
| info()->MarkAsDeoptimizationEnabled();
|
| }
|
| - if (info()->has_global_object() && FLAG_native_context_specialization) {
|
| - info()->MarkAsNativeContextSpecializing();
|
| - }
|
|
|
| Timer t(this, &time_taken_to_create_graph_);
|
| compiler::Pipeline pipeline(info());
|
| @@ -775,8 +772,7 @@
|
| Handle<Code> code = info->code();
|
| if (code->kind() != Code::OPTIMIZED_FUNCTION) return; // Nothing to do.
|
|
|
| - // Function context specialization folds-in the function context,
|
| - // so no sharing can occur.
|
| + // Context specialization folds-in the context, so no sharing can occur.
|
| if (info->is_function_context_specializing()) return;
|
| // Frame specialization implies function context specialization.
|
| DCHECK(!info->is_frame_specializing());
|
| @@ -794,12 +790,11 @@
|
| literals, info->osr_ast_id());
|
| }
|
|
|
| - // Do not cache (native) context-independent code compiled for OSR.
|
| + // Do not cache context-independent code compiled for OSR.
|
| if (code->is_turbofanned() && info->is_osr()) return;
|
|
|
| - // Cache optimized (native) context-independent code.
|
| - if (FLAG_turbo_cache_shared_code && code->is_turbofanned() &&
|
| - !info->is_native_context_specializing()) {
|
| + // Cache optimized context-independent code.
|
| + if (FLAG_turbo_cache_shared_code && code->is_turbofanned()) {
|
| DCHECK(!info->is_function_context_specializing());
|
| DCHECK(info->osr_ast_id().IsNone());
|
| Handle<SharedFunctionInfo> shared(function->shared());
|
|
|