Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/builtins/x87/builtins-x87.cc

Issue 2522653003: X87: [fullcodegen] Remove deprecated generator implementation. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698