Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: src/bootstrapper.cc

Issue 2287173002: Replace CollectVariables with locals(), update callsites to walk locals instead (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: restore undefined handling Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ast/variables.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3985 matching lines...) Expand 10 before | Expand all | Expand 10 after
3996 } else if (context_type == DEBUG_CONTEXT) { 3996 } else if (context_type == DEBUG_CONTEXT) {
3997 DCHECK(!isolate->serializer_enabled()); 3997 DCHECK(!isolate->serializer_enabled());
3998 InitializeExperimentalGlobal(); 3998 InitializeExperimentalGlobal();
3999 if (!InstallDebuggerNatives()) return; 3999 if (!InstallDebuggerNatives()) return;
4000 } 4000 }
4001 4001
4002 ConfigureUtilsObject(context_type); 4002 ConfigureUtilsObject(context_type);
4003 4003
4004 // Check that the script context table is empty except for the 'this' binding. 4004 // Check that the script context table is empty except for the 'this' binding.
4005 // We do not need script contexts for native scripts. 4005 // We do not need script contexts for native scripts.
4006 if (!FLAG_global_var_shortcuts) { 4006 DCHECK_EQ(1, native_context()->script_context_table()->used());
4007 DCHECK_EQ(1, native_context()->script_context_table()->used());
4008 }
4009 4007
4010 result_ = native_context(); 4008 result_ = native_context();
4011 } 4009 }
4012 4010
4013 Genesis::Genesis(Isolate* isolate, 4011 Genesis::Genesis(Isolate* isolate,
4014 MaybeHandle<JSGlobalProxy> maybe_global_proxy, 4012 MaybeHandle<JSGlobalProxy> maybe_global_proxy,
4015 v8::Local<v8::ObjectTemplate> global_proxy_template) 4013 v8::Local<v8::ObjectTemplate> global_proxy_template)
4016 : isolate_(isolate), active_(isolate->bootstrapper()) { 4014 : isolate_(isolate), active_(isolate->bootstrapper()) {
4017 NoTrackDoubleFieldsForSerializerScope disable_scope(isolate); 4015 NoTrackDoubleFieldsForSerializerScope disable_scope(isolate);
4018 result_ = Handle<Context>::null(); 4016 result_ = Handle<Context>::null();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
4095 } 4093 }
4096 4094
4097 4095
4098 // Called when the top-level V8 mutex is destroyed. 4096 // Called when the top-level V8 mutex is destroyed.
4099 void Bootstrapper::FreeThreadResources() { 4097 void Bootstrapper::FreeThreadResources() {
4100 DCHECK(!IsActive()); 4098 DCHECK(!IsActive());
4101 } 4099 }
4102 4100
4103 } // namespace internal 4101 } // namespace internal
4104 } // namespace v8 4102 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/variables.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698