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

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

Issue 2177273002: Make FastNewFunctionContextStub take slots parameter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: move loop check Created 4 years, 4 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 __ CallRuntime(Runtime::kNewScriptContext); 187 __ CallRuntime(Runtime::kNewScriptContext);
188 PrepareForBailoutForId(BailoutId::ScriptContext(), 188 PrepareForBailoutForId(BailoutId::ScriptContext(),
189 BailoutState::TOS_REGISTER); 189 BailoutState::TOS_REGISTER);
190 // The new target value is not used, clobbering is safe. 190 // The new target value is not used, clobbering is safe.
191 DCHECK_NULL(info->scope()->new_target_var()); 191 DCHECK_NULL(info->scope()->new_target_var());
192 } else { 192 } else {
193 if (info->scope()->new_target_var() != nullptr) { 193 if (info->scope()->new_target_var() != nullptr) {
194 __ push(a3); // Preserve new target. 194 __ push(a3); // Preserve new target.
195 } 195 }
196 if (slots <= FastNewFunctionContextStub::kMaximumSlots) { 196 if (slots <= FastNewFunctionContextStub::kMaximumSlots) {
197 FastNewFunctionContextStub stub(isolate(), slots); 197 FastNewFunctionContextStub stub(isolate());
198 __ li(FastNewFunctionContextDescriptor::SlotsRegister(),
199 Operand(slots));
198 __ CallStub(&stub); 200 __ CallStub(&stub);
199 // Result of FastNewFunctionContextStub is always in new space. 201 // Result of FastNewFunctionContextStub is always in new space.
200 need_write_barrier = false; 202 need_write_barrier = false;
201 } else { 203 } else {
202 __ push(a1); 204 __ push(a1);
203 __ CallRuntime(Runtime::kNewFunctionContext); 205 __ CallRuntime(Runtime::kNewFunctionContext);
204 } 206 }
205 if (info->scope()->new_target_var() != nullptr) { 207 if (info->scope()->new_target_var() != nullptr) {
206 __ pop(a3); // Restore new target. 208 __ pop(a3); // Restore new target.
207 } 209 }
(...skipping 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after
3795 reinterpret_cast<uint64_t>( 3797 reinterpret_cast<uint64_t>(
3796 isolate->builtins()->OnStackReplacement()->entry())); 3798 isolate->builtins()->OnStackReplacement()->entry()));
3797 return ON_STACK_REPLACEMENT; 3799 return ON_STACK_REPLACEMENT;
3798 } 3800 }
3799 3801
3800 3802
3801 } // namespace internal 3803 } // namespace internal
3802 } // namespace v8 3804 } // namespace v8
3803 3805
3804 #endif // V8_TARGET_ARCH_MIPS64 3806 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698