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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3014 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3014 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3015 ZoneList<Expression*>* args = expr->arguments(); | 3015 ZoneList<Expression*>* args = expr->arguments(); |
3016 DCHECK_EQ(1, args->length()); | 3016 DCHECK_EQ(1, args->length()); |
3017 VisitForAccumulatorValue(args->at(0)); | 3017 VisitForAccumulatorValue(args->at(0)); |
3018 __ AssertFunction(eax); | 3018 __ AssertFunction(eax); |
3019 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); | 3019 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
3020 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); | 3020 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); |
3021 context()->Plug(eax); | 3021 context()->Plug(eax); |
3022 } | 3022 } |
3023 | 3023 |
3024 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) { | |
3025 DCHECK_EQ(0, expr->arguments()->length()); | |
3026 __ mov(eax, NativeContextOperand()); | |
3027 __ mov(eax, ContextOperand(eax, Context::ORDINARY_HAS_INSTANCE_INDEX)); | |
3028 context()->Plug(eax); | |
3029 } | |
3030 | |
3031 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { | 3024 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
3032 DCHECK(expr->arguments()->length() == 0); | 3025 DCHECK(expr->arguments()->length() == 0); |
3033 ExternalReference debug_is_active = | 3026 ExternalReference debug_is_active = |
3034 ExternalReference::debug_is_active_address(isolate()); | 3027 ExternalReference::debug_is_active_address(isolate()); |
3035 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); | 3028 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); |
3036 __ SmiTag(eax); | 3029 __ SmiTag(eax); |
3037 context()->Plug(eax); | 3030 context()->Plug(eax); |
3038 } | 3031 } |
3039 | 3032 |
3040 | 3033 |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3821 isolate->builtins()->OnStackReplacement()->entry(), | 3814 isolate->builtins()->OnStackReplacement()->entry(), |
3822 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3815 Assembler::target_address_at(call_target_address, unoptimized_code)); |
3823 return ON_STACK_REPLACEMENT; | 3816 return ON_STACK_REPLACEMENT; |
3824 } | 3817 } |
3825 | 3818 |
3826 | 3819 |
3827 } // namespace internal | 3820 } // namespace internal |
3828 } // namespace v8 | 3821 } // namespace v8 |
3829 | 3822 |
3830 #endif // V8_TARGET_ARCH_X87 | 3823 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |