| 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 3297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3308 __ Branch(&non_function_constructor, ne, a1, Operand(JS_FUNCTION_TYPE)); | 3308 __ Branch(&non_function_constructor, ne, a1, Operand(JS_FUNCTION_TYPE)); |
| 3309 | 3309 |
| 3310 // v0 now contains the constructor function. Grab the | 3310 // v0 now contains the constructor function. Grab the |
| 3311 // instance class name from there. | 3311 // instance class name from there. |
| 3312 __ lw(v0, FieldMemOperand(v0, JSFunction::kSharedFunctionInfoOffset)); | 3312 __ lw(v0, FieldMemOperand(v0, JSFunction::kSharedFunctionInfoOffset)); |
| 3313 __ lw(v0, FieldMemOperand(v0, SharedFunctionInfo::kInstanceClassNameOffset)); | 3313 __ lw(v0, FieldMemOperand(v0, SharedFunctionInfo::kInstanceClassNameOffset)); |
| 3314 __ Branch(&done); | 3314 __ Branch(&done); |
| 3315 | 3315 |
| 3316 // Functions have class 'Function'. | 3316 // Functions have class 'Function'. |
| 3317 __ bind(&function); | 3317 __ bind(&function); |
| 3318 __ LoadRoot(v0, Heap::kfunction_class_stringRootIndex); | 3318 __ LoadRoot(v0, Heap::kFunction_stringRootIndex); |
| 3319 __ jmp(&done); | 3319 __ jmp(&done); |
| 3320 | 3320 |
| 3321 // Objects with a non-function constructor have class 'Object'. | 3321 // Objects with a non-function constructor have class 'Object'. |
| 3322 __ bind(&non_function_constructor); | 3322 __ bind(&non_function_constructor); |
| 3323 __ LoadRoot(v0, Heap::kObject_stringRootIndex); | 3323 __ LoadRoot(v0, Heap::kObject_stringRootIndex); |
| 3324 __ jmp(&done); | 3324 __ jmp(&done); |
| 3325 | 3325 |
| 3326 // Non-JS objects have class null. | 3326 // Non-JS objects have class null. |
| 3327 __ bind(&null); | 3327 __ bind(&null); |
| 3328 __ LoadRoot(v0, Heap::kNullValueRootIndex); | 3328 __ LoadRoot(v0, Heap::kNullValueRootIndex); |
| (...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4875 Assembler::target_address_at(pc_immediate_load_address)) == | 4875 Assembler::target_address_at(pc_immediate_load_address)) == |
| 4876 reinterpret_cast<uint32_t>( | 4876 reinterpret_cast<uint32_t>( |
| 4877 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4877 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4878 return OSR_AFTER_STACK_CHECK; | 4878 return OSR_AFTER_STACK_CHECK; |
| 4879 } | 4879 } |
| 4880 | 4880 |
| 4881 | 4881 |
| 4882 } } // namespace v8::internal | 4882 } } // namespace v8::internal |
| 4883 | 4883 |
| 4884 #endif // V8_TARGET_ARCH_MIPS | 4884 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |