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