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

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

Issue 1241533004: Revert of Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/arm/lithium-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // They are both equal and they are not both Smis so both of them are not 220 // They are both equal and they are not both Smis so both of them are not
221 // Smis. If it's not a heap number, then return equal. 221 // Smis. If it's not a heap number, then return equal.
222 Register right_type = scratch; 222 Register right_type = scratch;
223 if ((cond == lt) || (cond == gt)) { 223 if ((cond == lt) || (cond == gt)) {
224 // Call runtime on identical JSObjects. Otherwise return equal. 224 // Call runtime on identical JSObjects. Otherwise return equal.
225 __ JumpIfObjectType(right, right_type, right_type, FIRST_SPEC_OBJECT_TYPE, 225 __ JumpIfObjectType(right, right_type, right_type, FIRST_SPEC_OBJECT_TYPE,
226 slow, ge); 226 slow, ge);
227 // Call runtime on identical symbols since we need to throw a TypeError. 227 // Call runtime on identical symbols since we need to throw a TypeError.
228 __ Cmp(right_type, SYMBOL_TYPE); 228 __ Cmp(right_type, SYMBOL_TYPE);
229 __ B(eq, slow); 229 __ B(eq, slow);
230 // Call runtime on identical SIMD values since we must throw a TypeError.
231 __ Cmp(right_type, FLOAT32X4_TYPE);
232 __ B(eq, slow);
233 if (is_strong(strength)) { 230 if (is_strong(strength)) {
234 // Call the runtime on anything that is converted in the semantics, since 231 // Call the runtime on anything that is converted in the semantics, since
235 // we need to throw a TypeError. Smis have already been ruled out. 232 // we need to throw a TypeError. Smis have already been ruled out.
236 __ Cmp(right_type, Operand(HEAP_NUMBER_TYPE)); 233 __ Cmp(right_type, Operand(HEAP_NUMBER_TYPE));
237 __ B(eq, &return_equal); 234 __ B(eq, &return_equal);
238 __ Tst(right_type, Operand(kIsNotStringMask)); 235 __ Tst(right_type, Operand(kIsNotStringMask));
239 __ B(ne, slow); 236 __ B(ne, slow);
240 } 237 }
241 } else if (cond == eq) { 238 } else if (cond == eq) {
242 __ JumpIfHeapNumber(right, &heap_number); 239 __ JumpIfHeapNumber(right, &heap_number);
243 } else { 240 } else {
244 __ JumpIfObjectType(right, right_type, right_type, HEAP_NUMBER_TYPE, 241 __ JumpIfObjectType(right, right_type, right_type, HEAP_NUMBER_TYPE,
245 &heap_number); 242 &heap_number);
246 // Comparing JS objects with <=, >= is complicated. 243 // Comparing JS objects with <=, >= is complicated.
247 __ Cmp(right_type, FIRST_SPEC_OBJECT_TYPE); 244 __ Cmp(right_type, FIRST_SPEC_OBJECT_TYPE);
248 __ B(ge, slow); 245 __ B(ge, slow);
249 // Call runtime on identical symbols since we need to throw a TypeError. 246 // Call runtime on identical symbols since we need to throw a TypeError.
250 __ Cmp(right_type, SYMBOL_TYPE); 247 __ Cmp(right_type, SYMBOL_TYPE);
251 __ B(eq, slow); 248 __ B(eq, slow);
252 // Call runtime on identical SIMD values since we must throw a TypeError.
253 __ Cmp(right_type, FLOAT32X4_TYPE);
254 __ B(eq, slow);
255 if (is_strong(strength)) { 249 if (is_strong(strength)) {
256 // Call the runtime on anything that is converted in the semantics, 250 // Call the runtime on anything that is converted in the semantics,
257 // since we need to throw a TypeError. Smis and heap numbers have 251 // since we need to throw a TypeError. Smis and heap numbers have
258 // already been ruled out. 252 // already been ruled out.
259 __ Tst(right_type, Operand(kIsNotStringMask)); 253 __ Tst(right_type, Operand(kIsNotStringMask));
260 __ B(ne, slow); 254 __ B(ne, slow);
261 } 255 }
262 // Normally here we fall through to return_equal, but undefined is 256 // Normally here we fall through to return_equal, but undefined is
263 // special: (undefined == undefined) == true, but 257 // special: (undefined == undefined) == true, but
264 // (undefined <= undefined) == false! See ECMAScript 11.8.5. 258 // (undefined <= undefined) == false! See ECMAScript 11.8.5.
(...skipping 5574 matching lines...) Expand 10 before | Expand all | Expand 10 after
5839 MemOperand(fp, 6 * kPointerSize), NULL); 5833 MemOperand(fp, 6 * kPointerSize), NULL);
5840 } 5834 }
5841 5835
5842 5836
5843 #undef __ 5837 #undef __
5844 5838
5845 } // namespace internal 5839 } // namespace internal
5846 } // namespace v8 5840 } // namespace v8
5847 5841
5848 #endif // V8_TARGET_ARCH_ARM64 5842 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698