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/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 | 1413 |
1414 // Dynamic dispatch after the finally-block. | 1414 // Dynamic dispatch after the finally-block. |
1415 commands->ApplyDeferredCommands(token, result); | 1415 commands->ApplyDeferredCommands(token, result); |
1416 | 1416 |
1417 // TODO(mstarzinger): Remove bailout once everything works. | 1417 // TODO(mstarzinger): Remove bailout once everything works. |
1418 if (!FLAG_turbo_exceptions) SetStackOverflow(); | 1418 if (!FLAG_turbo_exceptions) SetStackOverflow(); |
1419 } | 1419 } |
1420 | 1420 |
1421 | 1421 |
1422 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { | 1422 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { |
1423 // TODO(turbofan): Do we really need a separate reloc-info for this? | |
1424 Node* node = NewNode(javascript()->CallRuntime(Runtime::kDebugBreak, 0)); | 1423 Node* node = NewNode(javascript()->CallRuntime(Runtime::kDebugBreak, 0)); |
1425 PrepareFrameState(node, stmt->DebugBreakId()); | 1424 PrepareFrameState(node, stmt->DebugBreakId()); |
1426 environment()->MarkAllLocalsLive(); | 1425 environment()->MarkAllLocalsLive(); |
1427 } | 1426 } |
1428 | 1427 |
1429 | 1428 |
1430 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { | 1429 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { |
1431 Node* context = current_context(); | 1430 Node* context = current_context(); |
1432 | 1431 |
1433 // Build a new shared function info if we cannot find one in the baseline | 1432 // Build a new shared function info if we cannot find one in the baseline |
(...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3486 // Phi does not exist yet, introduce one. | 3485 // Phi does not exist yet, introduce one. |
3487 value = NewPhi(inputs, value, control); | 3486 value = NewPhi(inputs, value, control); |
3488 value->ReplaceInput(inputs - 1, other); | 3487 value->ReplaceInput(inputs - 1, other); |
3489 } | 3488 } |
3490 return value; | 3489 return value; |
3491 } | 3490 } |
3492 | 3491 |
3493 } // namespace compiler | 3492 } // namespace compiler |
3494 } // namespace internal | 3493 } // namespace internal |
3495 } // namespace v8 | 3494 } // namespace v8 |
OLD | NEW |