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

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

Issue 679793003: [turbofan] reduce allocations outside of pipeline (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/code-generator.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/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/control-builders.h" 8 #include "src/compiler/control-builders.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
11 #include "src/compiler/node-properties-inl.h" 11 #include "src/compiler/node-properties-inl.h"
12 #include "src/full-codegen.h" 12 #include "src/full-codegen.h"
13 #include "src/parser.h" 13 #include "src/parser.h"
14 #include "src/scopes.h" 14 #include "src/scopes.h"
15 15
16 namespace v8 { 16 namespace v8 {
17 namespace internal { 17 namespace internal {
18 namespace compiler { 18 namespace compiler {
19 19
20 AstGraphBuilder::AstGraphBuilder(Zone* local_zone, CompilationInfo* info, 20 AstGraphBuilder::AstGraphBuilder(Zone* local_zone, CompilationInfo* info,
21 JSGraph* jsgraph) 21 JSGraph* jsgraph)
22 : StructuredGraphBuilder(local_zone, jsgraph->graph(), jsgraph->common()), 22 : StructuredGraphBuilder(local_zone, jsgraph->graph(), jsgraph->common()),
23 info_(info), 23 info_(info),
24 jsgraph_(jsgraph), 24 jsgraph_(jsgraph),
25 globals_(0, info->zone()), 25 globals_(0, local_zone),
26 breakable_(NULL), 26 breakable_(NULL),
27 execution_context_(NULL) { 27 execution_context_(NULL) {
28 InitializeAstVisitor(info->zone()); 28 InitializeAstVisitor(local_zone);
29 } 29 }
30 30
31 31
32 Node* AstGraphBuilder::GetFunctionClosure() { 32 Node* AstGraphBuilder::GetFunctionClosure() {
33 if (!function_closure_.is_set()) { 33 if (!function_closure_.is_set()) {
34 // Parameter -1 is special for the function closure 34 // Parameter -1 is special for the function closure
35 const Operator* op = common()->Parameter(-1); 35 const Operator* op = common()->Parameter(-1);
36 Node* node = NewNode(op, graph()->start()); 36 Node* node = NewNode(op, graph()->start());
37 function_closure_.set(node); 37 function_closure_.set(node);
38 } 38 }
(...skipping 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2128 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == 2128 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() ==
2129 IrOpcode::kDead); 2129 IrOpcode::kDead);
2130 NodeProperties::ReplaceFrameStateInput( 2130 NodeProperties::ReplaceFrameStateInput(
2131 node, environment()->Checkpoint(ast_id, combine)); 2131 node, environment()->Checkpoint(ast_id, combine));
2132 } 2132 }
2133 } 2133 }
2134 2134
2135 } 2135 }
2136 } 2136 }
2137 } // namespace v8::internal::compiler 2137 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/code-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698