| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 if (op->IsStackSlot()) { | 335 if (op->IsStackSlot()) { |
| 336 if (is_tagged) { | 336 if (is_tagged) { |
| 337 translation->StoreStackSlot(op->index()); | 337 translation->StoreStackSlot(op->index()); |
| 338 } else if (is_uint32) { | 338 } else if (is_uint32) { |
| 339 translation->StoreUint32StackSlot(op->index()); | 339 translation->StoreUint32StackSlot(op->index()); |
| 340 } else { | 340 } else { |
| 341 translation->StoreInt32StackSlot(op->index()); | 341 translation->StoreInt32StackSlot(op->index()); |
| 342 } | 342 } |
| 343 } else if (op->IsDoubleStackSlot()) { | 343 } else if (op->IsDoubleStackSlot()) { |
| 344 translation->StoreDoubleStackSlot(op->index()); | 344 translation->StoreDoubleStackSlot(op->index()); |
| 345 } else if (op->IsArgument()) { | |
| 346 ASSERT(is_tagged); | |
| 347 int src_index = GetStackSlotCount() + op->index(); | |
| 348 translation->StoreStackSlot(src_index); | |
| 349 } else if (op->IsRegister()) { | 345 } else if (op->IsRegister()) { |
| 350 Register reg = ToRegister(op); | 346 Register reg = ToRegister(op); |
| 351 if (is_tagged) { | 347 if (is_tagged) { |
| 352 translation->StoreRegister(reg); | 348 translation->StoreRegister(reg); |
| 353 } else if (is_uint32) { | 349 } else if (is_uint32) { |
| 354 translation->StoreUint32Register(reg); | 350 translation->StoreUint32Register(reg); |
| 355 } else { | 351 } else { |
| 356 translation->StoreInt32Register(reg); | 352 translation->StoreInt32Register(reg); |
| 357 } | 353 } |
| 358 } else if (op->IsDoubleRegister()) { | 354 } else if (op->IsDoubleRegister()) { |
| (...skipping 5314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5673 __ Bind(&out_of_object); | 5669 __ Bind(&out_of_object); |
| 5674 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5670 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
| 5675 // Index is equal to negated out of object property index plus 1. | 5671 // Index is equal to negated out of object property index plus 1. |
| 5676 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5672 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5677 __ Ldr(result, FieldMemOperand(result, | 5673 __ Ldr(result, FieldMemOperand(result, |
| 5678 FixedArray::kHeaderSize - kPointerSize)); | 5674 FixedArray::kHeaderSize - kPointerSize)); |
| 5679 __ Bind(&done); | 5675 __ Bind(&done); |
| 5680 } | 5676 } |
| 5681 | 5677 |
| 5682 } } // namespace v8::internal | 5678 } } // namespace v8::internal |
| OLD | NEW |