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

Side by Side Diff: src/compiler/code-assembler.h

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 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ 6 #define V8_COMPILER_CODE_ASSEMBLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Store value to raw memory location. 265 // Store value to raw memory location.
266 Node* Store(Node* base, Node* value); 266 Node* Store(Node* base, Node* value);
267 Node* Store(Node* base, Node* offset, Node* value); 267 Node* Store(Node* base, Node* offset, Node* value);
268 Node* StoreWithMapWriteBarrier(Node* base, Node* offset, Node* value); 268 Node* StoreWithMapWriteBarrier(Node* base, Node* offset, Node* value);
269 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); 269 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value);
270 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset, 270 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset,
271 Node* value); 271 Node* value);
272 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, 272 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset,
273 Node* value); 273 Node* value);
274 274
275 // Exchange value at raw memory location
276 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value);
277
275 // Store a value to the root array. 278 // Store a value to the root array.
276 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); 279 Node* StoreRoot(Heap::RootListIndex root_index, Node* value);
277 280
278 // Basic arithmetic operations. 281 // Basic arithmetic operations.
279 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); 282 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b);
280 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) 283 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP)
281 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP 284 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP
282 285
283 Node* IntPtrAdd(Node* left, Node* right); 286 Node* IntPtrAdd(Node* left, Node* right);
284 Node* IntPtrSub(Node* left, Node* right); 287 Node* IntPtrSub(Node* left, Node* right);
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 CodeAssemblerCallback call_epilogue_; 514 CodeAssemblerCallback call_epilogue_;
512 515
513 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); 516 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState);
514 }; 517 };
515 518
516 } // namespace compiler 519 } // namespace compiler
517 } // namespace internal 520 } // namespace internal
518 } // namespace v8 521 } // namespace v8
519 522
520 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 523 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698