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

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

Issue 2684313003: Remove SIMD.js from V8. (Closed)
Patch Set: Rebase. 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));
238 } else { 236 } else {
239 __ Branch(&heap_number, eq, t0, Operand(HEAP_NUMBER_TYPE)); 237 __ Branch(&heap_number, eq, t0, Operand(HEAP_NUMBER_TYPE));
240 // Comparing JS objects with <=, >= is complicated. 238 // Comparing JS objects with <=, >= is complicated.
241 if (cc != eq) { 239 if (cc != eq) {
242 __ Branch(slow, greater, t0, Operand(FIRST_JS_RECEIVER_TYPE)); 240 __ Branch(slow, greater, t0, Operand(FIRST_JS_RECEIVER_TYPE));
243 // Call runtime on identical symbols since we need to throw a TypeError. 241 // Call runtime on identical symbols since we need to throw a TypeError.
244 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE)); 242 __ 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));
247 // Normally here we fall through to return_equal, but undefined is 243 // Normally here we fall through to return_equal, but undefined is
248 // special: (undefined == undefined) == true, but 244 // special: (undefined == undefined) == true, but
249 // (undefined <= undefined) == false! See ECMAScript 11.8.5. 245 // (undefined <= undefined) == false! See ECMAScript 11.8.5.
250 if (cc == less_equal || cc == greater_equal) { 246 if (cc == less_equal || cc == greater_equal) {
251 __ Branch(&return_equal, ne, t0, Operand(ODDBALL_TYPE)); 247 __ Branch(&return_equal, ne, t0, Operand(ODDBALL_TYPE));
252 __ LoadRoot(a6, Heap::kUndefinedValueRootIndex); 248 __ LoadRoot(a6, Heap::kUndefinedValueRootIndex);
253 __ Branch(&return_equal, ne, a0, Operand(a6)); 249 __ Branch(&return_equal, ne, a0, Operand(a6));
254 DCHECK(is_int16(GREATER) && is_int16(LESS)); 250 DCHECK(is_int16(GREATER) && is_int16(LESS));
255 __ Ret(USE_DELAY_SLOT); 251 __ Ret(USE_DELAY_SLOT);
256 if (cc == le) { 252 if (cc == le) {
(...skipping 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after
3536 kStackUnwindSpace, kInvalidStackOffset, 3532 kStackUnwindSpace, kInvalidStackOffset,
3537 return_value_operand, NULL); 3533 return_value_operand, NULL);
3538 } 3534 }
3539 3535
3540 #undef __ 3536 #undef __
3541 3537
3542 } // namespace internal 3538 } // namespace internal
3543 } // namespace v8 3539 } // namespace v8
3544 3540
3545 #endif // V8_TARGET_ARCH_MIPS64 3541 #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