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/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 __ mov(ecx, FieldOperand(ecx, SharedFunctionInfo::kFunctionDataOffset)); | 444 __ mov(ecx, FieldOperand(ecx, SharedFunctionInfo::kFunctionDataOffset)); |
445 __ CmpObjectType(ecx, BYTECODE_ARRAY_TYPE, ecx); | 445 __ CmpObjectType(ecx, BYTECODE_ARRAY_TYPE, ecx); |
446 __ Assert(equal, kMissingBytecodeArray); | 446 __ Assert(equal, kMissingBytecodeArray); |
447 } | 447 } |
448 | 448 |
449 // Resume (Ignition/TurboFan) generator object. | 449 // Resume (Ignition/TurboFan) generator object. |
450 { | 450 { |
451 __ PushReturnAddressFrom(eax); | 451 __ PushReturnAddressFrom(eax); |
452 __ mov(eax, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); | 452 __ mov(eax, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); |
453 __ mov(eax, | 453 __ mov(eax, |
454 FieldOperand(ecx, SharedFunctionInfo::kFormalParameterCountOffset)); | 454 FieldOperand(eax, SharedFunctionInfo::kFormalParameterCountOffset)); |
455 // We abuse new.target both to indicate that this is a resume call and to | 455 // We abuse new.target both to indicate that this is a resume call and to |
456 // pass in the generator object. In ordinary calls, new.target is always | 456 // pass in the generator object. In ordinary calls, new.target is always |
457 // undefined because generator functions are non-constructable. | 457 // undefined because generator functions are non-constructable. |
458 __ mov(edx, ebx); | 458 __ mov(edx, ebx); |
459 __ jmp(FieldOperand(edi, JSFunction::kCodeEntryOffset)); | 459 __ jmp(FieldOperand(edi, JSFunction::kCodeEntryOffset)); |
460 } | 460 } |
461 | 461 |
462 __ bind(&prepare_step_in_if_stepping); | 462 __ bind(&prepare_step_in_if_stepping); |
463 { | 463 { |
464 FrameScope scope(masm, StackFrame::INTERNAL); | 464 FrameScope scope(masm, StackFrame::INTERNAL); |
(...skipping 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3087 | 3087 |
3088 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3088 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
3089 Generate_OnStackReplacementHelper(masm, true); | 3089 Generate_OnStackReplacementHelper(masm, true); |
3090 } | 3090 } |
3091 | 3091 |
3092 #undef __ | 3092 #undef __ |
3093 } // namespace internal | 3093 } // namespace internal |
3094 } // namespace v8 | 3094 } // namespace v8 |
3095 | 3095 |
3096 #endif // V8_TARGET_ARCH_X87 | 3096 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |