Index: src/mips/ic-mips.cc |
diff --git a/src/mips/ic-mips.cc b/src/mips/ic-mips.cc |
index 4088ea4f4f11a78946baed6dd27c6631f2575908..23e5506c0be0dda3093f1077a82dd9b340d8c572 100644 |
--- a/src/mips/ic-mips.cc |
+++ b/src/mips/ic-mips.cc |
@@ -417,6 +417,8 @@ static MemOperand GenerateMappedArgumentsLookup(MacroAssembler* masm, |
Register scratch3, |
Label* unmapped_case, |
Label* slow_case) { |
+ Heap* heap = masm->isolate()->heap(); |
+ |
// Check that the receiver is a JSObject. Because of the map check |
// later, we do not need to check for interceptors or whether it |
// requires access checks. |
@@ -430,10 +432,11 @@ static MemOperand GenerateMappedArgumentsLookup(MacroAssembler* masm, |
__ Branch(slow_case, ne, scratch1, Operand(zero_reg)); |
// Load the elements into scratch1 and check its map. |
+ Handle<Map> arguments_map(heap->sloppy_arguments_elements_map()); |
__ lw(scratch1, FieldMemOperand(object, JSObject::kElementsOffset)); |
__ CheckMap(scratch1, |
scratch2, |
- Heap::kNonStrictArgumentsElementsMapRootIndex, |
+ arguments_map, |
slow_case, |
DONT_DO_SMI_CHECK); |
// Check if element is in the range of mapped arguments. If not, jump |
@@ -496,7 +499,7 @@ static MemOperand GenerateUnmappedArgumentsLookup(MacroAssembler* masm, |
} |
-void KeyedLoadIC::GenerateNonStrictArguments(MacroAssembler* masm) { |
+void KeyedLoadIC::GenerateSloppyArguments(MacroAssembler* masm) { |
// ---------- S t a t e -------------- |
// -- lr : return address |
// -- a0 : key |
@@ -521,7 +524,7 @@ void KeyedLoadIC::GenerateNonStrictArguments(MacroAssembler* masm) { |
} |
-void KeyedStoreIC::GenerateNonStrictArguments(MacroAssembler* masm) { |
+void KeyedStoreIC::GenerateSloppyArguments(MacroAssembler* masm) { |
// ---------- S t a t e -------------- |
// -- a0 : value |
// -- a1 : key |