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

Unified Diff: vm/flow_graph_compiler_x64.cc

Issue 10408048: Avoid redundant pop/push before Throw/ReThrow in the flow-graph compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_compiler_x64.cc
===================================================================
--- vm/flow_graph_compiler_x64.cc (revision 7829)
+++ vm/flow_graph_compiler_x64.cc (working copy)
@@ -1286,8 +1286,7 @@
void FlowGraphCompiler::VisitThrow(ThrowInstr* instr) {
- LoadValue(RAX, instr->exception());
- __ pushq(RAX);
+ ASSERT(instr->exception()->IsUse());
GenerateCallRuntime(instr->cid(),
instr->token_index(),
instr->try_index(),
@@ -1297,10 +1296,8 @@
void FlowGraphCompiler::VisitReThrow(ReThrowInstr* instr) {
- LoadValue(RAX, instr->exception());
- __ pushq(RAX);
- LoadValue(RAX, instr->stack_trace());
- __ pushq(RAX);
+ ASSERT(instr->exception()->IsUse());
+ ASSERT(instr->stack_trace()->IsUse());
GenerateCallRuntime(instr->cid(),
instr->token_index(),
instr->try_index(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698