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

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

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Crankshaft backends and scope deserialization Created 4 years, 2 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
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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 __ Push(info->scope()->scope_info()); 202 __ Push(info->scope()->scope_info());
203 __ CallRuntime(Runtime::kNewScriptContext); 203 __ CallRuntime(Runtime::kNewScriptContext);
204 PrepareForBailoutForId(BailoutId::ScriptContext(), 204 PrepareForBailoutForId(BailoutId::ScriptContext(),
205 BailoutState::TOS_REGISTER); 205 BailoutState::TOS_REGISTER);
206 // The new target value is not used, clobbering is safe. 206 // The new target value is not used, clobbering is safe.
207 DCHECK_NULL(info->scope()->new_target_var()); 207 DCHECK_NULL(info->scope()->new_target_var());
208 } else { 208 } else {
209 if (info->scope()->new_target_var() != nullptr) { 209 if (info->scope()->new_target_var() != nullptr) {
210 __ push(a3); // Preserve new target. 210 __ push(a3); // Preserve new target.
211 } 211 }
212 FastNewFunctionContextStub stub(isolate()); 212 FastNewFunctionContextStub stub(isolate(),
213 info->scope()->is_eval_scope());
213 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); 214 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots));
214 __ CallStub(&stub); 215 __ CallStub(&stub);
215 // Result of FastNewFunctionContextStub is always in new space. 216 // Result of FastNewFunctionContextStub is always in new space.
216 need_write_barrier = false; 217 need_write_barrier = false;
217 if (info->scope()->new_target_var() != nullptr) { 218 if (info->scope()->new_target_var() != nullptr) {
218 __ pop(a3); // Restore new target. 219 __ pop(a3); // Restore new target.
219 } 220 }
220 } 221 }
221 function_in_register_a1 = false; 222 function_in_register_a1 = false;
222 // Context is returned in v0. It replaces the context passed to us. 223 // Context is returned in v0. It replaces the context passed to us.
(...skipping 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after
3643 reinterpret_cast<uint64_t>( 3644 reinterpret_cast<uint64_t>(
3644 isolate->builtins()->OnStackReplacement()->entry())); 3645 isolate->builtins()->OnStackReplacement()->entry()));
3645 return ON_STACK_REPLACEMENT; 3646 return ON_STACK_REPLACEMENT;
3646 } 3647 }
3647 3648
3648 3649
3649 } // namespace internal 3650 } // namespace internal
3650 } // namespace v8 3651 } // namespace v8
3651 3652
3652 #endif // V8_TARGET_ARCH_MIPS64 3653 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698