| 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/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
| (...skipping 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2453 Handle<String> name = factory->InternalizeUtf8String("Atomics"); | 2453 Handle<String> name = factory->InternalizeUtf8String("Atomics"); |
| 2454 Handle<JSFunction> cons = factory->NewFunction(name); | 2454 Handle<JSFunction> cons = factory->NewFunction(name); |
| 2455 JSFunction::SetInstancePrototype( | 2455 JSFunction::SetInstancePrototype( |
| 2456 cons, | 2456 cons, |
| 2457 Handle<Object>(native_context()->initial_object_prototype(), isolate)); | 2457 Handle<Object>(native_context()->initial_object_prototype(), isolate)); |
| 2458 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); | 2458 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); |
| 2459 DCHECK(atomics_object->IsJSObject()); | 2459 DCHECK(atomics_object->IsJSObject()); |
| 2460 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); | 2460 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); |
| 2461 | 2461 |
| 2462 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), | 2462 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), |
| 2463 Builtins::kAtomicsLoadCheck, 2, true); | 2463 Builtins::kAtomicsLoad, 2, true); |
| 2464 } | 2464 } |
| 2465 | 2465 |
| 2466 | 2466 |
| 2467 void Genesis::InitializeGlobal_harmony_simd() { | 2467 void Genesis::InitializeGlobal_harmony_simd() { |
| 2468 if (!FLAG_harmony_simd) return; | 2468 if (!FLAG_harmony_simd) return; |
| 2469 | 2469 |
| 2470 Handle<JSGlobalObject> global( | 2470 Handle<JSGlobalObject> global( |
| 2471 JSGlobalObject::cast(native_context()->global_object())); | 2471 JSGlobalObject::cast(native_context()->global_object())); |
| 2472 Isolate* isolate = global->GetIsolate(); | 2472 Isolate* isolate = global->GetIsolate(); |
| 2473 Factory* factory = isolate->factory(); | 2473 Factory* factory = isolate->factory(); |
| (...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3644 } | 3644 } |
| 3645 | 3645 |
| 3646 | 3646 |
| 3647 // Called when the top-level V8 mutex is destroyed. | 3647 // Called when the top-level V8 mutex is destroyed. |
| 3648 void Bootstrapper::FreeThreadResources() { | 3648 void Bootstrapper::FreeThreadResources() { |
| 3649 DCHECK(!IsActive()); | 3649 DCHECK(!IsActive()); |
| 3650 } | 3650 } |
| 3651 | 3651 |
| 3652 } // namespace internal | 3652 } // namespace internal |
| 3653 } // namespace v8 | 3653 } // namespace v8 |
| OLD | NEW |