| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_RAW_MACHINE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 Node* Int32Constant(int32_t value) { | 74 Node* Int32Constant(int32_t value) { |
| 75 return NewNode(common()->Int32Constant(value)); | 75 return NewNode(common()->Int32Constant(value)); |
| 76 } | 76 } |
| 77 Node* Int64Constant(int64_t value) { | 77 Node* Int64Constant(int64_t value) { |
| 78 return NewNode(common()->Int64Constant(value)); | 78 return NewNode(common()->Int64Constant(value)); |
| 79 } | 79 } |
| 80 Node* NumberConstant(double value) { | 80 Node* NumberConstant(double value) { |
| 81 return NewNode(common()->NumberConstant(value)); | 81 return NewNode(common()->NumberConstant(value)); |
| 82 } | 82 } |
| 83 Node* Float32Constant(float value) { |
| 84 return NewNode(common()->Float32Constant(value)); |
| 85 } |
| 83 Node* Float64Constant(double value) { | 86 Node* Float64Constant(double value) { |
| 84 return NewNode(common()->Float64Constant(value)); | 87 return NewNode(common()->Float64Constant(value)); |
| 85 } | 88 } |
| 86 Node* HeapConstant(Handle<Object> object) { | 89 Node* HeapConstant(Handle<Object> object) { |
| 87 Unique<Object> val = Unique<Object>::CreateUninitialized(object); | 90 Unique<Object> val = Unique<Object>::CreateUninitialized(object); |
| 88 return NewNode(common()->HeapConstant(val)); | 91 return NewNode(common()->HeapConstant(val)); |
| 89 } | 92 } |
| 90 | 93 |
| 91 Node* Projection(int index, Node* a) { | 94 Node* Projection(int index, Node* a) { |
| 92 return NewNode(common()->Projection(index), a); | 95 return NewNode(common()->Projection(index), a); |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 BasicBlock* current_block_; | 438 BasicBlock* current_block_; |
| 436 | 439 |
| 437 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 440 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 438 }; | 441 }; |
| 439 | 442 |
| 440 } // namespace compiler | 443 } // namespace compiler |
| 441 } // namespace internal | 444 } // namespace internal |
| 442 } // namespace v8 | 445 } // namespace v8 |
| 443 | 446 |
| 444 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 447 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |