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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3022 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3022 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3023 ZoneList<Expression*>* args = expr->arguments(); | 3023 ZoneList<Expression*>* args = expr->arguments(); |
3024 DCHECK_EQ(1, args->length()); | 3024 DCHECK_EQ(1, args->length()); |
3025 VisitForAccumulatorValue(args->at(0)); | 3025 VisitForAccumulatorValue(args->at(0)); |
3026 __ AssertFunction(eax); | 3026 __ AssertFunction(eax); |
3027 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); | 3027 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
3028 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); | 3028 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); |
3029 context()->Plug(eax); | 3029 context()->Plug(eax); |
3030 } | 3030 } |
3031 | 3031 |
3032 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) { | |
3033 DCHECK_EQ(0, expr->arguments()->length()); | |
3034 __ mov(eax, NativeContextOperand()); | |
3035 __ mov(eax, ContextOperand(eax, Context::ORDINARY_HAS_INSTANCE_INDEX)); | |
3036 context()->Plug(eax); | |
3037 } | |
3038 | |
3039 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { | 3032 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
3040 DCHECK(expr->arguments()->length() == 0); | 3033 DCHECK(expr->arguments()->length() == 0); |
3041 ExternalReference debug_is_active = | 3034 ExternalReference debug_is_active = |
3042 ExternalReference::debug_is_active_address(isolate()); | 3035 ExternalReference::debug_is_active_address(isolate()); |
3043 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); | 3036 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); |
3044 __ SmiTag(eax); | 3037 __ SmiTag(eax); |
3045 context()->Plug(eax); | 3038 context()->Plug(eax); |
3046 } | 3039 } |
3047 | 3040 |
3048 | 3041 |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3829 isolate->builtins()->OnStackReplacement()->entry(), | 3822 isolate->builtins()->OnStackReplacement()->entry(), |
3830 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3823 Assembler::target_address_at(call_target_address, unoptimized_code)); |
3831 return ON_STACK_REPLACEMENT; | 3824 return ON_STACK_REPLACEMENT; |
3832 } | 3825 } |
3833 | 3826 |
3834 | 3827 |
3835 } // namespace internal | 3828 } // namespace internal |
3836 } // namespace v8 | 3829 } // namespace v8 |
3837 | 3830 |
3838 #endif // V8_TARGET_ARCH_IA32 | 3831 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |