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

Side by Side Diff: src/compiler/code-assembler.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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/code-assembler.h" 5 #include "src/compiler/code-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base, 455 Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base,
456 Node* offset, Node* value) { 456 Node* offset, Node* value) {
457 return raw_assembler()->Store(rep, base, offset, value, kNoWriteBarrier); 457 return raw_assembler()->Store(rep, base, offset, value, kNoWriteBarrier);
458 } 458 }
459 459
460 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, 460 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base,
461 Node* offset, Node* value) { 461 Node* offset, Node* value) {
462 return raw_assembler()->AtomicStore(rep, base, offset, value); 462 return raw_assembler()->AtomicStore(rep, base, offset, value);
463 } 463 }
464 464
465 Node* CodeAssembler::AtomicExchange(MachineType type, Node* base, Node* offset,
466 Node* value) {
467 return raw_assembler()->AtomicExchange(type, base, offset, value);
468 }
469
465 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { 470 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) {
466 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); 471 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index));
467 Node* roots_array_start = 472 Node* roots_array_start =
468 ExternalConstant(ExternalReference::roots_array_start(isolate())); 473 ExternalConstant(ExternalReference::roots_array_start(isolate()));
469 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, 474 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start,
470 IntPtrConstant(root_index * kPointerSize), value); 475 IntPtrConstant(root_index * kPointerSize), value);
471 } 476 }
472 477
473 Node* CodeAssembler::Retain(Node* value) { 478 Node* CodeAssembler::Retain(Node* value) {
474 return raw_assembler()->Retain(value); 479 return raw_assembler()->Retain(value);
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 } 863 }
859 } 864 }
860 } 865 }
861 866
862 bound_ = true; 867 bound_ = true;
863 } 868 }
864 869
865 } // namespace compiler 870 } // namespace compiler
866 } // namespace internal 871 } // namespace internal
867 } // namespace v8 872 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698