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 5109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5120 Operand(object)); | 5120 Operand(object)); |
5121 } | 5121 } |
5122 } | 5122 } |
5123 | 5123 |
5124 | 5124 |
5125 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { | 5125 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { |
5126 { | 5126 { |
5127 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); | 5127 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); |
5128 __ push(object); | 5128 __ push(object); |
5129 __ mov(cp, zero_reg); | 5129 __ mov(cp, zero_reg); |
5130 __ CallRuntimeSaveDoubles(Runtime::kMigrateInstance); | 5130 __ CallRuntimeSaveDoubles(Runtime::kTryMigrateInstance); |
5131 RecordSafepointWithRegisters( | 5131 RecordSafepointWithRegisters( |
5132 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); | 5132 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); |
5133 __ StoreToSafepointRegisterSlot(v0, scratch0()); | 5133 __ StoreToSafepointRegisterSlot(v0, scratch0()); |
5134 } | 5134 } |
5135 __ SmiTst(scratch0(), at); | 5135 __ SmiTst(scratch0(), at); |
5136 DeoptimizeIf(eq, instr->environment(), at, Operand(zero_reg)); | 5136 DeoptimizeIf(eq, instr->environment(), at, Operand(zero_reg)); |
5137 } | 5137 } |
5138 | 5138 |
5139 | 5139 |
5140 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { | 5140 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5806 __ Subu(scratch, result, scratch); | 5806 __ Subu(scratch, result, scratch); |
5807 __ lw(result, FieldMemOperand(scratch, | 5807 __ lw(result, FieldMemOperand(scratch, |
5808 FixedArray::kHeaderSize - kPointerSize)); | 5808 FixedArray::kHeaderSize - kPointerSize)); |
5809 __ bind(&done); | 5809 __ bind(&done); |
5810 } | 5810 } |
5811 | 5811 |
5812 | 5812 |
5813 #undef __ | 5813 #undef __ |
5814 | 5814 |
5815 } } // namespace v8::internal | 5815 } } // namespace v8::internal |
OLD | NEW |