Revision: 18601
Author:   [email protected]
Date:     Tue Jan 14 18:33:36 2014 UTC
Log:      MIPS: Get rid of ContextualMode for call ICs.

Port r18594 (91e7cee)

BUG=
[email protected]

Review URL: https://codereview.chromium.org/133223003

Patch from Balazs Kilvady <[email protected]>.
http://code.google.com/p/v8/source/detail?r=18601

Modified:
 /branches/bleeding_edge/src/mips/full-codegen-mips.cc
 /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/full-codegen-mips.cc Tue Jan 14 18:17:24 2014 UTC +++ /branches/bleeding_edge/src/mips/full-codegen-mips.cc Tue Jan 14 18:33:36 2014 UTC
@@ -2648,8 +2648,7 @@
   // Record source position for debugger.
   SetSourcePosition(expr->position());
   // Call the IC initialization code.
-  Handle<Code> ic =
-      isolate()->stub_cache()->ComputeCallInitialize(arg_count, mode);
+ Handle<Code> ic = isolate()->stub_cache()->ComputeCallInitialize(arg_count);
   TypeFeedbackId ast_id = mode == CONTEXTUAL
       ? TypeFeedbackId::None()
       : expr->CallFeedbackId();
@@ -4216,10 +4215,8 @@
   if (expr->is_jsruntime()) {
     // Call the JS runtime function.
     __ li(a2, Operand(expr->name()));
-    ContextualMode mode = NOT_CONTEXTUAL;
-    Handle<Code> ic =
-        isolate()->stub_cache()->ComputeCallInitialize(arg_count, mode);
-    CallIC(ic, mode, expr->CallRuntimeFeedbackId());
+ Handle<Code> ic = isolate()->stub_cache()->ComputeCallInitialize(arg_count);
+    CallIC(ic, NOT_CONTEXTUAL, expr->CallRuntimeFeedbackId());
     // Restore context register.
     __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
   } else {
=======================================
--- /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Tue Jan 14 18:26:31 2014 UTC +++ /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Tue Jan 14 18:33:36 2014 UTC
@@ -3905,8 +3905,7 @@
   ASSERT(ToRegister(instr->result()).is(v0));

   int arity = instr->arity();
-  Handle<Code> ic =
- isolate()->stub_cache()->ComputeCallInitialize(arity, NOT_CONTEXTUAL);
+  Handle<Code> ic = isolate()->stub_cache()->ComputeCallInitialize(arity);
   __ li(a2, Operand(instr->name()));
   CallCode(ic, RelocInfo::CODE_TARGET, instr);
 }
@@ -3933,8 +3932,7 @@
   ASSERT(ToRegister(instr->result()).is(v0));

   int arity = instr->arity();
-  Handle<Code> ic =
-      isolate()->stub_cache()->ComputeCallInitialize(arity, CONTEXTUAL);
+  Handle<Code> ic = isolate()->stub_cache()->ComputeCallInitialize(arity);
   __ li(a2, Operand(instr->name()));
   CallCode(ic, RelocInfo::CODE_TARGET, instr);
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to