| 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 5152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5163 } | 5163 } |
| 5164 DeoptimizeIf(ne, instr->environment()); | 5164 DeoptimizeIf(ne, instr->environment()); |
| 5165 } | 5165 } |
| 5166 | 5166 |
| 5167 | 5167 |
| 5168 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { | 5168 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { |
| 5169 { | 5169 { |
| 5170 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); | 5170 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); |
| 5171 __ push(object); | 5171 __ push(object); |
| 5172 __ mov(cp, Operand::Zero()); | 5172 __ mov(cp, Operand::Zero()); |
| 5173 __ CallRuntimeSaveDoubles(Runtime::kMigrateInstance); | 5173 __ CallRuntimeSaveDoubles(Runtime::kTryMigrateInstance); |
| 5174 RecordSafepointWithRegisters( | 5174 RecordSafepointWithRegisters( |
| 5175 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); | 5175 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); |
| 5176 __ StoreToSafepointRegisterSlot(r0, scratch0()); | 5176 __ StoreToSafepointRegisterSlot(r0, scratch0()); |
| 5177 } | 5177 } |
| 5178 __ tst(scratch0(), Operand(kSmiTagMask)); | 5178 __ tst(scratch0(), Operand(kSmiTagMask)); |
| 5179 DeoptimizeIf(eq, instr->environment()); | 5179 DeoptimizeIf(eq, instr->environment()); |
| 5180 } | 5180 } |
| 5181 | 5181 |
| 5182 | 5182 |
| 5183 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { | 5183 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5810 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5810 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5811 __ ldr(result, FieldMemOperand(scratch, | 5811 __ ldr(result, FieldMemOperand(scratch, |
| 5812 FixedArray::kHeaderSize - kPointerSize)); | 5812 FixedArray::kHeaderSize - kPointerSize)); |
| 5813 __ bind(&done); | 5813 __ bind(&done); |
| 5814 } | 5814 } |
| 5815 | 5815 |
| 5816 | 5816 |
| 5817 #undef __ | 5817 #undef __ |
| 5818 | 5818 |
| 5819 } } // namespace v8::internal | 5819 } } // namespace v8::internal |
| OLD | NEW |