Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Side by Side Diff: src/code-stubs.cc

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Don't run downloaded SIMD value type tests. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698