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

Side by Side Diff: src/bootstrapper.cc

Issue 1891033002: [Atomics] Remove Atomics code stubs; use TF ops (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove s390 code stub 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 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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