OLD | NEW |
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 // Store value to raw memory location. | 230 // Store value to raw memory location. |
231 Node* Store(MachineRepresentation rep, Node* base, Node* value); | 231 Node* Store(MachineRepresentation rep, Node* base, Node* value); |
232 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value); | 232 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value); |
233 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); | 233 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); |
234 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* index, | 234 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* index, |
235 Node* value); | 235 Node* value); |
236 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* index, | 236 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* index, |
237 Node* value); | 237 Node* value); |
238 | 238 |
| 239 // Store a value to the root array. |
| 240 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); |
| 241 |
239 // Basic arithmetic operations. | 242 // Basic arithmetic operations. |
240 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); | 243 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); |
241 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) | 244 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) |
242 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP | 245 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP |
243 | 246 |
244 Node* WordShl(Node* value, int shift); | 247 Node* WordShl(Node* value, int shift); |
245 Node* WordShr(Node* value, int shift); | 248 Node* WordShr(Node* value, int shift); |
246 | 249 |
247 // Unary | 250 // Unary |
248 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); | 251 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 // Map of variables to the list of value nodes that have been added from each | 394 // Map of variables to the list of value nodes that have been added from each |
392 // merge path in their order of merging. | 395 // merge path in their order of merging. |
393 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 396 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
394 }; | 397 }; |
395 | 398 |
396 } // namespace compiler | 399 } // namespace compiler |
397 } // namespace internal | 400 } // namespace internal |
398 } // namespace v8 | 401 } // namespace v8 |
399 | 402 |
400 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 403 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |