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