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 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 return !object->IsUndetectableObject() && | 987 return !object->IsUndetectableObject() && |
988 String::cast(*object)->length() != 0; | 988 String::cast(*object)->length() != 0; |
989 } else if (object->IsSymbol()) { | 989 } else if (object->IsSymbol()) { |
990 Add(SYMBOL); | 990 Add(SYMBOL); |
991 return true; | 991 return true; |
992 } else if (object->IsHeapNumber()) { | 992 } else if (object->IsHeapNumber()) { |
993 DCHECK(!object->IsUndetectableObject()); | 993 DCHECK(!object->IsUndetectableObject()); |
994 Add(HEAP_NUMBER); | 994 Add(HEAP_NUMBER); |
995 double value = HeapNumber::cast(*object)->value(); | 995 double value = HeapNumber::cast(*object)->value(); |
996 return value != 0 && !std::isnan(value); | 996 return value != 0 && !std::isnan(value); |
997 } else if (object->IsFloat32x4()) { | 997 } else if (object->IsSimd128Value()) { |
998 Add(SIMD_VALUE); | 998 Add(SIMD_VALUE); |
999 return true; | 999 return true; |
1000 } else { | 1000 } else { |
1001 // We should never see an internal object at runtime here! | 1001 // We should never see an internal object at runtime here! |
1002 UNREACHABLE(); | 1002 UNREACHABLE(); |
1003 return true; | 1003 return true; |
1004 } | 1004 } |
1005 } | 1005 } |
1006 | 1006 |
1007 | 1007 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 | 1076 |
1077 if (type->Is(Type::UntaggedPointer())) { | 1077 if (type->Is(Type::UntaggedPointer())) { |
1078 return Representation::External(); | 1078 return Representation::External(); |
1079 } | 1079 } |
1080 | 1080 |
1081 DCHECK(!type->Is(Type::Untagged())); | 1081 DCHECK(!type->Is(Type::Untagged())); |
1082 return Representation::Tagged(); | 1082 return Representation::Tagged(); |
1083 } | 1083 } |
1084 } // namespace internal | 1084 } // namespace internal |
1085 } // namespace v8 | 1085 } // namespace v8 |
OLD | NEW |