| 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 4680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4691 __ RecordWriteForMap(object_reg, to_map, new_map_reg, | 4691 __ RecordWriteForMap(object_reg, to_map, new_map_reg, |
| 4692 ToRegister(instr->temp()), | 4692 ToRegister(instr->temp()), |
| 4693 kDontSaveFPRegs); | 4693 kDontSaveFPRegs); |
| 4694 } else { | 4694 } else { |
| 4695 ASSERT(ToRegister(instr->context()).is(esi)); | 4695 ASSERT(ToRegister(instr->context()).is(esi)); |
| 4696 PushSafepointRegistersScope scope(this); | 4696 PushSafepointRegistersScope scope(this); |
| 4697 if (!object_reg.is(eax)) { | 4697 if (!object_reg.is(eax)) { |
| 4698 __ mov(eax, object_reg); | 4698 __ mov(eax, object_reg); |
| 4699 } | 4699 } |
| 4700 __ mov(ebx, to_map); | 4700 __ mov(ebx, to_map); |
| 4701 TransitionElementsKindStub stub(from_kind, to_kind); | 4701 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
| 4702 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array); |
| 4702 __ CallStub(&stub); | 4703 __ CallStub(&stub); |
| 4703 RecordSafepointWithRegisters( | 4704 RecordSafepointWithRegisters( |
| 4704 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4705 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
| 4705 } | 4706 } |
| 4706 __ bind(¬_applicable); | 4707 __ bind(¬_applicable); |
| 4707 } | 4708 } |
| 4708 | 4709 |
| 4709 | 4710 |
| 4710 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 4711 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
| 4711 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { | 4712 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { |
| (...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6272 FixedArray::kHeaderSize - kPointerSize)); | 6273 FixedArray::kHeaderSize - kPointerSize)); |
| 6273 __ bind(&done); | 6274 __ bind(&done); |
| 6274 } | 6275 } |
| 6275 | 6276 |
| 6276 | 6277 |
| 6277 #undef __ | 6278 #undef __ |
| 6278 | 6279 |
| 6279 } } // namespace v8::internal | 6280 } } // namespace v8::internal |
| 6280 | 6281 |
| 6281 #endif // V8_TARGET_ARCH_IA32 | 6282 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |