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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.cc

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Crankshaft backends and scope deserialization 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
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 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 __ Push(info->scope()->scope_info()); 203 __ Push(info->scope()->scope_info());
204 __ CallRuntime(Runtime::kNewScriptContext); 204 __ CallRuntime(Runtime::kNewScriptContext);
205 PrepareForBailoutForId(BailoutId::ScriptContext(), 205 PrepareForBailoutForId(BailoutId::ScriptContext(),
206 BailoutState::TOS_REGISTER); 206 BailoutState::TOS_REGISTER);
207 // The new target value is not used, clobbering is safe. 207 // The new target value is not used, clobbering is safe.
208 DCHECK_NULL(info->scope()->new_target_var()); 208 DCHECK_NULL(info->scope()->new_target_var());
209 } else { 209 } else {
210 if (info->scope()->new_target_var() != nullptr) { 210 if (info->scope()->new_target_var() != nullptr) {
211 __ push(a3); // Preserve new target. 211 __ push(a3); // Preserve new target.
212 } 212 }
213 FastNewFunctionContextStub stub(isolate()); 213 FastNewFunctionContextStub stub(isolate(),
214 info->scope()->is_eval_scope());
214 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); 215 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots));
215 __ CallStub(&stub); 216 __ CallStub(&stub);
216 // Result of FastNewFunctionContextStub is always in new space. 217 // Result of FastNewFunctionContextStub is always in new space.
217 need_write_barrier = false; 218 need_write_barrier = false;
218 if (info->scope()->new_target_var() != nullptr) { 219 if (info->scope()->new_target_var() != nullptr) {
219 __ pop(a3); // Restore new target. 220 __ pop(a3); // Restore new target.
220 } 221 }
221 } 222 }
222 function_in_register_a1 = false; 223 function_in_register_a1 = false;
223 // Context is returned in v0. It replaces the context passed to us. 224 // Context is returned in v0. It replaces the context passed to us.
(...skipping 3412 matching lines...) Expand 10 before | Expand all | Expand 10 after
3636 reinterpret_cast<uint32_t>( 3637 reinterpret_cast<uint32_t>(
3637 isolate->builtins()->OnStackReplacement()->entry())); 3638 isolate->builtins()->OnStackReplacement()->entry()));
3638 return ON_STACK_REPLACEMENT; 3639 return ON_STACK_REPLACEMENT;
3639 } 3640 }
3640 3641
3641 3642
3642 } // namespace internal 3643 } // namespace internal
3643 } // namespace v8 3644 } // namespace v8
3644 3645
3645 #endif // V8_TARGET_ARCH_MIPS 3646 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698