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

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

Issue 1245603003: Add function literal variable to declaration list. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-super-6
Patch Set: Created 5 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
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/scopes.h » ('j') | 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // Visit the declarations and body unless there is an illegal 350 // Visit the declarations and body unless there is an illegal
351 // redeclaration. 351 // redeclaration.
352 if (scope()->HasIllegalRedeclaration()) { 352 if (scope()->HasIllegalRedeclaration()) {
353 Comment cmnt(masm_, "[ Declarations"); 353 Comment cmnt(masm_, "[ Declarations");
354 scope()->VisitIllegalRedeclaration(this); 354 scope()->VisitIllegalRedeclaration(this);
355 355
356 } else { 356 } else {
357 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); 357 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS);
358 { 358 {
359 Comment cmnt(masm_, "[ Declarations"); 359 Comment cmnt(masm_, "[ Declarations");
360 // For named function expressions, declare the function name as a
361 // constant.
362 if (scope()->is_function_scope() && scope()->function() != NULL) {
363 VariableDeclaration* function = scope()->function();
364 DCHECK(function->proxy()->var()->mode() == CONST ||
365 function->proxy()->var()->mode() == CONST_LEGACY);
366 DCHECK(!function->proxy()->var()->IsUnallocatedOrGlobalSlot());
367 VisitVariableDeclaration(function);
368 }
369 VisitDeclarations(scope()->declarations()); 360 VisitDeclarations(scope()->declarations());
370 } 361 }
371 362
372 { 363 {
373 Comment cmnt(masm_, "[ Stack check"); 364 Comment cmnt(masm_, "[ Stack check");
374 PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS); 365 PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS);
375 Label ok; 366 Label ok;
376 __ LoadRoot(ip, Heap::kStackLimitRootIndex); 367 __ LoadRoot(ip, Heap::kStackLimitRootIndex);
377 __ cmpl(sp, ip); 368 __ cmpl(sp, ip);
378 __ bc_short(ge, &ok); 369 __ bc_short(ge, &ok);
(...skipping 5156 matching lines...) Expand 10 before | Expand all | Expand 10 after
5535 return ON_STACK_REPLACEMENT; 5526 return ON_STACK_REPLACEMENT;
5536 } 5527 }
5537 5528
5538 DCHECK(interrupt_address == 5529 DCHECK(interrupt_address ==
5539 isolate->builtins()->OsrAfterStackCheck()->entry()); 5530 isolate->builtins()->OsrAfterStackCheck()->entry());
5540 return OSR_AFTER_STACK_CHECK; 5531 return OSR_AFTER_STACK_CHECK;
5541 } 5532 }
5542 } // namespace internal 5533 } // namespace internal
5543 } // namespace v8 5534 } // namespace v8
5544 #endif // V8_TARGET_ARCH_PPC 5535 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698