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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.cc

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (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
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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 5084 matching lines...) Expand 10 before | Expand all | Expand 10 after
5095 Split(eq, a1, Operand(zero_reg), 5095 Split(eq, a1, Operand(zero_reg),
5096 if_true, if_false, fall_through); 5096 if_true, if_false, fall_through);
5097 } else if (String::Equals(check, factory->symbol_string())) { 5097 } else if (String::Equals(check, factory->symbol_string())) {
5098 __ JumpIfSmi(v0, if_false); 5098 __ JumpIfSmi(v0, if_false);
5099 __ GetObjectType(v0, v0, a1); 5099 __ GetObjectType(v0, v0, a1);
5100 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through); 5100 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through);
5101 } else if (String::Equals(check, factory->float32x4_string())) { 5101 } else if (String::Equals(check, factory->float32x4_string())) {
5102 __ JumpIfSmi(v0, if_false); 5102 __ JumpIfSmi(v0, if_false);
5103 __ GetObjectType(v0, v0, a1); 5103 __ GetObjectType(v0, v0, a1);
5104 Split(eq, a1, Operand(FLOAT32X4_TYPE), if_true, if_false, fall_through); 5104 Split(eq, a1, Operand(FLOAT32X4_TYPE), if_true, if_false, fall_through);
5105 } else if (String::Equals(check, factory->int32x4_string())) {
5106 __ JumpIfSmi(v0, if_false);
5107 __ GetObjectType(v0, v0, a1);
5108 Split(eq, a1, Operand(INT32X4_TYPE), if_true, if_false, fall_through);
5109 } else if (String::Equals(check, factory->bool32x4_string())) {
5110 __ JumpIfSmi(v0, if_false);
5111 __ GetObjectType(v0, v0, a1);
5112 Split(eq, a1, Operand(BOOL32X4_TYPE), if_true, if_false, fall_through);
5113 } else if (String::Equals(check, factory->int16x8_string())) {
5114 __ JumpIfSmi(v0, if_false);
5115 __ GetObjectType(v0, v0, a1);
5116 Split(eq, a1, Operand(INT16X8_TYPE), if_true, if_false, fall_through);
5117 } else if (String::Equals(check, factory->bool16x8_string())) {
5118 __ JumpIfSmi(v0, if_false);
5119 __ GetObjectType(v0, v0, a1);
5120 Split(eq, a1, Operand(BOOL16X8_TYPE), if_true, if_false, fall_through);
5121 } else if (String::Equals(check, factory->int8x16_string())) {
5122 __ JumpIfSmi(v0, if_false);
5123 __ GetObjectType(v0, v0, a1);
5124 Split(eq, a1, Operand(INT8X16_TYPE), if_true, if_false, fall_through);
5125 } else if (String::Equals(check, factory->bool8x16_string())) {
5126 __ JumpIfSmi(v0, if_false);
5127 __ GetObjectType(v0, v0, a1);
5128 Split(eq, a1, Operand(BOOL8X16_TYPE), if_true, if_false, fall_through);
5105 } else if (String::Equals(check, factory->boolean_string())) { 5129 } else if (String::Equals(check, factory->boolean_string())) {
5106 __ LoadRoot(at, Heap::kTrueValueRootIndex); 5130 __ LoadRoot(at, Heap::kTrueValueRootIndex);
5107 __ Branch(if_true, eq, v0, Operand(at)); 5131 __ Branch(if_true, eq, v0, Operand(at));
5108 __ LoadRoot(at, Heap::kFalseValueRootIndex); 5132 __ LoadRoot(at, Heap::kFalseValueRootIndex);
5109 Split(eq, v0, Operand(at), if_true, if_false, fall_through); 5133 Split(eq, v0, Operand(at), if_true, if_false, fall_through);
5110 } else if (String::Equals(check, factory->undefined_string())) { 5134 } else if (String::Equals(check, factory->undefined_string())) {
5111 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 5135 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
5112 __ Branch(if_true, eq, v0, Operand(at)); 5136 __ Branch(if_true, eq, v0, Operand(at));
5113 __ JumpIfSmi(v0, if_false); 5137 __ JumpIfSmi(v0, if_false);
5114 // Check for undetectable objects => true. 5138 // Check for undetectable objects => true.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
5430 reinterpret_cast<uint32_t>( 5454 reinterpret_cast<uint32_t>(
5431 isolate->builtins()->OsrAfterStackCheck()->entry())); 5455 isolate->builtins()->OsrAfterStackCheck()->entry()));
5432 return OSR_AFTER_STACK_CHECK; 5456 return OSR_AFTER_STACK_CHECK;
5433 } 5457 }
5434 5458
5435 5459
5436 } // namespace internal 5460 } // namespace internal
5437 } // namespace v8 5461 } // namespace v8
5438 5462
5439 #endif // V8_TARGET_ARCH_MIPS 5463 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698