| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/double.h" | 8 #include "src/double.h" |
| 9 #include "src/elements.h" | 9 #include "src/elements.h" |
| 10 #include "src/factory.h" | 10 #include "src/factory.h" |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 std::ostream& HReturn::PrintDataTo(std::ostream& os) const { // NOLINT | 1151 std::ostream& HReturn::PrintDataTo(std::ostream& os) const { // NOLINT |
| 1152 return os << NameOf(value()) << " (pop " << NameOf(parameter_count()) | 1152 return os << NameOf(value()) << " (pop " << NameOf(parameter_count()) |
| 1153 << " values)"; | 1153 << " values)"; |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 | 1156 |
| 1157 Representation HBranch::observed_input_representation(int index) { | 1157 Representation HBranch::observed_input_representation(int index) { |
| 1158 if (expected_input_types_.Contains(ToBooleanStub::NULL_TYPE) || | 1158 if (expected_input_types_.Contains(ToBooleanStub::NULL_TYPE) || |
| 1159 expected_input_types_.Contains(ToBooleanStub::SPEC_OBJECT) || | 1159 expected_input_types_.Contains(ToBooleanStub::SPEC_OBJECT) || |
| 1160 expected_input_types_.Contains(ToBooleanStub::STRING) || | 1160 expected_input_types_.Contains(ToBooleanStub::STRING) || |
| 1161 expected_input_types_.Contains(ToBooleanStub::SYMBOL) || | 1161 expected_input_types_.Contains(ToBooleanStub::SYMBOL)) { |
| 1162 expected_input_types_.Contains(ToBooleanStub::SIMD_VALUE)) { | |
| 1163 return Representation::Tagged(); | 1162 return Representation::Tagged(); |
| 1164 } | 1163 } |
| 1165 if (expected_input_types_.Contains(ToBooleanStub::UNDEFINED)) { | 1164 if (expected_input_types_.Contains(ToBooleanStub::UNDEFINED)) { |
| 1166 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) { | 1165 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) { |
| 1167 return Representation::Double(); | 1166 return Representation::Double(); |
| 1168 } | 1167 } |
| 1169 return Representation::Tagged(); | 1168 return Representation::Tagged(); |
| 1170 } | 1169 } |
| 1171 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) { | 1170 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) { |
| 1172 return Representation::Double(); | 1171 return Representation::Double(); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 return heap->boolean_string(); | 1316 return heap->boolean_string(); |
| 1318 } | 1317 } |
| 1319 if (unique.IsKnownGlobal(heap->null_value())) { | 1318 if (unique.IsKnownGlobal(heap->null_value())) { |
| 1320 return heap->object_string(); | 1319 return heap->object_string(); |
| 1321 } | 1320 } |
| 1322 DCHECK(unique.IsKnownGlobal(heap->undefined_value())); | 1321 DCHECK(unique.IsKnownGlobal(heap->undefined_value())); |
| 1323 return heap->undefined_string(); | 1322 return heap->undefined_string(); |
| 1324 } | 1323 } |
| 1325 case SYMBOL_TYPE: | 1324 case SYMBOL_TYPE: |
| 1326 return heap->symbol_string(); | 1325 return heap->symbol_string(); |
| 1327 case FLOAT32X4_TYPE: | |
| 1328 return heap->float32x4_string(); | |
| 1329 case JS_FUNCTION_TYPE: | 1326 case JS_FUNCTION_TYPE: |
| 1330 case JS_FUNCTION_PROXY_TYPE: | 1327 case JS_FUNCTION_PROXY_TYPE: |
| 1331 return heap->function_string(); | 1328 return heap->function_string(); |
| 1332 default: | 1329 default: |
| 1333 return heap->object_string(); | 1330 return heap->object_string(); |
| 1334 } | 1331 } |
| 1335 } | 1332 } |
| 1336 | 1333 |
| 1337 | 1334 |
| 1338 bool HTypeofIsAndBranch::KnownSuccessorBlock(HBasicBlock** block) { | 1335 bool HTypeofIsAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
| (...skipping 3372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4711 case HObjectAccess::kExternalMemory: | 4708 case HObjectAccess::kExternalMemory: |
| 4712 os << "[external-memory]"; | 4709 os << "[external-memory]"; |
| 4713 break; | 4710 break; |
| 4714 } | 4711 } |
| 4715 | 4712 |
| 4716 return os << "@" << access.offset(); | 4713 return os << "@" << access.offset(); |
| 4717 } | 4714 } |
| 4718 | 4715 |
| 4719 } // namespace internal | 4716 } // namespace internal |
| 4720 } // namespace v8 | 4717 } // namespace v8 |
| OLD | NEW |