| 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 5321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5332 | 5332 |
| 5333 CheckMap(a3, | 5333 CheckMap(a3, |
| 5334 t3, | 5334 t3, |
| 5335 isolate()->factory()->fixed_array_map(), | 5335 isolate()->factory()->fixed_array_map(), |
| 5336 call_runtime, | 5336 call_runtime, |
| 5337 DONT_DO_SMI_CHECK); | 5337 DONT_DO_SMI_CHECK); |
| 5338 | 5338 |
| 5339 // Check that there is an enum cache in the non-empty instance | 5339 // Check that there is an enum cache in the non-empty instance |
| 5340 // descriptors (a3). This is the case if the next enumeration | 5340 // descriptors (a3). This is the case if the next enumeration |
| 5341 // index field does not contain a smi. | 5341 // index field does not contain a smi. |
| 5342 lw(a3, FieldMemOperand(a3, DescriptorArray::kEnumerationIndexOffset)); | 5342 lw(a3, FieldMemOperand(a3, DescriptorArray::kLastAddedOffset)); |
| 5343 JumpIfSmi(a3, call_runtime); | 5343 JumpIfSmi(a3, call_runtime); |
| 5344 | 5344 |
| 5345 // For all objects but the receiver, check that the cache is empty. | 5345 // For all objects but the receiver, check that the cache is empty. |
| 5346 Label check_prototype; | 5346 Label check_prototype; |
| 5347 Branch(&check_prototype, eq, a1, Operand(a0)); | 5347 Branch(&check_prototype, eq, a1, Operand(a0)); |
| 5348 lw(a3, FieldMemOperand(a3, DescriptorArray::kEnumCacheBridgeCacheOffset)); | 5348 lw(a3, FieldMemOperand(a3, DescriptorArray::kEnumCacheBridgeCacheOffset)); |
| 5349 Branch(call_runtime, ne, a3, Operand(empty_fixed_array_value)); | 5349 Branch(call_runtime, ne, a3, Operand(empty_fixed_array_value)); |
| 5350 | 5350 |
| 5351 // Load the prototype from the map and loop if non-null. | 5351 // Load the prototype from the map and loop if non-null. |
| 5352 bind(&check_prototype); | 5352 bind(&check_prototype); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5459 opcode == BGTZL); | 5459 opcode == BGTZL); |
| 5460 opcode = (cond == eq) ? BEQ : BNE; | 5460 opcode = (cond == eq) ? BEQ : BNE; |
| 5461 instr = (instr & ~kOpcodeMask) | opcode; | 5461 instr = (instr & ~kOpcodeMask) | opcode; |
| 5462 masm_.emit(instr); | 5462 masm_.emit(instr); |
| 5463 } | 5463 } |
| 5464 | 5464 |
| 5465 | 5465 |
| 5466 } } // namespace v8::internal | 5466 } } // namespace v8::internal |
| 5467 | 5467 |
| 5468 #endif // V8_TARGET_ARCH_MIPS | 5468 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |