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

Unified Diff: src/runtime/runtime-simd.cc

Issue 1273353003: [simd.js] Single SIMD128_VALUE_TYPE for all Simd128Values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow check failures. REBASE. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-printer.cc ('k') | src/type-info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-simd.cc
diff --git a/src/runtime/runtime-simd.cc b/src/runtime/runtime-simd.cc
index 3d050d89a6cccb0a117dfbc973b1a38fe758c0b9..bcf356702c5c09c1c494eba4c68dbece95cd03a7 100644
--- a/src/runtime/runtime-simd.cc
+++ b/src/runtime/runtime-simd.cc
@@ -155,7 +155,7 @@ RUNTIME_FUNCTION(Runtime_SimdEquals) {
// args[1] is of unknown type.
if (args[1]->IsSimd128Value()) {
Simd128Value* b = Simd128Value::cast(args[1]);
- if (a->map()->instance_type() == b->map()->instance_type()) {
+ if (a->map() == b->map()) {
if (a->IsFloat32x4()) {
result = Equals(Float32x4::cast(*a), Float32x4::cast(b));
} else {
@@ -175,7 +175,7 @@ RUNTIME_FUNCTION(Runtime_SimdSameValue) {
// args[1] is of unknown type.
if (args[1]->IsSimd128Value()) {
Simd128Value* b = Simd128Value::cast(args[1]);
- if (a->map()->instance_type() == b->map()->instance_type()) {
+ if (a->map() == b->map()) {
if (a->IsFloat32x4()) {
result = Float32x4::cast(*a)->SameValue(Float32x4::cast(b));
} else {
@@ -195,7 +195,7 @@ RUNTIME_FUNCTION(Runtime_SimdSameValueZero) {
// args[1] is of unknown type.
if (args[1]->IsSimd128Value()) {
Simd128Value* b = Simd128Value::cast(args[1]);
- if (a->map()->instance_type() == b->map()->instance_type()) {
+ if (a->map() == b->map()) {
if (a->IsFloat32x4()) {
result = Float32x4::cast(*a)->SameValueZero(Float32x4::cast(b));
} else {
« no previous file with comments | « src/objects-printer.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698