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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: dmb 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 275 // Exchange value at raw memory location
276 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); 276 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value);
277 277
278 // Compare and Exchange value at raw memory location
279 Node* AtomicCompareExchange(MachineType type, Node* base, Node* offset,
280 Node* old_value, Node* new_value);
281
278 // Store a value to the root array. 282 // Store a value to the root array.
279 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); 283 Node* StoreRoot(Heap::RootListIndex root_index, Node* value);
280 284
281 // Basic arithmetic operations. 285 // Basic arithmetic operations.
282 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); 286 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b);
283 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) 287 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP)
284 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP 288 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP
285 289
286 Node* IntPtrAdd(Node* left, Node* right); 290 Node* IntPtrAdd(Node* left, Node* right);
287 Node* IntPtrSub(Node* left, Node* right); 291 Node* IntPtrSub(Node* left, Node* right);
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 CodeAssemblerCallback call_epilogue_; 518 CodeAssemblerCallback call_epilogue_;
515 519
516 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); 520 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState);
517 }; 521 };
518 522
519 } // namespace compiler 523 } // namespace compiler
520 } // namespace internal 524 } // namespace internal
521 } // namespace v8 525 } // namespace v8
522 526
523 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 527 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698