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

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

Issue 2636913002: [liveedit] reimplement frame restarting. (Closed)
Patch Set: rebase Created 3 years, 10 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/code-factory.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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 } 1278 }
1279 1279
1280 1280
1281 void AstGraphBuilder::VisitTryFinallyStatement(TryFinallyStatement* stmt) { 1281 void AstGraphBuilder::VisitTryFinallyStatement(TryFinallyStatement* stmt) {
1282 // Exception handling is supported only by going through Ignition first. 1282 // Exception handling is supported only by going through Ignition first.
1283 UNREACHABLE(); 1283 UNREACHABLE();
1284 } 1284 }
1285 1285
1286 1286
1287 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { 1287 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) {
1288 Node* node = 1288 Node* node = NewNode(javascript()->Debugger());
1289 NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement));
1290 PrepareFrameState(node, stmt->DebugBreakId()); 1289 PrepareFrameState(node, stmt->DebugBreakId());
1291 environment()->MarkAllLocalsLive(); 1290 environment()->MarkAllLocalsLive();
1292 } 1291 }
1293 1292
1294 1293
1295 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { 1294 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
1296 // Find or build a shared function info. 1295 // Find or build a shared function info.
1297 Handle<SharedFunctionInfo> shared_info = 1296 Handle<SharedFunctionInfo> shared_info =
1298 Compiler::GetSharedFunctionInfo(expr, info()->script(), info()); 1297 Compiler::GetSharedFunctionInfo(expr, info()->script(), info());
1299 CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow? 1298 CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow?
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after
3307 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, 3306 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment,
3308 SourcePositionTable* source_positions, int inlining_id) 3307 SourcePositionTable* source_positions, int inlining_id)
3309 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, 3308 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency,
3310 loop_assignment), 3309 loop_assignment),
3311 source_positions_(source_positions), 3310 source_positions_(source_positions),
3312 start_position_(info->shared_info()->start_position(), inlining_id) {} 3311 start_position_(info->shared_info()->start_position(), inlining_id) {}
3313 3312
3314 } // namespace compiler 3313 } // namespace compiler
3315 } // namespace internal 3314 } // namespace internal
3316 } // namespace v8 3315 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698