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