diff options
Diffstat (limited to 'deps/v8/src/contexts.cc')
-rw-r--r-- | deps/v8/src/contexts.cc | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/deps/v8/src/contexts.cc b/deps/v8/src/contexts.cc index 4cb52d3a6c..93c9795404 100644 --- a/deps/v8/src/contexts.cc +++ b/deps/v8/src/contexts.cc @@ -55,15 +55,6 @@ JSBuiltinsObject* Context::builtins() { } -Context* Context::global_context() { - Context* current = this; - while (!current->IsGlobalContext()) { - current = current->previous(); - } - return current; -} - - Context* Context::native_context() { // Fast case: the global object for this context has been set. In // that case, the global object has a direct pointer to the global @@ -192,10 +183,6 @@ Handle<Object> Context::Lookup(Handle<String> name, ? IMMUTABLE_CHECK_INITIALIZED_HARMONY : IMMUTABLE_IS_INITIALIZED_HARMONY; break; - case MODULE: - *attributes = READ_ONLY; - *binding_flags = IMMUTABLE_IS_INITIALIZED_HARMONY; - break; case DYNAMIC: case DYNAMIC_GLOBAL: case DYNAMIC_LOCAL: @@ -264,6 +251,8 @@ void Context::AddOptimizedFunction(JSFunction* function) { } } + CHECK(function->next_function_link()->IsUndefined()); + // Check that the context belongs to the weak native contexts list. bool found = false; Object* context = GetHeap()->native_contexts_list(); @@ -276,16 +265,6 @@ void Context::AddOptimizedFunction(JSFunction* function) { } CHECK(found); #endif - - // If the function link field is already used then the function was - // enqueued as a code flushing candidate and we remove it now. - if (!function->next_function_link()->IsUndefined()) { - CodeFlusher* flusher = GetHeap()->mark_compact_collector()->code_flusher(); - flusher->EvictCandidate(function); - } - - ASSERT(function->next_function_link()->IsUndefined()); - function->set_next_function_link(get(OPTIMIZED_FUNCTIONS_LIST)); set(OPTIMIZED_FUNCTIONS_LIST, function); } |