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

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
« no previous file with comments | « runtime/vm/assembler_x64_test.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_x64.cc
===================================================================
--- runtime/vm/flow_graph_compiler_x64.cc (revision 8171)
+++ 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());
@@ -983,6 +985,16 @@
}
+void FlowGraphCompiler::VisitUnarySmiOp(UnarySmiOpComp* comp) {
+ UNIMPLEMENTED();
+}
+
+
+void FlowGraphCompiler::VisitNumberNegate(NumberNegateComp* comp) {
+ UNIMPLEMENTED();
+}
+
+
void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) {
LocationSummary* locs = instr->locs();
ASSERT(locs != NULL);
« no previous file with comments | « runtime/vm/assembler_x64_test.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698