| 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 4130 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4141 } | 4141 } | 
| 4142 | 4142 | 
| 4143 | 4143 | 
| 4144 bool Genesis::InstallSpecialObjects(Handle<Context> native_context) { | 4144 bool Genesis::InstallSpecialObjects(Handle<Context> native_context) { | 
| 4145   Isolate* isolate = native_context->GetIsolate(); | 4145   Isolate* isolate = native_context->GetIsolate(); | 
| 4146   // Don't install extensions into the snapshot. | 4146   // Don't install extensions into the snapshot. | 
| 4147   if (isolate->serializer_enabled()) return true; | 4147   if (isolate->serializer_enabled()) return true; | 
| 4148 | 4148 | 
| 4149   Factory* factory = isolate->factory(); | 4149   Factory* factory = isolate->factory(); | 
| 4150   HandleScope scope(isolate); | 4150   HandleScope scope(isolate); | 
| 4151   Handle<JSGlobalObject> global(JSGlobalObject::cast( |  | 
| 4152       native_context->global_object())); |  | 
| 4153 | 4151 | 
| 4154   Handle<JSObject> Error = isolate->error_function(); | 4152   Handle<JSObject> Error = isolate->error_function(); | 
| 4155   Handle<String> name = | 4153   Handle<String> name = | 
| 4156       factory->InternalizeOneByteString(STATIC_CHAR_VECTOR("stackTraceLimit")); | 4154       factory->InternalizeOneByteString(STATIC_CHAR_VECTOR("stackTraceLimit")); | 
| 4157   Handle<Smi> stack_trace_limit(Smi::FromInt(FLAG_stack_trace_limit), isolate); | 4155   Handle<Smi> stack_trace_limit(Smi::FromInt(FLAG_stack_trace_limit), isolate); | 
| 4158   JSObject::AddProperty(Error, name, stack_trace_limit, NONE); | 4156   JSObject::AddProperty(Error, name, stack_trace_limit, NONE); | 
| 4159 | 4157 | 
| 4160   WasmJs::Install(isolate, global); | 4158   if (FLAG_expose_wasm || FLAG_validate_asm) { | 
|  | 4159     WasmJs::Install(isolate); | 
|  | 4160   } | 
| 4161 | 4161 | 
| 4162   return true; | 4162   return true; | 
| 4163 } | 4163 } | 
| 4164 | 4164 | 
| 4165 | 4165 | 
| 4166 static uint32_t Hash(RegisteredExtension* extension) { | 4166 static uint32_t Hash(RegisteredExtension* extension) { | 
| 4167   return v8::internal::ComputePointerHash(extension); | 4167   return v8::internal::ComputePointerHash(extension); | 
| 4168 } | 4168 } | 
| 4169 | 4169 | 
| 4170 Genesis::ExtensionStates::ExtensionStates() : map_(8) {} | 4170 Genesis::ExtensionStates::ExtensionStates() : map_(8) {} | 
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4740 } | 4740 } | 
| 4741 | 4741 | 
| 4742 | 4742 | 
| 4743 // Called when the top-level V8 mutex is destroyed. | 4743 // Called when the top-level V8 mutex is destroyed. | 
| 4744 void Bootstrapper::FreeThreadResources() { | 4744 void Bootstrapper::FreeThreadResources() { | 
| 4745   DCHECK(!IsActive()); | 4745   DCHECK(!IsActive()); | 
| 4746 } | 4746 } | 
| 4747 | 4747 | 
| 4748 }  // namespace internal | 4748 }  // namespace internal | 
| 4749 }  // namespace v8 | 4749 }  // namespace v8 | 
| OLD | NEW | 
|---|