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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 Node* CodeAssembler::IntPtrConstant(intptr_t value) { | 101 Node* CodeAssembler::IntPtrConstant(intptr_t value) { |
102 return raw_assembler_->IntPtrConstant(value); | 102 return raw_assembler_->IntPtrConstant(value); |
103 } | 103 } |
104 | 104 |
105 Node* CodeAssembler::NumberConstant(double value) { | 105 Node* CodeAssembler::NumberConstant(double value) { |
106 return raw_assembler_->NumberConstant(value); | 106 return raw_assembler_->NumberConstant(value); |
107 } | 107 } |
108 | 108 |
109 Node* CodeAssembler::SmiConstant(Smi* value) { | 109 Node* CodeAssembler::SmiConstant(Smi* value) { |
110 return IntPtrConstant(bit_cast<intptr_t>(value)); | 110 return BitcastWordToTaggedSigned(IntPtrConstant(bit_cast<intptr_t>(value))); |
111 } | 111 } |
112 | 112 |
113 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) { | 113 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) { |
114 return raw_assembler_->HeapConstant(object); | 114 return raw_assembler_->HeapConstant(object); |
115 } | 115 } |
116 | 116 |
117 Node* CodeAssembler::BooleanConstant(bool value) { | 117 Node* CodeAssembler::BooleanConstant(bool value) { |
118 return raw_assembler_->BooleanConstant(value); | 118 return raw_assembler_->BooleanConstant(value); |
119 } | 119 } |
120 | 120 |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 } | 1117 } |
1118 } | 1118 } |
1119 } | 1119 } |
1120 | 1120 |
1121 bound_ = true; | 1121 bound_ = true; |
1122 } | 1122 } |
1123 | 1123 |
1124 } // namespace compiler | 1124 } // namespace compiler |
1125 } // namespace internal | 1125 } // namespace internal |
1126 } // namespace v8 | 1126 } // namespace v8 |
OLD | NEW |