OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |