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_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3234 __ j(not_equal, &non_function_constructor); | 3234 __ j(not_equal, &non_function_constructor); |
3235 | 3235 |
3236 // eax now contains the constructor function. Grab the | 3236 // eax now contains the constructor function. Grab the |
3237 // instance class name from there. | 3237 // instance class name from there. |
3238 __ mov(eax, FieldOperand(eax, JSFunction::kSharedFunctionInfoOffset)); | 3238 __ mov(eax, FieldOperand(eax, JSFunction::kSharedFunctionInfoOffset)); |
3239 __ mov(eax, FieldOperand(eax, SharedFunctionInfo::kInstanceClassNameOffset)); | 3239 __ mov(eax, FieldOperand(eax, SharedFunctionInfo::kInstanceClassNameOffset)); |
3240 __ jmp(&done); | 3240 __ jmp(&done); |
3241 | 3241 |
3242 // Functions have class 'Function'. | 3242 // Functions have class 'Function'. |
3243 __ bind(&function); | 3243 __ bind(&function); |
3244 __ mov(eax, isolate()->factory()->function_class_string()); | 3244 __ mov(eax, isolate()->factory()->Function_string()); |
3245 __ jmp(&done); | 3245 __ jmp(&done); |
3246 | 3246 |
3247 // Objects with a non-function constructor have class 'Object'. | 3247 // Objects with a non-function constructor have class 'Object'. |
3248 __ bind(&non_function_constructor); | 3248 __ bind(&non_function_constructor); |
3249 __ mov(eax, isolate()->factory()->Object_string()); | 3249 __ mov(eax, isolate()->factory()->Object_string()); |
3250 __ jmp(&done); | 3250 __ jmp(&done); |
3251 | 3251 |
3252 // Non-JS objects have class null. | 3252 // Non-JS objects have class null. |
3253 __ bind(&null); | 3253 __ bind(&null); |
3254 __ mov(eax, isolate()->factory()->null_value()); | 3254 __ mov(eax, isolate()->factory()->null_value()); |
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4818 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4818 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4819 Assembler::target_address_at(call_target_address, | 4819 Assembler::target_address_at(call_target_address, |
4820 unoptimized_code)); | 4820 unoptimized_code)); |
4821 return OSR_AFTER_STACK_CHECK; | 4821 return OSR_AFTER_STACK_CHECK; |
4822 } | 4822 } |
4823 | 4823 |
4824 | 4824 |
4825 } } // namespace v8::internal | 4825 } } // namespace v8::internal |
4826 | 4826 |
4827 #endif // V8_TARGET_ARCH_X87 | 4827 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |