| 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 #include "src/compiler/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 bool CodeAssembler::IsFloat64RoundTruncateSupported() const { | 86 bool CodeAssembler::IsFloat64RoundTruncateSupported() const { |
| 87 return raw_assembler_->machine()->Float64RoundTruncate().IsSupported(); | 87 return raw_assembler_->machine()->Float64RoundTruncate().IsSupported(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 Node* CodeAssembler::Int32Constant(int value) { | 90 Node* CodeAssembler::Int32Constant(int value) { |
| 91 return raw_assembler_->Int32Constant(value); | 91 return raw_assembler_->Int32Constant(value); |
| 92 } | 92 } |
| 93 | 93 |
| 94 Node* CodeAssembler::Int64Constant(int64_t value) { |
| 95 return raw_assembler_->Int64Constant(value); |
| 96 } |
| 97 |
| 94 Node* CodeAssembler::IntPtrConstant(intptr_t value) { | 98 Node* CodeAssembler::IntPtrConstant(intptr_t value) { |
| 95 return raw_assembler_->IntPtrConstant(value); | 99 return raw_assembler_->IntPtrConstant(value); |
| 96 } | 100 } |
| 97 | 101 |
| 98 Node* CodeAssembler::NumberConstant(double value) { | 102 Node* CodeAssembler::NumberConstant(double value) { |
| 99 return raw_assembler_->NumberConstant(value); | 103 return raw_assembler_->NumberConstant(value); |
| 100 } | 104 } |
| 101 | 105 |
| 102 Node* CodeAssembler::SmiConstant(Smi* value) { | 106 Node* CodeAssembler::SmiConstant(Smi* value) { |
| 103 return IntPtrConstant(bit_cast<intptr_t>(value)); | 107 return IntPtrConstant(bit_cast<intptr_t>(value)); |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 } | 703 } |
| 700 } | 704 } |
| 701 } | 705 } |
| 702 | 706 |
| 703 bound_ = true; | 707 bound_ = true; |
| 704 } | 708 } |
| 705 | 709 |
| 706 } // namespace compiler | 710 } // namespace compiler |
| 707 } // namespace internal | 711 } // namespace internal |
| 708 } // namespace v8 | 712 } // namespace v8 |
| OLD | NEW |