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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/compiler/ast-loop-assignment-analyzer.h" | 9 #include "src/compiler/ast-loop-assignment-analyzer.h" |
10 #include "src/compiler/control-builders.h" | 10 #include "src/compiler/control-builders.h" |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1523 | 1523 |
1524 // The result value, dispatch token and message is restored from the operand | 1524 // The result value, dispatch token and message is restored from the operand |
1525 // stack (this is in sync with FullCodeGenerator::ExitFinallyBlock). | 1525 // stack (this is in sync with FullCodeGenerator::ExitFinallyBlock). |
1526 message = environment()->Pop(); | 1526 message = environment()->Pop(); |
1527 result = environment()->Pop(); | 1527 result = environment()->Pop(); |
1528 token = environment()->Pop(); | 1528 token = environment()->Pop(); |
1529 NewNode(javascript()->StoreMessage(), message); | 1529 NewNode(javascript()->StoreMessage(), message); |
1530 | 1530 |
1531 // Dynamic dispatch after the finally-block. | 1531 // Dynamic dispatch after the finally-block. |
1532 commands->ApplyDeferredCommands(token, result); | 1532 commands->ApplyDeferredCommands(token, result); |
1533 | |
1534 // TODO(mstarzinger): Remove bailout once everything works. | |
1535 if (!FLAG_turbo_try_finally) SetStackOverflow(); | |
1536 } | 1533 } |
1537 | 1534 |
1538 | 1535 |
1539 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { | 1536 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { |
1540 Node* node = | 1537 Node* node = |
1541 NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement)); | 1538 NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement)); |
1542 PrepareFrameState(node, stmt->DebugBreakId()); | 1539 PrepareFrameState(node, stmt->DebugBreakId()); |
1543 environment()->MarkAllLocalsLive(); | 1540 environment()->MarkAllLocalsLive(); |
1544 } | 1541 } |
1545 | 1542 |
(...skipping 2818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4364 // Phi does not exist yet, introduce one. | 4361 // Phi does not exist yet, introduce one. |
4365 value = NewPhi(inputs, value, control); | 4362 value = NewPhi(inputs, value, control); |
4366 value->ReplaceInput(inputs - 1, other); | 4363 value->ReplaceInput(inputs - 1, other); |
4367 } | 4364 } |
4368 return value; | 4365 return value; |
4369 } | 4366 } |
4370 | 4367 |
4371 } // namespace compiler | 4368 } // namespace compiler |
4372 } // namespace internal | 4369 } // namespace internal |
4373 } // namespace v8 | 4370 } // namespace v8 |
OLD | NEW |