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

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

Issue 2590343002: PPC: Use a different map to distinguish eval contexts (Closed)
Patch Set: Created 3 years, 12 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 PrepareForBailoutForId(BailoutId::ScriptContext(), 201 PrepareForBailoutForId(BailoutId::ScriptContext(),
202 BailoutState::TOS_REGISTER); 202 BailoutState::TOS_REGISTER);
203 // The new target value is not used, clobbering is safe. 203 // The new target value is not used, clobbering is safe.
204 DCHECK_NULL(info->scope()->new_target_var()); 204 DCHECK_NULL(info->scope()->new_target_var());
205 } else { 205 } else {
206 if (info->scope()->new_target_var() != nullptr) { 206 if (info->scope()->new_target_var() != nullptr) {
207 __ push(r6); // Preserve new target. 207 __ push(r6); // Preserve new target.
208 } 208 }
209 if (slots <= FastNewFunctionContextStub::MaximumSlots()) { 209 if (slots <= FastNewFunctionContextStub::MaximumSlots()) {
210 FastNewFunctionContextStub stub(isolate(), info->scope()->scope_type()); 210 FastNewFunctionContextStub stub(isolate(), info->scope()->scope_type());
211 __ mov(FastNewFContextDescriptor::SlotsRegister(), Operand(slots)); 211 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(),
212 Operand(slots));
212 __ CallStub(&stub); 213 __ CallStub(&stub);
213 // Result of FastNewFunctionContextStub is always in new space. 214 // Result of FastNewFunctionContextStub is always in new space.
214 need_write_barrier = false; 215 need_write_barrier = false;
215 } else { 216 } else {
216 __ push(r4); 217 __ push(r4);
217 __ Push(Smi::FromInt(info->scope()->scope_type())); 218 __ Push(Smi::FromInt(info->scope()->scope_type()));
218 __ CallRuntime(Runtime::kNewFunctionContext); 219 __ CallRuntime(Runtime::kNewFunctionContext);
219 } 220 }
220 if (info->scope()->new_target_var() != nullptr) { 221 if (info->scope()->new_target_var() != nullptr) {
221 __ pop(r6); // Preserve new target. 222 __ pop(r6); // Preserve new target.
(...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after
2856 2857
2857 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2858 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2858 2859
2859 DCHECK(interrupt_address == 2860 DCHECK(interrupt_address ==
2860 isolate->builtins()->OnStackReplacement()->entry()); 2861 isolate->builtins()->OnStackReplacement()->entry());
2861 return ON_STACK_REPLACEMENT; 2862 return ON_STACK_REPLACEMENT;
2862 } 2863 }
2863 } // namespace internal 2864 } // namespace internal
2864 } // namespace v8 2865 } // namespace v8
2865 #endif // V8_TARGET_ARCH_PPC 2866 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698