OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 5443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5454 Register empty_fixed_array_value = t2; | 5454 Register empty_fixed_array_value = t2; |
5455 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); | 5455 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); |
5456 Label next, start; | 5456 Label next, start; |
5457 mov(a2, a0); | 5457 mov(a2, a0); |
5458 | 5458 |
5459 // Check if the enum length field is properly initialized, indicating that | 5459 // Check if the enum length field is properly initialized, indicating that |
5460 // there is an enum cache. | 5460 // there is an enum cache. |
5461 lw(a1, FieldMemOperand(a2, HeapObject::kMapOffset)); | 5461 lw(a1, FieldMemOperand(a2, HeapObject::kMapOffset)); |
5462 | 5462 |
5463 EnumLength(a3, a1); | 5463 EnumLength(a3, a1); |
5464 Branch(call_runtime, eq, a3, Operand(Smi::FromInt(Map::kInvalidEnumCache))); | 5464 Branch( |
| 5465 call_runtime, eq, a3, Operand(Smi::FromInt(kInvalidEnumCacheSentinel))); |
5465 | 5466 |
5466 jmp(&start); | 5467 jmp(&start); |
5467 | 5468 |
5468 bind(&next); | 5469 bind(&next); |
5469 lw(a1, FieldMemOperand(a2, HeapObject::kMapOffset)); | 5470 lw(a1, FieldMemOperand(a2, HeapObject::kMapOffset)); |
5470 | 5471 |
5471 // For all objects but the receiver, check that the cache is empty. | 5472 // For all objects but the receiver, check that the cache is empty. |
5472 EnumLength(a3, a1); | 5473 EnumLength(a3, a1); |
5473 Branch(call_runtime, ne, a3, Operand(Smi::FromInt(0))); | 5474 Branch(call_runtime, ne, a3, Operand(Smi::FromInt(0))); |
5474 | 5475 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5659 opcode == BGTZL); | 5660 opcode == BGTZL); |
5660 opcode = (cond == eq) ? BEQ : BNE; | 5661 opcode = (cond == eq) ? BEQ : BNE; |
5661 instr = (instr & ~kOpcodeMask) | opcode; | 5662 instr = (instr & ~kOpcodeMask) | opcode; |
5662 masm_.emit(instr); | 5663 masm_.emit(instr); |
5663 } | 5664 } |
5664 | 5665 |
5665 | 5666 |
5666 } } // namespace v8::internal | 5667 } } // namespace v8::internal |
5667 | 5668 |
5668 #endif // V8_TARGET_ARCH_MIPS | 5669 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |