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

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

Issue 2113673002: [stubs]: Convert FastNewContext stub to turbofan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename based on feedback Created 4 years, 5 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 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/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 __ Push(info->scope()->GetScopeInfo(info->isolate())); 183 __ Push(info->scope()->GetScopeInfo(info->isolate()));
184 __ CallRuntime(Runtime::kNewScriptContext); 184 __ CallRuntime(Runtime::kNewScriptContext);
185 PrepareForBailoutForId(BailoutId::ScriptContext(), 185 PrepareForBailoutForId(BailoutId::ScriptContext(),
186 BailoutState::TOS_REGISTER); 186 BailoutState::TOS_REGISTER);
187 // The new target value is not used, clobbering is safe. 187 // The new target value is not used, clobbering is safe.
188 DCHECK_NULL(info->scope()->new_target_var()); 188 DCHECK_NULL(info->scope()->new_target_var());
189 } else { 189 } else {
190 if (info->scope()->new_target_var() != nullptr) { 190 if (info->scope()->new_target_var() != nullptr) {
191 __ push(r6); // Preserve new target. 191 __ push(r6); // Preserve new target.
192 } 192 }
193 if (slots <= FastNewContextStub::kMaximumSlots) { 193 if (slots <= FastNewFunctionContextStub::kMaximumSlots) {
194 FastNewContextStub stub(isolate(), slots); 194 FastNewFunctionContextStub stub(isolate(), slots);
195 __ CallStub(&stub); 195 __ CallStub(&stub);
196 // Result of FastNewContextStub is always in new space. 196 // Result of FastNewFunctionContextStub is always in new space.
197 need_write_barrier = false; 197 need_write_barrier = false;
198 } else { 198 } else {
199 __ push(r4); 199 __ push(r4);
200 __ CallRuntime(Runtime::kNewFunctionContext); 200 __ CallRuntime(Runtime::kNewFunctionContext);
201 } 201 }
202 if (info->scope()->new_target_var() != nullptr) { 202 if (info->scope()->new_target_var() != nullptr) {
203 __ pop(r6); // Preserve new target. 203 __ pop(r6); // Preserve new target.
204 } 204 }
205 } 205 }
206 function_in_register_r4 = false; 206 function_in_register_r4 = false;
(...skipping 3553 matching lines...) Expand 10 before | Expand all | Expand 10 after
3760 3760
3761 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3761 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3762 3762
3763 DCHECK(interrupt_address == 3763 DCHECK(interrupt_address ==
3764 isolate->builtins()->OnStackReplacement()->entry()); 3764 isolate->builtins()->OnStackReplacement()->entry());
3765 return ON_STACK_REPLACEMENT; 3765 return ON_STACK_REPLACEMENT;
3766 } 3766 }
3767 } // namespace internal 3767 } // namespace internal
3768 } // namespace v8 3768 } // namespace v8
3769 #endif // V8_TARGET_ARCH_PPC 3769 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698