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/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 return !object->IsUndetectableObject() && | 982 return !object->IsUndetectableObject() && |
983 String::cast(*object)->length() != 0; | 983 String::cast(*object)->length() != 0; |
984 } else if (object->IsSymbol()) { | 984 } else if (object->IsSymbol()) { |
985 Add(SYMBOL); | 985 Add(SYMBOL); |
986 return true; | 986 return true; |
987 } else if (object->IsHeapNumber()) { | 987 } else if (object->IsHeapNumber()) { |
988 DCHECK(!object->IsUndetectableObject()); | 988 DCHECK(!object->IsUndetectableObject()); |
989 Add(HEAP_NUMBER); | 989 Add(HEAP_NUMBER); |
990 double value = HeapNumber::cast(*object)->value(); | 990 double value = HeapNumber::cast(*object)->value(); |
991 return value != 0 && !std::isnan(value); | 991 return value != 0 && !std::isnan(value); |
992 } else if (object->IsFloat32x4()) { | 992 } else if (object->IsSimd128Value()) { |
993 Add(SIMD_VALUE); | 993 Add(SIMD_VALUE); |
994 return true; | 994 return true; |
995 } else { | 995 } else { |
996 // We should never see an internal object at runtime here! | 996 // We should never see an internal object at runtime here! |
997 UNREACHABLE(); | 997 UNREACHABLE(); |
998 return true; | 998 return true; |
999 } | 999 } |
1000 } | 1000 } |
1001 | 1001 |
1002 | 1002 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 | 1071 |
1072 if (type->Is(Type::UntaggedPointer())) { | 1072 if (type->Is(Type::UntaggedPointer())) { |
1073 return Representation::External(); | 1073 return Representation::External(); |
1074 } | 1074 } |
1075 | 1075 |
1076 DCHECK(!type->Is(Type::Untagged())); | 1076 DCHECK(!type->Is(Type::Untagged())); |
1077 return Representation::Tagged(); | 1077 return Representation::Tagged(); |
1078 } | 1078 } |
1079 } // namespace internal | 1079 } // namespace internal |
1080 } // namespace v8 | 1080 } // namespace v8 |
OLD | NEW |