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