Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 7ff659fae668a69856619a4a5cba7e5a05127550..4f4ff440890ad8efd38e7131aa9613908ec34667 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -137,8 +137,7 @@ void FullCodeGenerator::Generate() { |
// Increment invocation count for the function. |
{ |
Comment cmnt(masm_, "[ Increment invocation count"); |
- __ LoadP(r7, FieldMemOperand(r4, JSFunction::kLiteralsOffset)); |
- __ LoadP(r7, FieldMemOperand(r7, LiteralsArray::kFeedbackVectorOffset)); |
+ __ LoadP(r7, FieldMemOperand(r4, JSFunction::kFeedbackVectorOffset)); |
__ LoadP(r8, FieldMemOperand(r7, TypeFeedbackVector::kInvocationCountIndex * |
kPointerSize + |
TypeFeedbackVector::kHeaderSize)); |
@@ -1187,7 +1186,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
Handle<BoilerplateDescription> constant_properties = |
expr->GetOrBuildConstantProperties(isolate()); |
__ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
- __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); |
+ __ LoadSmiLiteral(r5, SmiFromSlot(expr->literal_slot())); |
__ mov(r4, Operand(constant_properties)); |
int flags = expr->ComputeFlags(); |
__ LoadSmiLiteral(r3, Smi::FromInt(flags)); |
@@ -1327,7 +1326,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
} |
__ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
- __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); |
+ __ LoadSmiLiteral(r5, SmiFromSlot(expr->literal_slot())); |
__ mov(r4, Operand(constant_elements)); |
if (MustCreateArrayLiteralWithRuntime(expr)) { |
__ LoadSmiLiteral(r3, Smi::FromInt(expr->ComputeFlags())); |