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

Side by Side Diff: src/builtins/mips/builtins-mips.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/ia32/builtins-ia32.cc ('k') | src/builtins/mips64/builtins-mips64.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 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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 857
858 // Store input value into generator object. 858 // Store input value into generator object.
859 __ sw(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset)); 859 __ sw(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset));
860 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3, 860 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3,
861 kRAHasNotBeenSaved, kDontSaveFPRegs); 861 kRAHasNotBeenSaved, kDontSaveFPRegs);
862 862
863 // Store resume mode into generator object. 863 // Store resume mode into generator object.
864 __ sw(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); 864 __ sw(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset));
865 865
866 // Load suspended function and context. 866 // Load suspended function and context.
867 __ lw(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset));
868 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 867 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
868 __ lw(cp, FieldMemOperand(t0, JSFunction::kContextOffset));
869 869
870 // Flood function if we are stepping. 870 // Flood function if we are stepping.
871 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; 871 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator;
872 Label stepping_prepared; 872 Label stepping_prepared;
873 ExternalReference debug_hook = 873 ExternalReference debug_hook =
874 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); 874 ExternalReference::debug_hook_on_function_call_address(masm->isolate());
875 __ li(t1, Operand(debug_hook)); 875 __ li(t1, Operand(debug_hook));
876 __ lb(t1, MemOperand(t1)); 876 __ lb(t1, MemOperand(t1));
877 __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg)); 877 __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg));
878 878
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after
2962 __ break_(0xCC); 2962 __ break_(0xCC);
2963 } 2963 }
2964 } 2964 }
2965 2965
2966 #undef __ 2966 #undef __
2967 2967
2968 } // namespace internal 2968 } // namespace internal
2969 } // namespace v8 2969 } // namespace v8
2970 2970
2971 #endif // V8_TARGET_ARCH_MIPS 2971 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/builtins/ia32/builtins-ia32.cc ('k') | src/builtins/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698