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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 5205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5216 __ GetObjectType(v0, v0, a1); | 5216 __ GetObjectType(v0, v0, a1); |
5217 __ Branch(if_false, ge, a1, Operand(FIRST_NONSTRING_TYPE)); | 5217 __ Branch(if_false, ge, a1, Operand(FIRST_NONSTRING_TYPE)); |
5218 __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset)); | 5218 __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset)); |
5219 __ And(a1, a1, Operand(1 << Map::kIsUndetectable)); | 5219 __ And(a1, a1, Operand(1 << Map::kIsUndetectable)); |
5220 Split(eq, a1, Operand(zero_reg), | 5220 Split(eq, a1, Operand(zero_reg), |
5221 if_true, if_false, fall_through); | 5221 if_true, if_false, fall_through); |
5222 } else if (String::Equals(check, factory->symbol_string())) { | 5222 } else if (String::Equals(check, factory->symbol_string())) { |
5223 __ JumpIfSmi(v0, if_false); | 5223 __ JumpIfSmi(v0, if_false); |
5224 __ GetObjectType(v0, v0, a1); | 5224 __ GetObjectType(v0, v0, a1); |
5225 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through); | 5225 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through); |
| 5226 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5227 __ JumpIfSmi(v0, if_false); |
| 5228 __ GetObjectType(v0, v0, a1); |
| 5229 Split(eq, a1, Operand(FLOAT32X4_TYPE), if_true, if_false, fall_through); |
5226 } else if (String::Equals(check, factory->boolean_string())) { | 5230 } else if (String::Equals(check, factory->boolean_string())) { |
5227 __ LoadRoot(at, Heap::kTrueValueRootIndex); | 5231 __ LoadRoot(at, Heap::kTrueValueRootIndex); |
5228 __ Branch(if_true, eq, v0, Operand(at)); | 5232 __ Branch(if_true, eq, v0, Operand(at)); |
5229 __ LoadRoot(at, Heap::kFalseValueRootIndex); | 5233 __ LoadRoot(at, Heap::kFalseValueRootIndex); |
5230 Split(eq, v0, Operand(at), if_true, if_false, fall_through); | 5234 Split(eq, v0, Operand(at), if_true, if_false, fall_through); |
5231 } else if (String::Equals(check, factory->undefined_string())) { | 5235 } else if (String::Equals(check, factory->undefined_string())) { |
5232 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); | 5236 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
5233 __ Branch(if_true, eq, v0, Operand(at)); | 5237 __ Branch(if_true, eq, v0, Operand(at)); |
5234 __ JumpIfSmi(v0, if_false); | 5238 __ JumpIfSmi(v0, if_false); |
5235 // Check for undetectable objects => true. | 5239 // Check for undetectable objects => true. |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5551 reinterpret_cast<uint32_t>( | 5555 reinterpret_cast<uint32_t>( |
5552 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5556 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5553 return OSR_AFTER_STACK_CHECK; | 5557 return OSR_AFTER_STACK_CHECK; |
5554 } | 5558 } |
5555 | 5559 |
5556 | 5560 |
5557 } // namespace internal | 5561 } // namespace internal |
5558 } // namespace v8 | 5562 } // namespace v8 |
5559 | 5563 |
5560 #endif // V8_TARGET_ARCH_MIPS | 5564 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |