| 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/double.h" | 7 #include "src/double.h" |
| 8 #include "src/factory.h" | 8 #include "src/factory.h" |
| 9 #include "src/hydrogen-infer-representation.h" | 9 #include "src/hydrogen-infer-representation.h" |
| 10 #include "src/property-details-inl.h" | 10 #include "src/property-details-inl.h" |
| (...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 if (constant->IsUndetectable()) return heap->undefined_string(); | 1287 if (constant->IsUndetectable()) return heap->undefined_string(); |
| 1288 if (constant->HasStringValue()) return heap->string_string(); | 1288 if (constant->HasStringValue()) return heap->string_string(); |
| 1289 switch (constant->GetInstanceType()) { | 1289 switch (constant->GetInstanceType()) { |
| 1290 case ODDBALL_TYPE: { | 1290 case ODDBALL_TYPE: { |
| 1291 Unique<Object> unique = constant->GetUnique(); | 1291 Unique<Object> unique = constant->GetUnique(); |
| 1292 if (unique.IsKnownGlobal(heap->true_value()) || | 1292 if (unique.IsKnownGlobal(heap->true_value()) || |
| 1293 unique.IsKnownGlobal(heap->false_value())) { | 1293 unique.IsKnownGlobal(heap->false_value())) { |
| 1294 return heap->boolean_string(); | 1294 return heap->boolean_string(); |
| 1295 } | 1295 } |
| 1296 if (unique.IsKnownGlobal(heap->null_value())) { | 1296 if (unique.IsKnownGlobal(heap->null_value())) { |
| 1297 return FLAG_harmony_typeof ? heap->null_string() | 1297 return heap->object_string(); |
| 1298 : heap->object_string(); | |
| 1299 } | 1298 } |
| 1300 ASSERT(unique.IsKnownGlobal(heap->undefined_value())); | 1299 ASSERT(unique.IsKnownGlobal(heap->undefined_value())); |
| 1301 return heap->undefined_string(); | 1300 return heap->undefined_string(); |
| 1302 } | 1301 } |
| 1303 case SYMBOL_TYPE: | 1302 case SYMBOL_TYPE: |
| 1304 return heap->symbol_string(); | 1303 return heap->symbol_string(); |
| 1305 case JS_FUNCTION_TYPE: | 1304 case JS_FUNCTION_TYPE: |
| 1306 case JS_FUNCTION_PROXY_TYPE: | 1305 case JS_FUNCTION_PROXY_TYPE: |
| 1307 return heap->function_string(); | 1306 return heap->function_string(); |
| 1308 default: | 1307 default: |
| (...skipping 3462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4771 break; | 4770 break; |
| 4772 case HObjectAccess::kExternalMemory: | 4771 case HObjectAccess::kExternalMemory: |
| 4773 os << "[external-memory]"; | 4772 os << "[external-memory]"; |
| 4774 break; | 4773 break; |
| 4775 } | 4774 } |
| 4776 | 4775 |
| 4777 return os << "@" << access.offset(); | 4776 return os << "@" << access.offset(); |
| 4778 } | 4777 } |
| 4779 | 4778 |
| 4780 } } // namespace v8::internal | 4779 } } // namespace v8::internal |
| OLD | NEW |