| 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 #include <memory> | 9 #include <memory> | 
| 10 | 10 | 
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 277 | 277 | 
| 278 // Basic arithmetic operations. | 278 // Basic arithmetic operations. | 
| 279 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); | 279 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); | 
| 280   CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) | 280   CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) | 
| 281 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP | 281 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP | 
| 282 | 282 | 
| 283   Node* WordShl(Node* value, int shift); | 283   Node* WordShl(Node* value, int shift); | 
| 284   Node* WordShr(Node* value, int shift); | 284   Node* WordShr(Node* value, int shift); | 
| 285   Node* Word32Shr(Node* value, int shift); | 285   Node* Word32Shr(Node* value, int shift); | 
| 286 | 286 | 
|  | 287   Node* IsWordAligned(Node* value); | 
|  | 288 | 
| 287 // Unary | 289 // Unary | 
| 288 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); | 290 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); | 
| 289   CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP) | 291   CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP) | 
| 290 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP | 292 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP | 
| 291 | 293 | 
| 292   // Changes an intptr_t to a double, e.g. for storing an element index | 294   // Changes an intptr_t to a double, e.g. for storing an element index | 
| 293   // outside Smi range in a HeapNumber. Lossless on 32-bit, | 295   // outside Smi range in a HeapNumber. Lossless on 32-bit, | 
| 294   // rounds on 64-bit (which doesn't affect valid element indices). | 296   // rounds on 64-bit (which doesn't affect valid element indices). | 
| 295   Node* RoundIntPtrToFloat64(Node* value); | 297   Node* RoundIntPtrToFloat64(Node* value); | 
| 296   // No-op on 32-bit, otherwise zero extend. | 298   // No-op on 32-bit, otherwise zero extend. | 
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 510   // Map of variables to the list of value nodes that have been added from each | 512   // Map of variables to the list of value nodes that have been added from each | 
| 511   // merge path in their order of merging. | 513   // merge path in their order of merging. | 
| 512   std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 514   std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 
| 513 }; | 515 }; | 
| 514 | 516 | 
| 515 }  // namespace compiler | 517 }  // namespace compiler | 
| 516 }  // namespace internal | 518 }  // namespace internal | 
| 517 }  // namespace v8 | 519 }  // namespace v8 | 
| 518 | 520 | 
| 519 #endif  // V8_COMPILER_CODE_ASSEMBLER_H_ | 521 #endif  // V8_COMPILER_CODE_ASSEMBLER_H_ | 
| OLD | NEW | 
|---|