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 3184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3195 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3195 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3196 ZoneList<Expression*>* args = expr->arguments(); | 3196 ZoneList<Expression*>* args = expr->arguments(); |
3197 DCHECK_EQ(1, args->length()); | 3197 DCHECK_EQ(1, args->length()); |
3198 VisitForAccumulatorValue(args->at(0)); | 3198 VisitForAccumulatorValue(args->at(0)); |
3199 __ AssertFunction(eax); | 3199 __ AssertFunction(eax); |
3200 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); | 3200 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
3201 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); | 3201 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); |
3202 context()->Plug(eax); | 3202 context()->Plug(eax); |
3203 } | 3203 } |
3204 | 3204 |
| 3205 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) { |
| 3206 DCHECK_EQ(0, expr->arguments()->length()); |
| 3207 __ mov(eax, NativeContextOperand()); |
| 3208 __ mov(eax, ContextOperand(eax, Context::ORDINARY_HAS_INSTANCE_INDEX)); |
| 3209 context()->Plug(eax); |
| 3210 } |
3205 | 3211 |
3206 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { | 3212 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
3207 DCHECK(expr->arguments()->length() == 0); | 3213 DCHECK(expr->arguments()->length() == 0); |
3208 ExternalReference debug_is_active = | 3214 ExternalReference debug_is_active = |
3209 ExternalReference::debug_is_active_address(isolate()); | 3215 ExternalReference::debug_is_active_address(isolate()); |
3210 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); | 3216 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); |
3211 __ SmiTag(eax); | 3217 __ SmiTag(eax); |
3212 context()->Plug(eax); | 3218 context()->Plug(eax); |
3213 } | 3219 } |
3214 | 3220 |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3997 isolate->builtins()->OnStackReplacement()->entry(), | 4003 isolate->builtins()->OnStackReplacement()->entry(), |
3998 Assembler::target_address_at(call_target_address, unoptimized_code)); | 4004 Assembler::target_address_at(call_target_address, unoptimized_code)); |
3999 return ON_STACK_REPLACEMENT; | 4005 return ON_STACK_REPLACEMENT; |
4000 } | 4006 } |
4001 | 4007 |
4002 | 4008 |
4003 } // namespace internal | 4009 } // namespace internal |
4004 } // namespace v8 | 4010 } // namespace v8 |
4005 | 4011 |
4006 #endif // V8_TARGET_ARCH_IA32 | 4012 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |