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

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

Issue 2650193002: [debugger] remove debugger statement support from FCG/CS. (Closed)
Patch Set: 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
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 // Debugger statement is supported only by going through Ignition first.
1289 NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement)); 1289 UNREACHABLE();
1290 PrepareFrameState(node, stmt->DebugBreakId());
1291 environment()->MarkAllLocalsLive();
1292 } 1290 }
1293 1291
1294 1292
1295 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { 1293 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
1296 // Find or build a shared function info. 1294 // Find or build a shared function info.
1297 Handle<SharedFunctionInfo> shared_info = 1295 Handle<SharedFunctionInfo> shared_info =
1298 Compiler::GetSharedFunctionInfo(expr, info()->script(), info()); 1296 Compiler::GetSharedFunctionInfo(expr, info()->script(), info());
1299 CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow? 1297 CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow?
1300 1298
1301 // Create node to instantiate a new closure. 1299 // Create node to instantiate a new closure.
(...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after
3307 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, 3305 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment,
3308 SourcePositionTable* source_positions, int inlining_id) 3306 SourcePositionTable* source_positions, int inlining_id)
3309 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, 3307 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency,
3310 loop_assignment), 3308 loop_assignment),
3311 source_positions_(source_positions), 3309 source_positions_(source_positions),
3312 start_position_(info->shared_info()->start_position(), inlining_id) {} 3310 start_position_(info->shared_info()->start_position(), inlining_id) {}
3313 3311
3314 } // namespace compiler 3312 } // namespace compiler
3315 } // namespace internal 3313 } // namespace internal
3316 } // namespace v8 3314 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-numbering.cc ('k') | src/debug/debug.cc » ('j') | src/full-codegen/full-codegen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698