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

Side by Side Diff: src/runtime/runtime-simd.cc

Issue 1253103006: Rename IsSimdObject assembly intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/runtime/runtime.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/base/macros.h" 8 #include "src/base/macros.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/runtime/runtime-utils.h" 10 #include "src/runtime/runtime-utils.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool Equals(Float32x4* a, Float32x4* b) { 130 bool Equals(Float32x4* a, Float32x4* b) {
131 for (int i = 0; i < 4; i++) { 131 for (int i = 0; i < 4; i++) {
132 if (a->get_lane(i) != b->get_lane(i)) return false; 132 if (a->get_lane(i) != b->get_lane(i)) return false;
133 } 133 }
134 return true; 134 return true;
135 } 135 }
136 136
137 } // namespace 137 } // namespace
138 138
139 139
140 RUNTIME_FUNCTION(Runtime_IsSimdObject) { 140 RUNTIME_FUNCTION(Runtime_IsSimdValue) {
141 HandleScope scope(isolate); 141 HandleScope scope(isolate);
142 DCHECK(args.length() == 1); 142 DCHECK(args.length() == 1);
143 return isolate->heap()->ToBoolean(args[0]->IsSimd128Value()); 143 return isolate->heap()->ToBoolean(args[0]->IsSimd128Value());
144 } 144 }
145 145
146 146
147 RUNTIME_FUNCTION(Runtime_SimdToObject) { 147 RUNTIME_FUNCTION(Runtime_SimdToObject) {
148 HandleScope scope(isolate); 148 HandleScope scope(isolate);
149 DCHECK(args.length() == 1); 149 DCHECK(args.length() == 1);
150 CONVERT_ARG_HANDLE_CHECKED(Simd128Value, value, 0); 150 CONVERT_ARG_HANDLE_CHECKED(Simd128Value, value, 0);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 SIMD_REPLACE_NUMERIC_LANE_FUNCTION(Float32x4, float, 4) 260 SIMD_REPLACE_NUMERIC_LANE_FUNCTION(Float32x4, float, 4)
261 SIMD_REPLACE_NUMERIC_LANE_FUNCTION(Int32x4, int32_t, 4) 261 SIMD_REPLACE_NUMERIC_LANE_FUNCTION(Int32x4, int32_t, 4)
262 SIMD_REPLACE_BOOLEAN_LANE_FUNCTION(Bool32x4, 4) 262 SIMD_REPLACE_BOOLEAN_LANE_FUNCTION(Bool32x4, 4)
263 SIMD_REPLACE_NUMERIC_LANE_FUNCTION(Int16x8, int16_t, 8) 263 SIMD_REPLACE_NUMERIC_LANE_FUNCTION(Int16x8, int16_t, 8)
264 SIMD_REPLACE_BOOLEAN_LANE_FUNCTION(Bool16x8, 8) 264 SIMD_REPLACE_BOOLEAN_LANE_FUNCTION(Bool16x8, 8)
265 SIMD_REPLACE_NUMERIC_LANE_FUNCTION(Int8x16, int8_t, 16) 265 SIMD_REPLACE_NUMERIC_LANE_FUNCTION(Int8x16, int8_t, 16)
266 SIMD_REPLACE_BOOLEAN_LANE_FUNCTION(Bool8x16, 16) 266 SIMD_REPLACE_BOOLEAN_LANE_FUNCTION(Bool8x16, 16)
267 } // namespace internal 267 } // namespace internal
268 } // namespace v8 268 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698