| 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 5339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5350 __ LoadRoot(ip, Heap::kMetaMapRootIndex); | 5350 __ LoadRoot(ip, Heap::kMetaMapRootIndex); |
| 5351 __ cmp(r1, ip); | 5351 __ cmp(r1, ip); |
| 5352 DeoptimizeIf(ne, instr->environment()); | 5352 DeoptimizeIf(ne, instr->environment()); |
| 5353 __ bind(&use_cache); | 5353 __ bind(&use_cache); |
| 5354 } | 5354 } |
| 5355 | 5355 |
| 5356 | 5356 |
| 5357 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 5357 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
| 5358 Register map = ToRegister(instr->map()); | 5358 Register map = ToRegister(instr->map()); |
| 5359 Register result = ToRegister(instr->result()); | 5359 Register result = ToRegister(instr->result()); |
| 5360 __ LoadInstanceDescriptors(map, result); | 5360 Register scratch = ToRegister(instr->scratch()); |
| 5361 __ LoadInstanceDescriptors(map, result, scratch); |
| 5361 __ ldr(result, | 5362 __ ldr(result, |
| 5362 FieldMemOperand(result, DescriptorArray::kEnumerationIndexOffset)); | 5363 FieldMemOperand(result, DescriptorArray::kEnumerationIndexOffset)); |
| 5363 __ ldr(result, | 5364 __ ldr(result, |
| 5364 FieldMemOperand(result, FixedArray::SizeFor(instr->idx()))); | 5365 FieldMemOperand(result, FixedArray::SizeFor(instr->idx()))); |
| 5365 __ cmp(result, Operand(0)); | 5366 __ cmp(result, Operand(0)); |
| 5366 DeoptimizeIf(eq, instr->environment()); | 5367 DeoptimizeIf(eq, instr->environment()); |
| 5367 } | 5368 } |
| 5368 | 5369 |
| 5369 | 5370 |
| 5370 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { | 5371 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5398 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5399 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 5399 __ ldr(result, FieldMemOperand(scratch, | 5400 __ ldr(result, FieldMemOperand(scratch, |
| 5400 FixedArray::kHeaderSize - kPointerSize)); | 5401 FixedArray::kHeaderSize - kPointerSize)); |
| 5401 __ bind(&done); | 5402 __ bind(&done); |
| 5402 } | 5403 } |
| 5403 | 5404 |
| 5404 | 5405 |
| 5405 #undef __ | 5406 #undef __ |
| 5406 | 5407 |
| 5407 } } // namespace v8::internal | 5408 } } // namespace v8::internal |
| OLD | NEW |