| 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 5346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5357 __ bind(&use_cache); | 5357 __ bind(&use_cache); |
| 5358 } | 5358 } |
| 5359 | 5359 |
| 5360 | 5360 |
| 5361 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 5361 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
| 5362 Register map = ToRegister(instr->map()); | 5362 Register map = ToRegister(instr->map()); |
| 5363 Register result = ToRegister(instr->result()); | 5363 Register result = ToRegister(instr->result()); |
| 5364 Register scratch = ToRegister(instr->scratch()); | 5364 Register scratch = ToRegister(instr->scratch()); |
| 5365 __ LoadInstanceDescriptors(map, result, scratch); | 5365 __ LoadInstanceDescriptors(map, result, scratch); |
| 5366 __ ldr(result, | 5366 __ ldr(result, |
| 5367 FieldMemOperand(result, DescriptorArray::kLastAddedOffset)); | 5367 FieldMemOperand(result, DescriptorArray::kEnumCacheOffset)); |
| 5368 __ ldr(result, | 5368 __ ldr(result, |
| 5369 FieldMemOperand(result, FixedArray::SizeFor(instr->idx()))); | 5369 FieldMemOperand(result, FixedArray::SizeFor(instr->idx()))); |
| 5370 __ cmp(result, Operand(0)); | 5370 __ cmp(result, Operand(0)); |
| 5371 DeoptimizeIf(eq, instr->environment()); | 5371 DeoptimizeIf(eq, instr->environment()); |
| 5372 } | 5372 } |
| 5373 | 5373 |
| 5374 | 5374 |
| 5375 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { | 5375 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { |
| 5376 Register object = ToRegister(instr->value()); | 5376 Register object = ToRegister(instr->value()); |
| 5377 Register map = ToRegister(instr->map()); | 5377 Register map = ToRegister(instr->map()); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5403 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5403 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 5404 __ ldr(result, FieldMemOperand(scratch, | 5404 __ ldr(result, FieldMemOperand(scratch, |
| 5405 FixedArray::kHeaderSize - kPointerSize)); | 5405 FixedArray::kHeaderSize - kPointerSize)); |
| 5406 __ bind(&done); | 5406 __ bind(&done); |
| 5407 } | 5407 } |
| 5408 | 5408 |
| 5409 | 5409 |
| 5410 #undef __ | 5410 #undef __ |
| 5411 | 5411 |
| 5412 } } // namespace v8::internal | 5412 } } // namespace v8::internal |
| OLD | NEW |