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

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

Issue 1671623005: [turbofan] Deprecate --turbo-try-finally flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Also enable test. Created 4 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 | « no previous file | src/flag-definitions.h » ('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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698