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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 10264011: Materialize all constant operands on the stack in the non-optimizing compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« runtime/vm/flow_graph_builder.cc ('K') | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_x64.cc
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc
index 3cec293e35334633456009fc653ded297c13bf6d..2eeef3bf3c1c8ac57d6aceb73f9222fe02c0a88f 100644
--- a/runtime/vm/flow_graph_compiler_x64.cc
+++ b/runtime/vm/flow_graph_compiler_x64.cc
@@ -1226,17 +1226,6 @@ void FlowGraphCompiler::VisitBind(BindInstr* instr) {
void FlowGraphCompiler::VisitReturn(ReturnInstr* instr) {
LoadValue(RAX, instr->value());
-#ifdef DEBUG
Kevin Millikin (Google) 2012/04/30 14:54:53 This assert doesn't work anymore because we can ha
srdjan 2012/05/01 00:56:10 This assert code is/was essential for tracking/loc
- // Check that the entry stack size matches the exit stack size.
- __ movq(R10, RBP);
- __ subq(R10, RSP);
- __ cmpq(R10, Immediate(StackSize() * kWordSize));
- Label stack_ok;
- __ j(EQUAL, &stack_ok, Assembler::kNearJump);
- __ Stop("Exit stack size does not match the entry stack size.");
- __ Bind(&stack_ok);
-#endif // DEBUG.
-
if (FLAG_trace_functions) {
__ pushq(RAX); // Preserve result.
const Function& function =
« runtime/vm/flow_graph_builder.cc ('K') | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698