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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 10440099: Adding unary op optimizations. missing assembly operations/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
Index: runtime/vm/flow_graph_compiler_x64.cc
===================================================================
--- runtime/vm/flow_graph_compiler_x64.cc (revision 8118)
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy)
@@ -68,7 +68,9 @@
__ Comment("Deopt stub for id %d", deopt_id_);
__ Bind(entry_label());
for (intptr_t i = 0; i < registers_.length(); i++) {
- __ pushq(registers_[i]);
+ if (registers_[i] != kNoRegister) {
+ __ pushq(registers_[i]);
+ }
}
__ movq(RAX, Immediate(Smi::RawValue(reason_)));
__ call(&StubCode::DeoptimizeLabel());
@@ -1009,6 +1011,11 @@
}
+void FlowGraphCompiler::VisitUnaryOp(UnaryOpComp* comp) {
+ UNIMPLEMENTED();
+}
+
+
void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) {
LocationSummary* locs = instr->locs();
ASSERT(locs != NULL);

Powered by Google App Engine
This is Rietveld 408576698