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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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 3172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3183 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3183 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3184 ZoneList<Expression*>* args = expr->arguments(); | 3184 ZoneList<Expression*>* args = expr->arguments(); |
3185 DCHECK_EQ(1, args->length()); | 3185 DCHECK_EQ(1, args->length()); |
3186 VisitForAccumulatorValue(args->at(0)); | 3186 VisitForAccumulatorValue(args->at(0)); |
3187 __ AssertFunction(rax); | 3187 __ AssertFunction(rax); |
3188 __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); | 3188 __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); |
3189 __ movp(rax, FieldOperand(rax, Map::kPrototypeOffset)); | 3189 __ movp(rax, FieldOperand(rax, Map::kPrototypeOffset)); |
3190 context()->Plug(rax); | 3190 context()->Plug(rax); |
3191 } | 3191 } |
3192 | 3192 |
| 3193 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) { |
| 3194 DCHECK_EQ(0, expr->arguments()->length()); |
| 3195 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, rax); |
| 3196 context()->Plug(rax); |
| 3197 } |
3193 | 3198 |
3194 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { | 3199 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
3195 DCHECK(expr->arguments()->length() == 0); | 3200 DCHECK(expr->arguments()->length() == 0); |
3196 ExternalReference debug_is_active = | 3201 ExternalReference debug_is_active = |
3197 ExternalReference::debug_is_active_address(isolate()); | 3202 ExternalReference::debug_is_active_address(isolate()); |
3198 __ Move(kScratchRegister, debug_is_active); | 3203 __ Move(kScratchRegister, debug_is_active); |
3199 __ movzxbp(rax, Operand(kScratchRegister, 0)); | 3204 __ movzxbp(rax, Operand(kScratchRegister, 0)); |
3200 __ Integer32ToSmi(rax, rax); | 3205 __ Integer32ToSmi(rax, rax); |
3201 context()->Plug(rax); | 3206 context()->Plug(rax); |
3202 } | 3207 } |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3982 DCHECK_EQ( | 3987 DCHECK_EQ( |
3983 isolate->builtins()->OnStackReplacement()->entry(), | 3988 isolate->builtins()->OnStackReplacement()->entry(), |
3984 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3989 Assembler::target_address_at(call_target_address, unoptimized_code)); |
3985 return ON_STACK_REPLACEMENT; | 3990 return ON_STACK_REPLACEMENT; |
3986 } | 3991 } |
3987 | 3992 |
3988 } // namespace internal | 3993 } // namespace internal |
3989 } // namespace v8 | 3994 } // namespace v8 |
3990 | 3995 |
3991 #endif // V8_TARGET_ARCH_X64 | 3996 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |