| 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 5243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5254 __ GetObjectType(v0, v0, a1); | 5254 __ GetObjectType(v0, v0, a1); |
| 5255 __ Branch(if_false, ge, a1, Operand(FIRST_NONSTRING_TYPE)); | 5255 __ Branch(if_false, ge, a1, Operand(FIRST_NONSTRING_TYPE)); |
| 5256 __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset)); | 5256 __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset)); |
| 5257 __ And(a1, a1, Operand(1 << Map::kIsUndetectable)); | 5257 __ And(a1, a1, Operand(1 << Map::kIsUndetectable)); |
| 5258 Split(eq, a1, Operand(zero_reg), | 5258 Split(eq, a1, Operand(zero_reg), |
| 5259 if_true, if_false, fall_through); | 5259 if_true, if_false, fall_through); |
| 5260 } else if (String::Equals(check, factory->symbol_string())) { | 5260 } else if (String::Equals(check, factory->symbol_string())) { |
| 5261 __ JumpIfSmi(v0, if_false); | 5261 __ JumpIfSmi(v0, if_false); |
| 5262 __ GetObjectType(v0, v0, a1); | 5262 __ GetObjectType(v0, v0, a1); |
| 5263 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through); | 5263 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through); |
| 5264 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5265 __ JumpIfSmi(v0, if_false); |
| 5266 __ GetObjectType(v0, v0, a1); |
| 5267 Split(eq, a1, Operand(FLOAT32X4_TYPE), if_true, if_false, fall_through); |
| 5264 } else if (String::Equals(check, factory->boolean_string())) { | 5268 } else if (String::Equals(check, factory->boolean_string())) { |
| 5265 __ LoadRoot(at, Heap::kTrueValueRootIndex); | 5269 __ LoadRoot(at, Heap::kTrueValueRootIndex); |
| 5266 __ Branch(if_true, eq, v0, Operand(at)); | 5270 __ Branch(if_true, eq, v0, Operand(at)); |
| 5267 __ LoadRoot(at, Heap::kFalseValueRootIndex); | 5271 __ LoadRoot(at, Heap::kFalseValueRootIndex); |
| 5268 Split(eq, v0, Operand(at), if_true, if_false, fall_through); | 5272 Split(eq, v0, Operand(at), if_true, if_false, fall_through); |
| 5269 } else if (String::Equals(check, factory->undefined_string())) { | 5273 } else if (String::Equals(check, factory->undefined_string())) { |
| 5270 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); | 5274 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
| 5271 __ Branch(if_true, eq, v0, Operand(at)); | 5275 __ Branch(if_true, eq, v0, Operand(at)); |
| 5272 __ JumpIfSmi(v0, if_false); | 5276 __ JumpIfSmi(v0, if_false); |
| 5273 // Check for undetectable objects => true. | 5277 // Check for undetectable objects => true. |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5594 reinterpret_cast<uint64_t>( | 5598 reinterpret_cast<uint64_t>( |
| 5595 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5599 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5596 return OSR_AFTER_STACK_CHECK; | 5600 return OSR_AFTER_STACK_CHECK; |
| 5597 } | 5601 } |
| 5598 | 5602 |
| 5599 | 5603 |
| 5600 } // namespace internal | 5604 } // namespace internal |
| 5601 } // namespace v8 | 5605 } // namespace v8 |
| 5602 | 5606 |
| 5603 #endif // V8_TARGET_ARCH_MIPS64 | 5607 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |