| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 4142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4153 __ RecordWriteForMap(object_reg, | 4153 __ RecordWriteForMap(object_reg, |
| 4154 new_map_reg, | 4154 new_map_reg, |
| 4155 scratch, | 4155 scratch, |
| 4156 GetRAState(), | 4156 GetRAState(), |
| 4157 kDontSaveFPRegs); | 4157 kDontSaveFPRegs); |
| 4158 } else { | 4158 } else { |
| 4159 DCHECK(object_reg.is(a0)); | 4159 DCHECK(object_reg.is(a0)); |
| 4160 DCHECK(ToRegister(instr->context()).is(cp)); | 4160 DCHECK(ToRegister(instr->context()).is(cp)); |
| 4161 PushSafepointRegistersScope scope(this); | 4161 PushSafepointRegistersScope scope(this); |
| 4162 __ li(a1, Operand(to_map)); | 4162 __ li(a1, Operand(to_map)); |
| 4163 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4163 TransitionElementsKindStub stub(isolate(), from_kind, to_kind); |
| 4164 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | |
| 4165 __ CallStub(&stub); | 4164 __ CallStub(&stub); |
| 4166 RecordSafepointWithRegisters( | 4165 RecordSafepointWithRegisters( |
| 4167 instr->pointer_map(), 0, Safepoint::kLazyDeopt); | 4166 instr->pointer_map(), 0, Safepoint::kLazyDeopt); |
| 4168 } | 4167 } |
| 4169 __ bind(¬_applicable); | 4168 __ bind(¬_applicable); |
| 4170 } | 4169 } |
| 4171 | 4170 |
| 4172 | 4171 |
| 4173 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4172 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
| 4174 Register object = ToRegister(instr->object()); | 4173 Register object = ToRegister(instr->object()); |
| (...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5549 __ lw(result, FieldMemOperand(scratch, | 5548 __ lw(result, FieldMemOperand(scratch, |
| 5550 FixedArray::kHeaderSize - kPointerSize)); | 5549 FixedArray::kHeaderSize - kPointerSize)); |
| 5551 __ bind(deferred->exit()); | 5550 __ bind(deferred->exit()); |
| 5552 __ bind(&done); | 5551 __ bind(&done); |
| 5553 } | 5552 } |
| 5554 | 5553 |
| 5555 #undef __ | 5554 #undef __ |
| 5556 | 5555 |
| 5557 } // namespace internal | 5556 } // namespace internal |
| 5558 } // namespace v8 | 5557 } // namespace v8 |
| OLD | NEW |