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