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

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

Issue 2639533002: [generators] Always call function with closure context when resuming. (Closed)
Patch Set: Ports. Created 3 years, 11 months 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 | « src/builtins/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 // Store input value into generator object. 742 // Store input value into generator object.
743 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOrDebugPosOffset), 743 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOrDebugPosOffset),
744 r0); 744 r0);
745 __ RecordWriteField(r4, JSGeneratorObject::kInputOrDebugPosOffset, r3, r6, 745 __ RecordWriteField(r4, JSGeneratorObject::kInputOrDebugPosOffset, r3, r6,
746 kLRHasNotBeenSaved, kDontSaveFPRegs); 746 kLRHasNotBeenSaved, kDontSaveFPRegs);
747 747
748 // Store resume mode into generator object. 748 // Store resume mode into generator object.
749 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0); 749 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0);
750 750
751 // Load suspended function and context. 751 // Load suspended function and context.
752 __ LoadP(cp, FieldMemOperand(r4, JSGeneratorObject::kContextOffset));
753 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset)); 752 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset));
753 __ LoadP(cp, FieldMemOperand(r7, JSFunction::kContextOffset));
754 754
755 // Flood function if we are stepping. 755 // Flood function if we are stepping.
756 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; 756 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator;
757 Label stepping_prepared; 757 Label stepping_prepared;
758 ExternalReference debug_hook = 758 ExternalReference debug_hook =
759 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); 759 ExternalReference::debug_hook_on_function_call_address(masm->isolate());
760 __ mov(ip, Operand(debug_hook)); 760 __ mov(ip, Operand(debug_hook));
761 __ LoadByte(ip, MemOperand(ip), r0); 761 __ LoadByte(ip, MemOperand(ip), r0);
762 __ extsb(ip, ip); 762 __ extsb(ip, ip);
763 __ CmpSmiLiteral(ip, Smi::kZero, r0); 763 __ CmpSmiLiteral(ip, Smi::kZero, r0);
(...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 __ CallRuntime(Runtime::kThrowStackOverflow); 2964 __ CallRuntime(Runtime::kThrowStackOverflow);
2965 __ bkpt(0); 2965 __ bkpt(0);
2966 } 2966 }
2967 } 2967 }
2968 2968
2969 #undef __ 2969 #undef __
2970 } // namespace internal 2970 } // namespace internal
2971 } // namespace v8 2971 } // namespace v8
2972 2972
2973 #endif // V8_TARGET_ARCH_PPC 2973 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/builtins/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698