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

Side by Side Diff: src/bootstrapper.cc

Issue 2623633003: [Atomics] Make Atomics.exchange a builtin using TF (Closed)
Patch Set: remove 0 extend for arm Created 3 years, 9 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/builtins/builtins-sharedarraybuffer.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 3693 matching lines...) Expand 10 before | Expand all | Expand 10 after
3704 cons, 3704 cons,
3705 Handle<Object>(native_context()->initial_object_prototype(), isolate)); 3705 Handle<Object>(native_context()->initial_object_prototype(), isolate));
3706 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); 3706 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED);
3707 DCHECK(atomics_object->IsJSObject()); 3707 DCHECK(atomics_object->IsJSObject());
3708 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); 3708 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM);
3709 3709
3710 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), 3710 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"),
3711 Builtins::kAtomicsLoad, 2, true); 3711 Builtins::kAtomicsLoad, 2, true);
3712 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), 3712 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"),
3713 Builtins::kAtomicsStore, 3, true); 3713 Builtins::kAtomicsStore, 3, true);
3714 SimpleInstallFunction(atomics_object,
3715 factory->InternalizeUtf8String("exchange"),
3716 Builtins::kAtomicsExchange, 3, true);
3714 } 3717 }
3715 3718
3716 void Genesis::InitializeGlobal_harmony_array_prototype_values() { 3719 void Genesis::InitializeGlobal_harmony_array_prototype_values() {
3717 if (!FLAG_harmony_array_prototype_values) return; 3720 if (!FLAG_harmony_array_prototype_values) return;
3718 Handle<JSFunction> array_constructor(native_context()->array_function()); 3721 Handle<JSFunction> array_constructor(native_context()->array_function());
3719 Handle<JSObject> array_prototype( 3722 Handle<JSObject> array_prototype(
3720 JSObject::cast(array_constructor->instance_prototype())); 3723 JSObject::cast(array_constructor->instance_prototype()));
3721 Handle<Object> values_iterator = 3724 Handle<Object> values_iterator =
3722 JSObject::GetProperty(array_prototype, factory()->iterator_symbol()) 3725 JSObject::GetProperty(array_prototype, factory()->iterator_symbol())
3723 .ToHandleChecked(); 3726 .ToHandleChecked();
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
5103 } 5106 }
5104 5107
5105 5108
5106 // Called when the top-level V8 mutex is destroyed. 5109 // Called when the top-level V8 mutex is destroyed.
5107 void Bootstrapper::FreeThreadResources() { 5110 void Bootstrapper::FreeThreadResources() {
5108 DCHECK(!IsActive()); 5111 DCHECK(!IsActive());
5109 } 5112 }
5110 5113
5111 } // namespace internal 5114 } // namespace internal
5112 } // namespace v8 5115 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/builtins/builtins-sharedarraybuffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698