Revision: 24537
Author:   [email protected]
Date:     Sat Oct 11 06:00:44 2014 UTC
Log:      X87: Teach TurboFan to call vector-based ICs.

port r24519.

original commit message:

  Teach TurboFan to call vector-based ICs.

Additional static information needs to be passed to Load and KeyedLoad calls if
  --vector-ics is turned on

BUG=
[email protected]

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

Patch from Chunyang Dai <[email protected]>.
https://code.google.com/p/v8/source/detail?r=24537

Modified:
 /branches/bleeding_edge/src/x87/lithium-codegen-x87.cc

=======================================
--- /branches/bleeding_edge/src/x87/lithium-codegen-x87.cc Mon Sep 29 08:39:05 2014 UTC +++ /branches/bleeding_edge/src/x87/lithium-codegen-x87.cc Sat Oct 11 06:00:44 2014 UTC
@@ -3147,7 +3147,7 @@
     EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
   }
   ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
-  Handle<Code> ic = CodeFactory::LoadIC(isolate(), mode).code();
+ Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode).code();
   CallCode(ic, RelocInfo::CODE_TARGET, instr);
 }

@@ -3277,7 +3277,8 @@
   if (FLAG_vector_ics) {
     EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
   }
-  Handle<Code> ic = CodeFactory::LoadIC(isolate(), NOT_CONTEXTUAL).code();
+  Handle<Code> ic =
+      CodeFactory::LoadICInOptimizedCode(isolate(), NOT_CONTEXTUAL).code();
   CallCode(ic, RelocInfo::CODE_TARGET, instr);
 }

@@ -3500,7 +3501,7 @@
     EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
   }

-  Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code();
+ Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode(isolate()).code();
   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/d/optout.

Reply via email to