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

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

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Changes from review Created 4 years 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/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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 __ Push(info->scope()->scope_info()); 199 __ Push(info->scope()->scope_info());
200 __ CallRuntime(Runtime::kNewScriptContext); 200 __ CallRuntime(Runtime::kNewScriptContext);
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::kMaximumSlots) { 209 if (slots <= FastNewFunctionContextStub::MaximumSlots()) {
210 FastNewFunctionContextStub stub(isolate()); 210 FastNewFunctionContextStub stub(isolate(), info->scope()->scope_type());
211 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), 211 __ mov(FastNewFContextDescriptor::SlotsRegister(), Operand(slots));
212 Operand(slots));
213 __ CallStub(&stub); 212 __ CallStub(&stub);
214 // Result of FastNewFunctionContextStub is always in new space. 213 // Result of FastNewFunctionContextStub is always in new space.
215 need_write_barrier = false; 214 need_write_barrier = false;
216 } else { 215 } else {
217 __ push(r4); 216 __ push(r4);
217 __ Push(Smi::FromInt(info->scope()->scope_type()));
218 __ CallRuntime(Runtime::kNewFunctionContext); 218 __ CallRuntime(Runtime::kNewFunctionContext);
219 } 219 }
220 if (info->scope()->new_target_var() != nullptr) { 220 if (info->scope()->new_target_var() != nullptr) {
221 __ pop(r6); // Preserve new target. 221 __ pop(r6); // Preserve new target.
222 } 222 }
223 } 223 }
224 function_in_register_r4 = false; 224 function_in_register_r4 = false;
225 // Context is returned in r3. It replaces the context passed to us. 225 // Context is returned in r3. It replaces the context passed to us.
226 // It's saved in the stack and kept live in cp. 226 // It's saved in the stack and kept live in cp.
227 __ mr(cp, r3); 227 __ mr(cp, r3);
(...skipping 2630 matching lines...) Expand 10 before | Expand all | Expand 10 after
2858 2858
2859 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2859 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2860 2860
2861 DCHECK(interrupt_address == 2861 DCHECK(interrupt_address ==
2862 isolate->builtins()->OnStackReplacement()->entry()); 2862 isolate->builtins()->OnStackReplacement()->entry());
2863 return ON_STACK_REPLACEMENT; 2863 return ON_STACK_REPLACEMENT;
2864 } 2864 }
2865 } // namespace internal 2865 } // namespace internal
2866 } // namespace v8 2866 } // namespace v8
2867 #endif // V8_TARGET_ARCH_PPC 2867 #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