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

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

Issue 1819123002: Remove support for legacy const, part 1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased, deleted one more file Created 4 years, 9 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 __ CallStub(&stub); 292 __ CallStub(&stub);
293 } 293 }
294 294
295 SetVar(arguments, r3, r4, r5); 295 SetVar(arguments, r3, r4, r5);
296 } 296 }
297 297
298 if (FLAG_trace) { 298 if (FLAG_trace) {
299 __ CallRuntime(Runtime::kTraceEnter); 299 __ CallRuntime(Runtime::kTraceEnter);
300 } 300 }
301 301
302 // Visit the declarations and body unless there is an illegal 302 // Visit the declarations and body.
303 // redeclaration. 303 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS);
304 if (scope()->HasIllegalRedeclaration()) { 304 {
305 EmitIllegalRedeclaration(); 305 Comment cmnt(masm_, "[ Declarations");
306 } else { 306 VisitDeclarations(scope()->declarations());
307 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); 307 }
308 {
309 Comment cmnt(masm_, "[ Declarations");
310 VisitDeclarations(scope()->declarations());
311 }
312 308
313 // Assert that the declarations do not use ICs. Otherwise the debugger 309 // Assert that the declarations do not use ICs. Otherwise the debugger
314 // won't be able to redirect a PC at an IC to the correct IC in newly 310 // won't be able to redirect a PC at an IC to the correct IC in newly
315 // recompiled code. 311 // recompiled code.
316 DCHECK_EQ(0, ic_total_count_); 312 DCHECK_EQ(0, ic_total_count_);
317 313
318 { 314 {
319 Comment cmnt(masm_, "[ Stack check"); 315 Comment cmnt(masm_, "[ Stack check");
320 PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS); 316 PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS);
321 Label ok; 317 Label ok;
322 __ LoadRoot(ip, Heap::kStackLimitRootIndex); 318 __ LoadRoot(ip, Heap::kStackLimitRootIndex);
323 __ cmpl(sp, ip); 319 __ cmpl(sp, ip);
324 __ bc_short(ge, &ok); 320 __ bc_short(ge, &ok);
325 __ Call(isolate()->builtins()->StackCheck(), RelocInfo::CODE_TARGET); 321 __ Call(isolate()->builtins()->StackCheck(), RelocInfo::CODE_TARGET);
326 __ bind(&ok); 322 __ bind(&ok);
327 } 323 }
328 324
329 { 325 {
330 Comment cmnt(masm_, "[ Body"); 326 Comment cmnt(masm_, "[ Body");
331 DCHECK(loop_depth() == 0); 327 DCHECK(loop_depth() == 0);
332 VisitStatements(literal()->body()); 328 VisitStatements(literal()->body());
333 DCHECK(loop_depth() == 0); 329 DCHECK(loop_depth() == 0);
334 }
335 } 330 }
336 331
337 // Always emit a 'return undefined' in case control fell off the end of 332 // Always emit a 'return undefined' in case control fell off the end of
338 // the body. 333 // the body.
339 { 334 {
340 Comment cmnt(masm_, "[ return <undefined>;"); 335 Comment cmnt(masm_, "[ return <undefined>;");
341 __ LoadRoot(r3, Heap::kUndefinedValueRootIndex); 336 __ LoadRoot(r3, Heap::kUndefinedValueRootIndex);
342 } 337 }
343 EmitReturnSequence(); 338 EmitReturnSequence();
344 339
(...skipping 3751 matching lines...) Expand 10 before | Expand all | Expand 10 after
4096 4091
4097 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 4092 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
4098 4093
4099 DCHECK(interrupt_address == 4094 DCHECK(interrupt_address ==
4100 isolate->builtins()->OnStackReplacement()->entry()); 4095 isolate->builtins()->OnStackReplacement()->entry());
4101 return ON_STACK_REPLACEMENT; 4096 return ON_STACK_REPLACEMENT;
4102 } 4097 }
4103 } // namespace internal 4098 } // namespace internal
4104 } // namespace v8 4099 } // namespace v8
4105 #endif // V8_TARGET_ARCH_PPC 4100 #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