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

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

Issue 1902433003: [Atomics] Remove Atomics code stubs; use TF ops (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mips compile Created 4 years, 8 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 | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 // Clients of this interface shouldn't depend on lots of compiler internals. 10 // Clients of this interface shouldn't depend on lots of compiler internals.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Access to the frame pointer 214 // Access to the frame pointer
215 Node* LoadFramePointer(); 215 Node* LoadFramePointer();
216 Node* LoadParentFramePointer(); 216 Node* LoadParentFramePointer();
217 217
218 // Access to the stack pointer 218 // Access to the stack pointer
219 Node* LoadStackPointer(); 219 Node* LoadStackPointer();
220 220
221 // Load raw memory location. 221 // Load raw memory location.
222 Node* Load(MachineType rep, Node* base); 222 Node* Load(MachineType rep, Node* base);
223 Node* Load(MachineType rep, Node* base, Node* index); 223 Node* Load(MachineType rep, Node* base, Node* index);
224 Node* AtomicLoad(MachineType rep, Node* base, Node* index);
224 225
225 // Store value to raw memory location. 226 // Store value to raw memory location.
226 Node* Store(MachineRepresentation rep, Node* base, Node* value); 227 Node* Store(MachineRepresentation rep, Node* base, Node* value);
227 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value); 228 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value);
228 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); 229 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value);
229 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* index, 230 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* index,
230 Node* value); 231 Node* value);
231 232
232 // Basic arithmetic operations. 233 // Basic arithmetic operations.
233 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); 234 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b);
234 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) 235 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP)
235 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP 236 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP
236 237
237 Node* WordShl(Node* value, int shift); 238 Node* WordShl(Node* value, int shift);
238 239
239 // Unary 240 // Unary
240 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); 241 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a);
241 CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP) 242 CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP)
242 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP 243 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP
243 244
244 Node* TruncateFloat64ToInt32RoundToZero(Node* a); 245 Node* TruncateFloat64ToInt32RoundToZero(Node* a);
245 Node* TruncateFloat64ToInt32JavaScript(Node* a); 246 Node* TruncateFloat64ToInt32JavaScript(Node* a);
247 // No-op on 32-bit, otherwise zero extend.
248 Node* ChangeUint32ToWord(Node* value);
246 249
247 // Projections 250 // Projections
248 Node* Projection(int index, Node* value); 251 Node* Projection(int index, Node* value);
249 252
250 // Calls 253 // Calls
251 Node* CallRuntime(Runtime::FunctionId function_id, Node* context); 254 Node* CallRuntime(Runtime::FunctionId function_id, Node* context);
252 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1); 255 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1);
253 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1, 256 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1,
254 Node* arg2); 257 Node* arg2);
255 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1, 258 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // Map of variables to the list of value nodes that have been added from each 400 // Map of variables to the list of value nodes that have been added from each
398 // merge path in their order of merging. 401 // merge path in their order of merging.
399 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 402 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
400 }; 403 };
401 404
402 } // namespace compiler 405 } // namespace compiler
403 } // namespace internal 406 } // namespace internal
404 } // namespace v8 407 } // namespace v8
405 408
406 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 409 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698