MIPS: Teach TurboFan to call vector-based ICs.
authorbalazs.kilvady@imgtec.com <balazs.kilvady@imgtec.com>
Fri, 10 Oct 2014 13:56:34 +0000 (13:56 +0000)
committerbalazs.kilvady@imgtec.com <balazs.kilvady@imgtec.com>
Fri, 10 Oct 2014 13:56:34 +0000 (13:56 +0000)
Port r24519 (842debf)

Original commit message:
Additional static information needs to be passed to Load and KeyedLoad calls if
--vector-ics is turned on.

BUG=
R=dusan.milosavljevic@imgtec.com

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24532 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/mips64/lithium-codegen-mips64.cc

index 2ed9782ff0abd47e9d6197c48be29232a6b8ed8e..53c7bfbcdeeefae32e406460fe94a05671435291 100644 (file)
@@ -2878,7 +2878,7 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
     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);
 }
 
@@ -3019,7 +3019,8 @@ void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
   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);
 }
 
@@ -3368,7 +3369,7 @@ void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
     EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
   }
 
-  Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code();
+  Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode(isolate()).code();
   CallCode(ic, RelocInfo::CODE_TARGET, instr);
 }