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 3150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3161 // Non-instance prototype: Fetch prototype from constructor field | 3161 // Non-instance prototype: Fetch prototype from constructor field |
3162 // in initial map. | 3162 // in initial map. |
3163 __ bind(&non_instance); | 3163 __ bind(&non_instance); |
3164 __ ldr(result, FieldMemOperand(result, Map::kConstructorOffset)); | 3164 __ ldr(result, FieldMemOperand(result, Map::kConstructorOffset)); |
3165 | 3165 |
3166 // All done. | 3166 // All done. |
3167 __ bind(&done); | 3167 __ bind(&done); |
3168 } | 3168 } |
3169 | 3169 |
3170 | 3170 |
| 3171 void LCodeGen::DoLoadRoot(LLoadRoot* instr) { |
| 3172 Register result = ToRegister(instr->result()); |
| 3173 __ LoadRoot(result, instr->index()); |
| 3174 } |
| 3175 |
| 3176 |
3171 void LCodeGen::DoLoadExternalArrayPointer( | 3177 void LCodeGen::DoLoadExternalArrayPointer( |
3172 LLoadExternalArrayPointer* instr) { | 3178 LLoadExternalArrayPointer* instr) { |
3173 Register to_reg = ToRegister(instr->result()); | 3179 Register to_reg = ToRegister(instr->result()); |
3174 Register from_reg = ToRegister(instr->object()); | 3180 Register from_reg = ToRegister(instr->object()); |
3175 __ ldr(to_reg, FieldMemOperand(from_reg, | 3181 __ ldr(to_reg, FieldMemOperand(from_reg, |
3176 ExternalArray::kExternalPointerOffset)); | 3182 ExternalArray::kExternalPointerOffset)); |
3177 } | 3183 } |
3178 | 3184 |
3179 | 3185 |
3180 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { | 3186 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { |
(...skipping 2620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5801 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5807 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5802 __ ldr(result, FieldMemOperand(scratch, | 5808 __ ldr(result, FieldMemOperand(scratch, |
5803 FixedArray::kHeaderSize - kPointerSize)); | 5809 FixedArray::kHeaderSize - kPointerSize)); |
5804 __ bind(&done); | 5810 __ bind(&done); |
5805 } | 5811 } |
5806 | 5812 |
5807 | 5813 |
5808 #undef __ | 5814 #undef __ |
5809 | 5815 |
5810 } } // namespace v8::internal | 5816 } } // namespace v8::internal |
OLD | NEW |