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

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

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Back out changes to include/v8.h 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/mips/lithium-codegen-mips.cc ('k') | src/mips64/full-codegen-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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // Test for NaN. Sadly, we can't just compare to Factory::nan_value(), 284 // Test for NaN. Sadly, we can't just compare to Factory::nan_value(),
285 // so we do the second best thing - test it ourselves. 285 // so we do the second best thing - test it ourselves.
286 // They are both equal and they are not both Smis so both of them are not 286 // They are both equal and they are not both Smis so both of them are not
287 // Smis. If it's not a heap number, then return equal. 287 // Smis. If it's not a heap number, then return equal.
288 __ GetObjectType(a0, t0, t0); 288 __ GetObjectType(a0, t0, t0);
289 if (cc == less || cc == greater) { 289 if (cc == less || cc == greater) {
290 // Call runtime on identical JSObjects. 290 // Call runtime on identical JSObjects.
291 __ Branch(slow, greater, t0, Operand(FIRST_SPEC_OBJECT_TYPE)); 291 __ Branch(slow, greater, t0, Operand(FIRST_SPEC_OBJECT_TYPE));
292 // Call runtime on identical symbols since we need to throw a TypeError. 292 // Call runtime on identical symbols since we need to throw a TypeError.
293 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE)); 293 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE));
294 // Call runtime on identical SIMD values since we must throw a TypeError.
295 __ Branch(slow, eq, t0, Operand(FLOAT32X4_TYPE));
294 if (is_strong(strength)) { 296 if (is_strong(strength)) {
295 // Call the runtime on anything that is converted in the semantics, since 297 // Call the runtime on anything that is converted in the semantics, since
296 // we need to throw a TypeError. Smis have already been ruled out. 298 // we need to throw a TypeError. Smis have already been ruled out.
297 __ Branch(&return_equal, eq, t0, Operand(HEAP_NUMBER_TYPE)); 299 __ Branch(&return_equal, eq, t0, Operand(HEAP_NUMBER_TYPE));
298 __ And(t0, t0, Operand(kIsNotStringMask)); 300 __ And(t0, t0, Operand(kIsNotStringMask));
299 __ Branch(slow, ne, t0, Operand(zero_reg)); 301 __ Branch(slow, ne, t0, Operand(zero_reg));
300 } 302 }
301 } else { 303 } else {
302 __ Branch(&heap_number, eq, t0, Operand(HEAP_NUMBER_TYPE)); 304 __ Branch(&heap_number, eq, t0, Operand(HEAP_NUMBER_TYPE));
303 // Comparing JS objects with <=, >= is complicated. 305 // Comparing JS objects with <=, >= is complicated.
304 if (cc != eq) { 306 if (cc != eq) {
305 __ Branch(slow, greater, t0, Operand(FIRST_SPEC_OBJECT_TYPE)); 307 __ Branch(slow, greater, t0, Operand(FIRST_SPEC_OBJECT_TYPE));
306 // Call runtime on identical symbols since we need to throw a TypeError. 308 // Call runtime on identical symbols since we need to throw a TypeError.
307 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE)); 309 __ Branch(slow, eq, t0, Operand(SYMBOL_TYPE));
310 // Call runtime on identical SIMD values since we must throw a TypeError.
311 __ Branch(slow, eq, t0, Operand(FLOAT32X4_TYPE));
308 if (is_strong(strength)) { 312 if (is_strong(strength)) {
309 // Call the runtime on anything that is converted in the semantics, 313 // Call the runtime on anything that is converted in the semantics,
310 // since we need to throw a TypeError. Smis and heap numbers have 314 // since we need to throw a TypeError. Smis and heap numbers have
311 // already been ruled out. 315 // already been ruled out.
312 __ And(t0, t0, Operand(kIsNotStringMask)); 316 __ And(t0, t0, Operand(kIsNotStringMask));
313 __ Branch(slow, ne, t0, Operand(zero_reg)); 317 __ Branch(slow, ne, t0, Operand(zero_reg));
314 } 318 }
315 // Normally here we fall through to return_equal, but undefined is 319 // Normally here we fall through to return_equal, but undefined is
316 // special: (undefined == undefined) == true, but 320 // special: (undefined == undefined) == true, but
317 // (undefined <= undefined) == false! See ECMAScript 11.8.5. 321 // (undefined <= undefined) == false! See ECMAScript 11.8.5.
(...skipping 5298 matching lines...) Expand 10 before | Expand all | Expand 10 after
5616 MemOperand(fp, 6 * kPointerSize), NULL); 5620 MemOperand(fp, 6 * kPointerSize), NULL);
5617 } 5621 }
5618 5622
5619 5623
5620 #undef __ 5624 #undef __
5621 5625
5622 } // namespace internal 5626 } // namespace internal
5623 } // namespace v8 5627 } // namespace v8
5624 5628
5625 #endif // V8_TARGET_ARCH_MIPS64 5629 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698