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

Side by Side Diff: src/bootstrapper.cc

Issue 1884883003: Revert of [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/arm64/interface-descriptors-arm64.cc ('k') | src/builtins.h » ('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/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 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2435 factory()->search_symbol()); 2435 factory()->search_symbol());
2436 InstallPublicSymbol(factory(), native_context(), "split", 2436 InstallPublicSymbol(factory(), native_context(), "split",
2437 factory()->split_symbol()); 2437 factory()->split_symbol());
2438 } 2438 }
2439 2439
2440 2440
2441 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { 2441 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() {
2442 if (!FLAG_harmony_sharedarraybuffer) return; 2442 if (!FLAG_harmony_sharedarraybuffer) return;
2443 2443
2444 Handle<JSGlobalObject> global(native_context()->global_object()); 2444 Handle<JSGlobalObject> global(native_context()->global_object());
2445 Isolate* isolate = global->GetIsolate();
2446 Factory* factory = isolate->factory();
2447
2448 Handle<JSFunction> shared_array_buffer_fun = 2445 Handle<JSFunction> shared_array_buffer_fun =
2449 InstallArrayBuffer(global, "SharedArrayBuffer"); 2446 InstallArrayBuffer(global, "SharedArrayBuffer");
2450 native_context()->set_shared_array_buffer_fun(*shared_array_buffer_fun); 2447 native_context()->set_shared_array_buffer_fun(*shared_array_buffer_fun);
2451
2452 Handle<String> name = factory->InternalizeUtf8String("Atomics");
2453 Handle<JSFunction> cons = factory->NewFunction(name);
2454 JSFunction::SetInstancePrototype(
2455 cons,
2456 Handle<Object>(native_context()->initial_object_prototype(), isolate));
2457 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED);
2458 DCHECK(atomics_object->IsJSObject());
2459 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM);
2460
2461 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"),
2462 Builtins::kAtomicsLoadCheck, 2, true);
2463 } 2448 }
2464 2449
2465 2450
2466 void Genesis::InitializeGlobal_harmony_simd() { 2451 void Genesis::InitializeGlobal_harmony_simd() {
2467 if (!FLAG_harmony_simd) return; 2452 if (!FLAG_harmony_simd) return;
2468 2453
2469 Handle<JSGlobalObject> global( 2454 Handle<JSGlobalObject> global(
2470 JSGlobalObject::cast(native_context()->global_object())); 2455 JSGlobalObject::cast(native_context()->global_object()));
2471 Isolate* isolate = global->GetIsolate(); 2456 Isolate* isolate = global->GetIsolate();
2472 Factory* factory = isolate->factory(); 2457 Factory* factory = isolate->factory();
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
3642 } 3627 }
3643 3628
3644 3629
3645 // Called when the top-level V8 mutex is destroyed. 3630 // Called when the top-level V8 mutex is destroyed.
3646 void Bootstrapper::FreeThreadResources() { 3631 void Bootstrapper::FreeThreadResources() {
3647 DCHECK(!IsActive()); 3632 DCHECK(!IsActive());
3648 } 3633 }
3649 3634
3650 } // namespace internal 3635 } // namespace internal
3651 } // namespace v8 3636 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698