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

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

Issue 2650193002: [debugger] remove debugger statement support from FCG/CS. (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/ast/ast-numbering.cc ('k') | src/debug/debug.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 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 } 1190 }
1191 1191
1192 1192
1193 void AstGraphBuilder::VisitTryFinallyStatement(TryFinallyStatement* stmt) { 1193 void AstGraphBuilder::VisitTryFinallyStatement(TryFinallyStatement* stmt) {
1194 // Exception handling is supported only by going through Ignition first. 1194 // Exception handling is supported only by going through Ignition first.
1195 UNREACHABLE(); 1195 UNREACHABLE();
1196 } 1196 }
1197 1197
1198 1198
1199 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { 1199 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) {
1200 Node* node = NewNode(javascript()->Debugger()); 1200 // Debugger statement is supported only by going through Ignition first.
1201 PrepareFrameState(node, stmt->DebugBreakId()); 1201 UNREACHABLE();
1202 environment()->MarkAllLocalsLive();
1203 } 1202 }
1204 1203
1205 1204
1206 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { 1205 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
1207 // Find or build a shared function info. 1206 // Find or build a shared function info.
1208 Handle<SharedFunctionInfo> shared_info = 1207 Handle<SharedFunctionInfo> shared_info =
1209 Compiler::GetSharedFunctionInfo(expr, info()->script(), info()); 1208 Compiler::GetSharedFunctionInfo(expr, info()->script(), info());
1210 CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow? 1209 CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow?
1211 1210
1212 // Create node to instantiate a new closure. 1211 // Create node to instantiate a new closure.
(...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after
3185 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, 3184 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment,
3186 SourcePositionTable* source_positions, int inlining_id) 3185 SourcePositionTable* source_positions, int inlining_id)
3187 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, 3186 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency,
3188 loop_assignment), 3187 loop_assignment),
3189 source_positions_(source_positions), 3188 source_positions_(source_positions),
3190 start_position_(info->shared_info()->start_position(), inlining_id) {} 3189 start_position_(info->shared_info()->start_position(), inlining_id) {}
3191 3190
3192 } // namespace compiler 3191 } // namespace compiler
3193 } // namespace internal 3192 } // namespace internal
3194 } // namespace v8 3193 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-numbering.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698