| 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 5275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5286 DeoptimizeIf(not_equal, instr->environment()); | 5286 DeoptimizeIf(not_equal, instr->environment()); |
| 5287 __ bind(&use_cache); | 5287 __ bind(&use_cache); |
| 5288 } | 5288 } |
| 5289 | 5289 |
| 5290 | 5290 |
| 5291 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 5291 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
| 5292 Register map = ToRegister(instr->map()); | 5292 Register map = ToRegister(instr->map()); |
| 5293 Register result = ToRegister(instr->result()); | 5293 Register result = ToRegister(instr->result()); |
| 5294 __ LoadInstanceDescriptors(map, result); | 5294 __ LoadInstanceDescriptors(map, result); |
| 5295 __ mov(result, | 5295 __ mov(result, |
| 5296 FieldOperand(result, DescriptorArray::kEnumerationIndexOffset)); | 5296 FieldOperand(result, DescriptorArray::kLastAddedOffset)); |
| 5297 __ mov(result, | 5297 __ mov(result, |
| 5298 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); | 5298 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); |
| 5299 __ test(result, result); | 5299 __ test(result, result); |
| 5300 DeoptimizeIf(equal, instr->environment()); | 5300 DeoptimizeIf(equal, instr->environment()); |
| 5301 } | 5301 } |
| 5302 | 5302 |
| 5303 | 5303 |
| 5304 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { | 5304 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { |
| 5305 Register object = ToRegister(instr->value()); | 5305 Register object = ToRegister(instr->value()); |
| 5306 __ cmp(ToRegister(instr->map()), | 5306 __ cmp(ToRegister(instr->map()), |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5332 FixedArray::kHeaderSize - kPointerSize)); | 5332 FixedArray::kHeaderSize - kPointerSize)); |
| 5333 __ bind(&done); | 5333 __ bind(&done); |
| 5334 } | 5334 } |
| 5335 | 5335 |
| 5336 | 5336 |
| 5337 #undef __ | 5337 #undef __ |
| 5338 | 5338 |
| 5339 } } // namespace v8::internal | 5339 } } // namespace v8::internal |
| 5340 | 5340 |
| 5341 #endif // V8_TARGET_ARCH_IA32 | 5341 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |