| 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 4841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4852 __ RecordWriteForMap(object_reg, to_map, new_map_reg, | 4852 __ RecordWriteForMap(object_reg, to_map, new_map_reg, |
| 4853 ToRegister(instr->temp()), | 4853 ToRegister(instr->temp()), |
| 4854 kDontSaveFPRegs); | 4854 kDontSaveFPRegs); |
| 4855 } else { | 4855 } else { |
| 4856 ASSERT(ToRegister(instr->context()).is(esi)); | 4856 ASSERT(ToRegister(instr->context()).is(esi)); |
| 4857 PushSafepointRegistersScope scope(this); | 4857 PushSafepointRegistersScope scope(this); |
| 4858 if (!object_reg.is(eax)) { | 4858 if (!object_reg.is(eax)) { |
| 4859 __ mov(eax, object_reg); | 4859 __ mov(eax, object_reg); |
| 4860 } | 4860 } |
| 4861 __ mov(ebx, to_map); | 4861 __ mov(ebx, to_map); |
| 4862 TransitionElementsKindStub stub(from_kind, to_kind); | 4862 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
| 4863 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array); |
| 4863 __ CallStub(&stub); | 4864 __ CallStub(&stub); |
| 4864 RecordSafepointWithRegisters( | 4865 RecordSafepointWithRegisters( |
| 4865 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4866 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
| 4866 } | 4867 } |
| 4867 __ bind(¬_applicable); | 4868 __ bind(¬_applicable); |
| 4868 } | 4869 } |
| 4869 | 4870 |
| 4870 | 4871 |
| 4871 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 4872 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
| 4872 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { | 4873 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { |
| (...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6440 FixedArray::kHeaderSize - kPointerSize)); | 6441 FixedArray::kHeaderSize - kPointerSize)); |
| 6441 __ bind(&done); | 6442 __ bind(&done); |
| 6442 } | 6443 } |
| 6443 | 6444 |
| 6444 | 6445 |
| 6445 #undef __ | 6446 #undef __ |
| 6446 | 6447 |
| 6447 } } // namespace v8::internal | 6448 } } // namespace v8::internal |
| 6448 | 6449 |
| 6449 #endif // V8_TARGET_ARCH_IA32 | 6450 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |