| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 | 182 |
| 183 Node* CodeAssembler::SmiConstant(int value) { | 183 Node* CodeAssembler::SmiConstant(int value) { |
| 184 return SmiConstant(Smi::FromInt(value)); | 184 return SmiConstant(Smi::FromInt(value)); |
| 185 } | 185 } |
| 186 | 186 |
| 187 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) { | 187 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) { |
| 188 return raw_assembler()->HeapConstant(object); | 188 return raw_assembler()->HeapConstant(object); |
| 189 } | 189 } |
| 190 | 190 |
| 191 Node* CodeAssembler::CStringConstant(const char* str) { |
| 192 return HeapConstant(factory()->NewStringFromAsciiChecked(str, TENURED)); |
| 193 } |
| 194 |
| 191 Node* CodeAssembler::BooleanConstant(bool value) { | 195 Node* CodeAssembler::BooleanConstant(bool value) { |
| 192 return raw_assembler()->BooleanConstant(value); | 196 return raw_assembler()->BooleanConstant(value); |
| 193 } | 197 } |
| 194 | 198 |
| 195 Node* CodeAssembler::ExternalConstant(ExternalReference address) { | 199 Node* CodeAssembler::ExternalConstant(ExternalReference address) { |
| 196 return raw_assembler()->ExternalConstant(address); | 200 return raw_assembler()->ExternalConstant(address); |
| 197 } | 201 } |
| 198 | 202 |
| 199 Node* CodeAssembler::Float64Constant(double value) { | 203 Node* CodeAssembler::Float64Constant(double value) { |
| 200 return raw_assembler()->Float64Constant(value); | 204 return raw_assembler()->Float64Constant(value); |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 } | 858 } |
| 855 } | 859 } |
| 856 } | 860 } |
| 857 | 861 |
| 858 bound_ = true; | 862 bound_ = true; |
| 859 } | 863 } |
| 860 | 864 |
| 861 } // namespace compiler | 865 } // namespace compiler |
| 862 } // namespace internal | 866 } // namespace internal |
| 863 } // namespace v8 | 867 } // namespace v8 |
| OLD | NEW |