| 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 3883 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3894 | 3894 | 
| 3895   Handle<JSGlobalObject> global(native_context()->global_object()); | 3895   Handle<JSGlobalObject> global(native_context()->global_object()); | 
| 3896   Isolate* isolate = global->GetIsolate(); | 3896   Isolate* isolate = global->GetIsolate(); | 
| 3897   Factory* factory = isolate->factory(); | 3897   Factory* factory = isolate->factory(); | 
| 3898 | 3898 | 
| 3899   Handle<JSFunction> shared_array_buffer_fun = | 3899   Handle<JSFunction> shared_array_buffer_fun = | 
| 3900       InstallArrayBuffer(global, "SharedArrayBuffer", | 3900       InstallArrayBuffer(global, "SharedArrayBuffer", | 
| 3901                          Builtins::kSharedArrayBufferPrototypeGetByteLength, | 3901                          Builtins::kSharedArrayBufferPrototypeGetByteLength, | 
| 3902                          BuiltinFunctionId::kSharedArrayBufferByteLength, | 3902                          BuiltinFunctionId::kSharedArrayBufferByteLength, | 
| 3903                          Builtins::kSharedArrayBufferPrototypeSlice); | 3903                          Builtins::kSharedArrayBufferPrototypeSlice); | 
| 3904   native_context()->set_shared_array_buffer_fun(*shared_array_buffer_fun); | 3904   InstallWithIntrinsicDefaultProto(isolate, shared_array_buffer_fun, | 
|  | 3905                                    Context::SHARED_ARRAY_BUFFER_FUN_INDEX); | 
|  | 3906   InstallSpeciesGetter(shared_array_buffer_fun); | 
| 3905 | 3907 | 
| 3906   Handle<String> name = factory->InternalizeUtf8String("Atomics"); | 3908   Handle<String> name = factory->InternalizeUtf8String("Atomics"); | 
| 3907   Handle<JSFunction> cons = factory->NewFunction(name); | 3909   Handle<JSFunction> cons = factory->NewFunction(name); | 
| 3908   JSFunction::SetInstancePrototype( | 3910   JSFunction::SetInstancePrototype( | 
| 3909       cons, | 3911       cons, | 
| 3910       Handle<Object>(native_context()->initial_object_prototype(), isolate)); | 3912       Handle<Object>(native_context()->initial_object_prototype(), isolate)); | 
| 3911   Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); | 3913   Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); | 
| 3912   DCHECK(atomics_object->IsJSObject()); | 3914   DCHECK(atomics_object->IsJSObject()); | 
| 3913   JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); | 3915   JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); | 
| 3914   JSObject::AddProperty(atomics_object, factory->to_string_tag_symbol(), name, | 3916   JSObject::AddProperty(atomics_object, factory->to_string_tag_symbol(), name, | 
| (...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5290 } | 5292 } | 
| 5291 | 5293 | 
| 5292 | 5294 | 
| 5293 // Called when the top-level V8 mutex is destroyed. | 5295 // Called when the top-level V8 mutex is destroyed. | 
| 5294 void Bootstrapper::FreeThreadResources() { | 5296 void Bootstrapper::FreeThreadResources() { | 
| 5295   DCHECK(!IsActive()); | 5297   DCHECK(!IsActive()); | 
| 5296 } | 5298 } | 
| 5297 | 5299 | 
| 5298 }  // namespace internal | 5300 }  // namespace internal | 
| 5299 }  // namespace v8 | 5301 }  // namespace v8 | 
| OLD | NEW | 
|---|