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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 // Store a value to the root array. | 278 // Store a value to the root array. |
279 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); | 279 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); |
280 | 280 |
281 // Basic arithmetic operations. | 281 // Basic arithmetic operations. |
282 #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); |
283 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) | 283 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) |
284 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP | 284 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP |
285 | 285 |
286 Node* WordShl(Node* value, int shift); | 286 Node* WordShl(Node* value, int shift); |
287 Node* WordShr(Node* value, int shift); | 287 Node* WordShr(Node* value, int shift); |
| 288 Node* Word32Shr(Node* value, int shift); |
288 | 289 |
289 // Unary | 290 // Unary |
290 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); | 291 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); |
291 CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP) | 292 CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP) |
292 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP | 293 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP |
293 | 294 |
294 // No-op on 32-bit, otherwise zero extend. | 295 // No-op on 32-bit, otherwise zero extend. |
295 Node* ChangeUint32ToWord(Node* value); | 296 Node* ChangeUint32ToWord(Node* value); |
296 // No-op on 32-bit, otherwise sign extend. | 297 // No-op on 32-bit, otherwise sign extend. |
297 Node* ChangeInt32ToIntPtr(Node* value); | 298 Node* ChangeInt32ToIntPtr(Node* value); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 // Map of variables to the list of value nodes that have been added from each | 453 // Map of variables to the list of value nodes that have been added from each |
453 // merge path in their order of merging. | 454 // merge path in their order of merging. |
454 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 455 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
455 }; | 456 }; |
456 | 457 |
457 } // namespace compiler | 458 } // namespace compiler |
458 } // namespace internal | 459 } // namespace internal |
459 } // namespace v8 | 460 } // namespace v8 |
460 | 461 |
461 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 462 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |