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

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

Issue 2695653005: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 years, 10 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/mips/interface-descriptors-mips.cc ('k') | src/mips64/interface-descriptors-mips64.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // Test for NaN. Sadly, we can't just compare to Factory::nan_value(), 226 // Test for NaN. Sadly, we can't just compare to Factory::nan_value(),
227 // so we do the second best thing - test it ourselves. 227 // so we do the second best thing - test it ourselves.
228 // They are both equal and they are not both Smis so both of them are not 228 // They are both equal and they are not both Smis so both of them are not
229 // Smis. If it's not a heap number, then return equal. 229 // Smis. If it's not a heap number, then return equal.
230 __ GetObjectType(a0, t0, t0); 230 __ GetObjectType(a0, t0, t0);
231 if (cc == less || cc == greater) { 231 if (cc == less || cc == greater) {
232 // Call runtime on identical JSObjects. 232 // Call runtime on identical JSObjects.
233 __ Branch(slow, greater, t0, Operand(FIRST_JS_RECEIVER_TYPE)); 233 __ Branch(slow, greater, t0, Operand(FIRST_JS_RECEIVER_TYPE));
234 // Call runtime on identical symbols since we need to throw a TypeError. 234 // Call runtime on identical symbols since we need to throw a TypeError.
235 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE)); 235 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE));
236 // Call runtime on identical SIMD values since we must throw a TypeError.
237 __ Branch(slow, eq, t0, Operand(SIMD128_VALUE_TYPE));
236 } else { 238 } else {
237 __ Branch(&heap_number, eq, t0, Operand(HEAP_NUMBER_TYPE)); 239 __ Branch(&heap_number, eq, t0, Operand(HEAP_NUMBER_TYPE));
238 // Comparing JS objects with <=, >= is complicated. 240 // Comparing JS objects with <=, >= is complicated.
239 if (cc != eq) { 241 if (cc != eq) {
240 __ Branch(slow, greater, t0, Operand(FIRST_JS_RECEIVER_TYPE)); 242 __ Branch(slow, greater, t0, Operand(FIRST_JS_RECEIVER_TYPE));
241 // Call runtime on identical symbols since we need to throw a TypeError. 243 // Call runtime on identical symbols since we need to throw a TypeError.
242 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE)); 244 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE));
245 // Call runtime on identical SIMD values since we must throw a TypeError.
246 __ Branch(slow, eq, t0, Operand(SIMD128_VALUE_TYPE));
243 // Normally here we fall through to return_equal, but undefined is 247 // Normally here we fall through to return_equal, but undefined is
244 // special: (undefined == undefined) == true, but 248 // special: (undefined == undefined) == true, but
245 // (undefined <= undefined) == false! See ECMAScript 11.8.5. 249 // (undefined <= undefined) == false! See ECMAScript 11.8.5.
246 if (cc == less_equal || cc == greater_equal) { 250 if (cc == less_equal || cc == greater_equal) {
247 __ Branch(&return_equal, ne, t0, Operand(ODDBALL_TYPE)); 251 __ Branch(&return_equal, ne, t0, Operand(ODDBALL_TYPE));
248 __ LoadRoot(a6, Heap::kUndefinedValueRootIndex); 252 __ LoadRoot(a6, Heap::kUndefinedValueRootIndex);
249 __ Branch(&return_equal, ne, a0, Operand(a6)); 253 __ Branch(&return_equal, ne, a0, Operand(a6));
250 DCHECK(is_int16(GREATER) && is_int16(LESS)); 254 DCHECK(is_int16(GREATER) && is_int16(LESS));
251 __ Ret(USE_DELAY_SLOT); 255 __ Ret(USE_DELAY_SLOT);
252 if (cc == le) { 256 if (cc == le) {
(...skipping 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after
3532 kStackUnwindSpace, kInvalidStackOffset, 3536 kStackUnwindSpace, kInvalidStackOffset,
3533 return_value_operand, NULL); 3537 return_value_operand, NULL);
3534 } 3538 }
3535 3539
3536 #undef __ 3540 #undef __
3537 3541
3538 } // namespace internal 3542 } // namespace internal
3539 } // namespace v8 3543 } // namespace v8
3540 3544
3541 #endif // V8_TARGET_ARCH_MIPS64 3545 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/interface-descriptors-mips.cc ('k') | src/mips64/interface-descriptors-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698