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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: rebase and move cmpxchg to builtins-sharedarraybuffer-gen.cc 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 Node* StoreWithMapWriteBarrier(Node* base, Node* offset, Node* value); 271 Node* StoreWithMapWriteBarrier(Node* base, Node* offset, Node* value);
272 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); 272 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value);
273 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset, 273 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset,
274 Node* value); 274 Node* value);
275 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, 275 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset,
276 Node* value); 276 Node* value);
277 277
278 // Exchange value at raw memory location 278 // Exchange value at raw memory location
279 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); 279 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value);
280 280
281 // Compare and Exchange value at raw memory location
282 Node* AtomicCompareExchange(MachineType type, Node* base, Node* offset,
283 Node* old_value, Node* new_value);
284
281 // Store a value to the root array. 285 // Store a value to the root array.
282 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); 286 Node* StoreRoot(Heap::RootListIndex root_index, Node* value);
283 287
284 // Basic arithmetic operations. 288 // Basic arithmetic operations.
285 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); 289 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b);
286 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) 290 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP)
287 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP 291 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP
288 292
289 Node* IntPtrAdd(Node* left, Node* right); 293 Node* IntPtrAdd(Node* left, Node* right);
290 Node* IntPtrSub(Node* left, Node* right); 294 Node* IntPtrSub(Node* left, Node* right);
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 CodeAssemblerCallback call_epilogue_; 525 CodeAssemblerCallback call_epilogue_;
522 526
523 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); 527 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState);
524 }; 528 };
525 529
526 } // namespace compiler 530 } // namespace compiler
527 } // namespace internal 531 } // namespace internal
528 } // namespace v8 532 } // namespace v8
529 533
530 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 534 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698