OLD | NEW |
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 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 5085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5096 Split(eq, a1, Operand(zero_reg), | 5096 Split(eq, a1, Operand(zero_reg), |
5097 if_true, if_false, fall_through); | 5097 if_true, if_false, fall_through); |
5098 } else if (String::Equals(check, factory->symbol_string())) { | 5098 } else if (String::Equals(check, factory->symbol_string())) { |
5099 __ JumpIfSmi(v0, if_false); | 5099 __ JumpIfSmi(v0, if_false); |
5100 __ GetObjectType(v0, v0, a1); | 5100 __ GetObjectType(v0, v0, a1); |
5101 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through); | 5101 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through); |
5102 } else if (String::Equals(check, factory->float32x4_string())) { | 5102 } else if (String::Equals(check, factory->float32x4_string())) { |
5103 __ JumpIfSmi(v0, if_false); | 5103 __ JumpIfSmi(v0, if_false); |
5104 __ GetObjectType(v0, v0, a1); | 5104 __ GetObjectType(v0, v0, a1); |
5105 Split(eq, a1, Operand(FLOAT32X4_TYPE), if_true, if_false, fall_through); | 5105 Split(eq, a1, Operand(FLOAT32X4_TYPE), if_true, if_false, fall_through); |
| 5106 } else if (String::Equals(check, factory->int32x4_string())) { |
| 5107 __ JumpIfSmi(v0, if_false); |
| 5108 __ GetObjectType(v0, v0, a1); |
| 5109 Split(eq, a1, Operand(INT32X4_TYPE), if_true, if_false, fall_through); |
| 5110 } else if (String::Equals(check, factory->bool32x4_string())) { |
| 5111 __ JumpIfSmi(v0, if_false); |
| 5112 __ GetObjectType(v0, v0, a1); |
| 5113 Split(eq, a1, Operand(BOOL32X4_TYPE), if_true, if_false, fall_through); |
| 5114 } else if (String::Equals(check, factory->int16x8_string())) { |
| 5115 __ JumpIfSmi(v0, if_false); |
| 5116 __ GetObjectType(v0, v0, a1); |
| 5117 Split(eq, a1, Operand(INT16X8_TYPE), if_true, if_false, fall_through); |
| 5118 } else if (String::Equals(check, factory->bool16x8_string())) { |
| 5119 __ JumpIfSmi(v0, if_false); |
| 5120 __ GetObjectType(v0, v0, a1); |
| 5121 Split(eq, a1, Operand(BOOL16X8_TYPE), if_true, if_false, fall_through); |
| 5122 } else if (String::Equals(check, factory->int8x16_string())) { |
| 5123 __ JumpIfSmi(v0, if_false); |
| 5124 __ GetObjectType(v0, v0, a1); |
| 5125 Split(eq, a1, Operand(INT8X16_TYPE), if_true, if_false, fall_through); |
| 5126 } else if (String::Equals(check, factory->bool8x16_string())) { |
| 5127 __ JumpIfSmi(v0, if_false); |
| 5128 __ GetObjectType(v0, v0, a1); |
| 5129 Split(eq, a1, Operand(BOOL8X16_TYPE), if_true, if_false, fall_through); |
5106 } else if (String::Equals(check, factory->boolean_string())) { | 5130 } else if (String::Equals(check, factory->boolean_string())) { |
5107 __ LoadRoot(at, Heap::kTrueValueRootIndex); | 5131 __ LoadRoot(at, Heap::kTrueValueRootIndex); |
5108 __ Branch(if_true, eq, v0, Operand(at)); | 5132 __ Branch(if_true, eq, v0, Operand(at)); |
5109 __ LoadRoot(at, Heap::kFalseValueRootIndex); | 5133 __ LoadRoot(at, Heap::kFalseValueRootIndex); |
5110 Split(eq, v0, Operand(at), if_true, if_false, fall_through); | 5134 Split(eq, v0, Operand(at), if_true, if_false, fall_through); |
5111 } else if (String::Equals(check, factory->undefined_string())) { | 5135 } else if (String::Equals(check, factory->undefined_string())) { |
5112 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); | 5136 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
5113 __ Branch(if_true, eq, v0, Operand(at)); | 5137 __ Branch(if_true, eq, v0, Operand(at)); |
5114 __ JumpIfSmi(v0, if_false); | 5138 __ JumpIfSmi(v0, if_false); |
5115 // Check for undetectable objects => true. | 5139 // Check for undetectable objects => true. |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5435 reinterpret_cast<uint64_t>( | 5459 reinterpret_cast<uint64_t>( |
5436 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5460 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5437 return OSR_AFTER_STACK_CHECK; | 5461 return OSR_AFTER_STACK_CHECK; |
5438 } | 5462 } |
5439 | 5463 |
5440 | 5464 |
5441 } // namespace internal | 5465 } // namespace internal |
5442 } // namespace v8 | 5466 } // namespace v8 |
5443 | 5467 |
5444 #endif // V8_TARGET_ARCH_MIPS64 | 5468 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |