Revision: 8461
Author:   [email protected]
Date:     Wed Jun 29 04:12:12 2011
Log: Simplify the way we call UnaryOpStubs, saving one unused no-op after the call itself.
Review URL: http://codereview.chromium.org/7280005
http://code.google.com/p/v8/source/detail?r=8461

Modified:
 /branches/bleeding_edge/src/arm/full-codegen-arm.cc
 /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc
 /branches/bleeding_edge/src/mips/full-codegen-mips.cc
 /branches/bleeding_edge/src/x64/full-codegen-x64.cc

=======================================
--- /branches/bleeding_edge/src/arm/full-codegen-arm.cc Wed Jun 29 00:41:42 2011 +++ /branches/bleeding_edge/src/arm/full-codegen-arm.cc Wed Jun 29 04:12:12 2011
@@ -3742,7 +3742,7 @@
   // accumulator register r0.
   VisitForAccumulatorValue(expr->expression());
   SetSourcePosition(expr->position());
-  EmitCallIC(stub.GetCode(), NULL, expr->id());
+  EmitCallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->id());
   context()->Plug(r0);
 }

=======================================
--- /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Wed Jun 29 00:41:42 2011 +++ /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Wed Jun 29 04:12:12 2011
@@ -3696,7 +3696,7 @@
   // accumulator register eax.
   VisitForAccumulatorValue(expr->expression());
   SetSourcePosition(expr->position());
-  EmitCallIC(stub.GetCode(), NULL, expr->id());
+  EmitCallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->id());
   context()->Plug(eax);
 }

=======================================
--- /branches/bleeding_edge/src/mips/full-codegen-mips.cc Mon Jun 27 03:45:54 2011 +++ /branches/bleeding_edge/src/mips/full-codegen-mips.cc Wed Jun 29 04:12:12 2011
@@ -3771,7 +3771,7 @@
   VisitForAccumulatorValue(expr->expression());
   SetSourcePosition(expr->position());
   __ mov(a0, result_register());
-  EmitCallIC(stub.GetCode(), NULL, expr->id());
+  EmitCallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->id());
   context()->Plug(v0);
 }

=======================================
--- /branches/bleeding_edge/src/x64/full-codegen-x64.cc Wed Jun 29 00:41:42 2011 +++ /branches/bleeding_edge/src/x64/full-codegen-x64.cc Wed Jun 29 04:12:12 2011
@@ -3674,7 +3674,7 @@
   // accumulator register rax.
   VisitForAccumulatorValue(expr->expression());
   SetSourcePosition(expr->position());
-  EmitCallIC(stub.GetCode(), NULL, expr->id());
+  EmitCallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->id());
   context()->Plug(rax);
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to