Commit 31799674 authored by bjaideep's avatar bjaideep Committed by Commit bot

PPC/s390: [ic] Initialize feedback slots for LoadGlobalIC in...

PPC/s390: [ic] Initialize feedback slots for LoadGlobalIC in Runtime::kDeclareGlobals when possible to avoid misses.

Port b9a7b281

    Fixed minor register mapping issue in ppc/s390 files.

R=ishell@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com

BUG=chromium:576312
LOG=N

Review-Url: https://codereview.chromium.org/2146053002
Cr-Commit-Position: refs/heads/master@{#37725}
parent 32d1314e
...@@ -836,8 +836,8 @@ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { ...@@ -836,8 +836,8 @@ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
// Call the runtime to declare the globals. // Call the runtime to declare the globals.
__ mov(r4, Operand(pairs)); __ mov(r4, Operand(pairs));
__ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags())); __ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags()));
__ EmitLoadTypeFeedbackVector(r0); __ EmitLoadTypeFeedbackVector(r5);
__ Push(r4, r3, r0); __ Push(r4, r3, r5);
__ CallRuntime(Runtime::kDeclareGlobals); __ CallRuntime(Runtime::kDeclareGlobals);
// Return value is ignored. // Return value is ignored.
} }
......
...@@ -811,8 +811,8 @@ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { ...@@ -811,8 +811,8 @@ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
// Call the runtime to declare the globals. // Call the runtime to declare the globals.
__ mov(r3, Operand(pairs)); __ mov(r3, Operand(pairs));
__ LoadSmiLiteral(r2, Smi::FromInt(DeclareGlobalsFlags())); __ LoadSmiLiteral(r2, Smi::FromInt(DeclareGlobalsFlags()));
__ EmitLoadTypeFeedbackVector(r0); __ EmitLoadTypeFeedbackVector(r4);
__ Push(r3, r2, r0); __ Push(r3, r2, r4);
__ CallRuntime(Runtime::kDeclareGlobals); __ CallRuntime(Runtime::kDeclareGlobals);
// Return value is ignored. // Return value is ignored.
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment