| 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 4369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4380 ASSERT_NE(instr->temp(), NULL); | 4380 ASSERT_NE(instr->temp(), NULL); |
| 4381 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, | 4381 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, |
| 4382 ToRegister(instr->temp()), kDontSaveFPRegs); | 4382 ToRegister(instr->temp()), kDontSaveFPRegs); |
| 4383 } else { | 4383 } else { |
| 4384 ASSERT(ToRegister(instr->context()).is(rsi)); | 4384 ASSERT(ToRegister(instr->context()).is(rsi)); |
| 4385 PushSafepointRegistersScope scope(this); | 4385 PushSafepointRegistersScope scope(this); |
| 4386 if (!object_reg.is(rax)) { | 4386 if (!object_reg.is(rax)) { |
| 4387 __ movq(rax, object_reg); | 4387 __ movq(rax, object_reg); |
| 4388 } | 4388 } |
| 4389 __ Move(rbx, to_map); | 4389 __ Move(rbx, to_map); |
| 4390 TransitionElementsKindStub stub(from_kind, to_kind); | 4390 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
| 4391 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array); |
| 4391 __ CallStub(&stub); | 4392 __ CallStub(&stub); |
| 4392 RecordSafepointWithRegisters( | 4393 RecordSafepointWithRegisters( |
| 4393 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4394 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
| 4394 } | 4395 } |
| 4395 __ bind(¬_applicable); | 4396 __ bind(¬_applicable); |
| 4396 } | 4397 } |
| 4397 | 4398 |
| 4398 | 4399 |
| 4399 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4400 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
| 4400 Register object = ToRegister(instr->object()); | 4401 Register object = ToRegister(instr->object()); |
| (...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5661 FixedArray::kHeaderSize - kPointerSize)); | 5662 FixedArray::kHeaderSize - kPointerSize)); |
| 5662 __ bind(&done); | 5663 __ bind(&done); |
| 5663 } | 5664 } |
| 5664 | 5665 |
| 5665 | 5666 |
| 5666 #undef __ | 5667 #undef __ |
| 5667 | 5668 |
| 5668 } } // namespace v8::internal | 5669 } } // namespace v8::internal |
| 5669 | 5670 |
| 5670 #endif // V8_TARGET_ARCH_X64 | 5671 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |