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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 1301583005: Rename ParserInfo::function() and CompilationInfo::function() to literal(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/compiler.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/ast-loop-assignment-analyzer.h" 8 #include "src/compiler/ast-loop-assignment-analyzer.h"
9 #include "src/compiler/control-builders.h" 9 #include "src/compiler/control-builders.h"
10 #include "src/compiler/js-type-feedback.h" 10 #include "src/compiler/js-type-feedback.h"
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // Visit declarations within the function scope. 594 // Visit declarations within the function scope.
595 VisitDeclarations(scope->declarations()); 595 VisitDeclarations(scope->declarations());
596 596
597 // Build a stack-check before the body. 597 // Build a stack-check before the body.
598 if (stack_check) { 598 if (stack_check) {
599 Node* node = NewNode(javascript()->StackCheck()); 599 Node* node = NewNode(javascript()->StackCheck());
600 PrepareFrameState(node, BailoutId::FunctionEntry()); 600 PrepareFrameState(node, BailoutId::FunctionEntry());
601 } 601 }
602 602
603 // Visit statements in the function body. 603 // Visit statements in the function body.
604 VisitStatements(info()->function()->body()); 604 VisitStatements(info()->literal()->body());
605 605
606 // Emit tracing call if requested to do so. 606 // Emit tracing call if requested to do so.
607 if (FLAG_trace) { 607 if (FLAG_trace) {
608 // TODO(mstarzinger): Only traces implicit return. 608 // TODO(mstarzinger): Only traces implicit return.
609 Node* return_value = jsgraph()->UndefinedConstant(); 609 Node* return_value = jsgraph()->UndefinedConstant();
610 NewNode(javascript()->CallRuntime(Runtime::kTraceExit, 1), return_value); 610 NewNode(javascript()->CallRuntime(Runtime::kTraceExit, 1), return_value);
611 } 611 }
612 612
613 // Return 'undefined' in case we can fall off the end. 613 // Return 'undefined' in case we can fall off the end.
614 BuildReturn(jsgraph()->UndefinedConstant()); 614 BuildReturn(jsgraph()->UndefinedConstant());
(...skipping 3687 matching lines...) Expand 10 before | Expand all | Expand 10 after
4302 // Phi does not exist yet, introduce one. 4302 // Phi does not exist yet, introduce one.
4303 value = NewPhi(inputs, value, control); 4303 value = NewPhi(inputs, value, control);
4304 value->ReplaceInput(inputs - 1, other); 4304 value->ReplaceInput(inputs - 1, other);
4305 } 4305 }
4306 return value; 4306 return value;
4307 } 4307 }
4308 4308
4309 } // namespace compiler 4309 } // namespace compiler
4310 } // namespace internal 4310 } // namespace internal
4311 } // namespace v8 4311 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698