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

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: Make _IsSimdObject an assembly intrinsic in fullcodegen. 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
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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | src/macros.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698