Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 5b78114b4fb62c29e94824e606de35fd60d7752e..33a4a46fcd9fc2e1a38a5bdd9cf27d6b2d10226c 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -141,8 +141,7 @@ void FullCodeGenerator::Generate() { |
// Increment invocation count for the function. |
{ |
Comment cmnt(masm_, "[ Increment invocation count"); |
- __ lw(a0, FieldMemOperand(a1, JSFunction::kLiteralsOffset)); |
- __ lw(a0, FieldMemOperand(a0, LiteralsArray::kFeedbackVectorOffset)); |
+ __ lw(a0, FieldMemOperand(a1, JSFunction::kFeedbackVectorOffset)); |
__ lw(t0, FieldMemOperand( |
a0, TypeFeedbackVector::kInvocationCountIndex * kPointerSize + |
TypeFeedbackVector::kHeaderSize)); |
@@ -1216,7 +1215,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
Handle<BoilerplateDescription> constant_properties = |
expr->GetOrBuildConstantProperties(isolate()); |
__ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
- __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
+ __ li(a2, Operand(SmiFromSlot(expr->literal_slot()))); |
__ li(a1, Operand(constant_properties)); |
__ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); |
if (MustCreateObjectLiteralWithRuntime(expr)) { |
@@ -1358,7 +1357,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ mov(a0, result_register()); |
__ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
- __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
+ __ li(a2, Operand(SmiFromSlot(expr->literal_slot()))); |
__ li(a1, Operand(constant_elements)); |
if (MustCreateArrayLiteralWithRuntime(expr)) { |
__ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); |