| Index: src/mips/codegen-mips.cc
|
| diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc
|
| index a264ac477c83557dfa00a36b44d4982af0092827..ec6649533fc73eaed5b91b0fa89b2aeb18a2e4e3 100644
|
| --- a/src/mips/codegen-mips.cc
|
| +++ b/src/mips/codegen-mips.cc
|
| @@ -156,8 +156,7 @@ void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
|
| // -----------------------------------
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| ASSERT(allocation_memento_found != NULL);
|
| - masm->TestJSArrayForAllocationMemento(a2, t0, eq,
|
| - allocation_memento_found);
|
| + __ JumpIfJSArrayHasAllocationMemento(a2, t0, allocation_memento_found);
|
| }
|
|
|
| // Set transitioned map.
|
| @@ -188,7 +187,7 @@ void ElementsTransitionGenerator::GenerateSmiToDouble(
|
| Register scratch = t6;
|
|
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| - masm->TestJSArrayForAllocationMemento(a2, t0, eq, fail);
|
| + __ JumpIfJSArrayHasAllocationMemento(a2, t0, fail);
|
| }
|
|
|
| // Check for empty arrays, which only require a map transition and no changes
|
| @@ -316,7 +315,7 @@ void ElementsTransitionGenerator::GenerateDoubleToObject(
|
| Label entry, loop, convert_hole, gc_required, only_change_map;
|
|
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| - masm->TestJSArrayForAllocationMemento(a2, t0, eq, fail);
|
| + __ JumpIfJSArrayHasAllocationMemento(a2, t0, fail);
|
| }
|
|
|
| // Check for empty arrays, which only require a map transition and no changes
|
| @@ -639,7 +638,7 @@ bool Code::IsYoungSequence(byte* sequence) {
|
| void Code::GetCodeAgeAndParity(byte* sequence, Age* age,
|
| MarkingParity* parity) {
|
| if (IsYoungSequence(sequence)) {
|
| - *age = kNoAge;
|
| + *age = kNoAgeCodeAge;
|
| *parity = NO_MARKING_PARITY;
|
| } else {
|
| Address target_address = Memory::Address_at(
|
| @@ -656,7 +655,7 @@ void Code::PatchPlatformCodeAge(Isolate* isolate,
|
| MarkingParity parity) {
|
| uint32_t young_length;
|
| byte* young_sequence = GetNoCodeAgeSequence(&young_length);
|
| - if (age == kNoAge) {
|
| + if (age == kNoAgeCodeAge) {
|
| CopyBytes(sequence, young_sequence, young_length);
|
| CPU::FlushICache(sequence, young_length);
|
| } else {
|
|
|