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

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

Issue 2614373002: [FeedbackVector] Infrastructure for literal arrays in the vector. (Closed)
Patch Set: Release compile fix. Created 3 years, 11 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/builtins/builtins-constructor.cc ('k') | src/compiler/bytecode-graph-builder.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/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 1276
1277 1277
1278 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { 1278 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
1279 // Find or build a shared function info. 1279 // Find or build a shared function info.
1280 Handle<SharedFunctionInfo> shared_info = 1280 Handle<SharedFunctionInfo> shared_info =
1281 Compiler::GetSharedFunctionInfo(expr, info()->script(), info()); 1281 Compiler::GetSharedFunctionInfo(expr, info()->script(), info());
1282 CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow? 1282 CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow?
1283 1283
1284 // Create node to instantiate a new closure. 1284 // Create node to instantiate a new closure.
1285 PretenureFlag pretenure = expr->pretenure() ? TENURED : NOT_TENURED; 1285 PretenureFlag pretenure = expr->pretenure() ? TENURED : NOT_TENURED;
1286 const Operator* op = javascript()->CreateClosure(shared_info, pretenure); 1286 VectorSlotPair pair = CreateVectorSlotPair(expr->LiteralFeedbackSlot());
1287 const Operator* op =
1288 javascript()->CreateClosure(shared_info, pair, pretenure);
1287 Node* value = NewNode(op); 1289 Node* value = NewNode(op);
1288 ast_context()->ProduceValue(expr, value); 1290 ast_context()->ProduceValue(expr, value);
1289 } 1291 }
1290 1292
1291 void AstGraphBuilder::VisitClassLiteral(ClassLiteral* expr) { UNREACHABLE(); } 1293 void AstGraphBuilder::VisitClassLiteral(ClassLiteral* expr) { UNREACHABLE(); }
1292 1294
1293 void AstGraphBuilder::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { 1295 void AstGraphBuilder::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) {
1294 UNREACHABLE(); 1296 UNREACHABLE();
1295 } 1297 }
1296 1298
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after
3164 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, 3166 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment,
3165 SourcePositionTable* source_positions, int inlining_id) 3167 SourcePositionTable* source_positions, int inlining_id)
3166 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, 3168 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency,
3167 loop_assignment), 3169 loop_assignment),
3168 source_positions_(source_positions), 3170 source_positions_(source_positions),
3169 start_position_(info->shared_info()->start_position(), inlining_id) {} 3171 start_position_(info->shared_info()->start_position(), inlining_id) {}
3170 3172
3171 } // namespace compiler 3173 } // namespace compiler
3172 } // namespace internal 3174 } // namespace internal
3173 } // namespace v8 3175 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-constructor.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698