OLD | NEW |
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/ast-loop-assignment-analyzer.h" | 8 #include "src/compiler/ast-loop-assignment-analyzer.h" |
9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
10 #include "src/compiler/js-type-feedback.h" | 10 #include "src/compiler/js-type-feedback.h" |
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 | 1500 |
1501 // Dynamic dispatch after the finally-block. | 1501 // Dynamic dispatch after the finally-block. |
1502 commands->ApplyDeferredCommands(token, result); | 1502 commands->ApplyDeferredCommands(token, result); |
1503 | 1503 |
1504 // TODO(mstarzinger): Remove bailout once everything works. | 1504 // TODO(mstarzinger): Remove bailout once everything works. |
1505 if (!FLAG_turbo_try_finally) SetStackOverflow(); | 1505 if (!FLAG_turbo_try_finally) SetStackOverflow(); |
1506 } | 1506 } |
1507 | 1507 |
1508 | 1508 |
1509 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { | 1509 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { |
1510 Node* node = NewNode(javascript()->CallRuntime(Runtime::kDebugBreak, 0)); | 1510 Node* node = |
| 1511 NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement, 0)); |
1511 PrepareFrameState(node, stmt->DebugBreakId()); | 1512 PrepareFrameState(node, stmt->DebugBreakId()); |
1512 environment()->MarkAllLocalsLive(); | 1513 environment()->MarkAllLocalsLive(); |
1513 } | 1514 } |
1514 | 1515 |
1515 | 1516 |
1516 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { | 1517 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { |
1517 Node* context = current_context(); | 1518 Node* context = current_context(); |
1518 | 1519 |
1519 // Find or build a shared function info. | 1520 // Find or build a shared function info. |
1520 Handle<SharedFunctionInfo> shared_info = | 1521 Handle<SharedFunctionInfo> shared_info = |
(...skipping 2790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4311 // Phi does not exist yet, introduce one. | 4312 // Phi does not exist yet, introduce one. |
4312 value = NewPhi(inputs, value, control); | 4313 value = NewPhi(inputs, value, control); |
4313 value->ReplaceInput(inputs - 1, other); | 4314 value->ReplaceInput(inputs - 1, other); |
4314 } | 4315 } |
4315 return value; | 4316 return value; |
4316 } | 4317 } |
4317 | 4318 |
4318 } // namespace compiler | 4319 } // namespace compiler |
4319 } // namespace internal | 4320 } // namespace internal |
4320 } // namespace v8 | 4321 } // namespace v8 |
OLD | NEW |