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

Side by Side Diff: src/bootstrapper.cc

Issue 2623633003: [Atomics] Make Atomics.exchange a builtin using TF (Closed)
Patch Set: [Atomics] Make Atomics.exchange a builtin using TF Created 3 years, 11 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 | « no previous file | src/builtins/builtins.h » ('j') | src/compiler/x64/code-generator-x64.cc » ('J')
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/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3487 matching lines...) Expand 10 before | Expand all | Expand 10 after
3498 cons, 3498 cons,
3499 Handle<Object>(native_context()->initial_object_prototype(), isolate)); 3499 Handle<Object>(native_context()->initial_object_prototype(), isolate));
3500 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); 3500 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED);
3501 DCHECK(atomics_object->IsJSObject()); 3501 DCHECK(atomics_object->IsJSObject());
3502 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); 3502 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM);
3503 3503
3504 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), 3504 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"),
3505 Builtins::kAtomicsLoad, 2, true); 3505 Builtins::kAtomicsLoad, 2, true);
3506 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), 3506 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"),
3507 Builtins::kAtomicsStore, 3, true); 3507 Builtins::kAtomicsStore, 3, true);
3508 SimpleInstallFunction(atomics_object,
3509 factory->InternalizeUtf8String("exchange"),
3510 Builtins::kAtomicsExchange, 3, true);
3508 } 3511 }
3509 3512
3510 3513
3511 void Genesis::InitializeGlobal_harmony_simd() { 3514 void Genesis::InitializeGlobal_harmony_simd() {
3512 if (!FLAG_harmony_simd) return; 3515 if (!FLAG_harmony_simd) return;
3513 3516
3514 Handle<JSGlobalObject> global( 3517 Handle<JSGlobalObject> global(
3515 JSGlobalObject::cast(native_context()->global_object())); 3518 JSGlobalObject::cast(native_context()->global_object()));
3516 Isolate* isolate = global->GetIsolate(); 3519 Isolate* isolate = global->GetIsolate();
3517 Factory* factory = isolate->factory(); 3520 Factory* factory = isolate->factory();
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
4763 } 4766 }
4764 4767
4765 4768
4766 // Called when the top-level V8 mutex is destroyed. 4769 // Called when the top-level V8 mutex is destroyed.
4767 void Bootstrapper::FreeThreadResources() { 4770 void Bootstrapper::FreeThreadResources() {
4768 DCHECK(!IsActive()); 4771 DCHECK(!IsActive());
4769 } 4772 }
4770 4773
4771 } // namespace internal 4774 } // namespace internal
4772 } // namespace v8 4775 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/compiler/x64/code-generator-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698