| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1970 __ movq(result, ContextOperand(context, instr->slot_index())); | 1970 __ movq(result, ContextOperand(context, instr->slot_index())); |
| 1971 } | 1971 } |
| 1972 | 1972 |
| 1973 | 1973 |
| 1974 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) { | 1974 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) { |
| 1975 Register context = ToRegister(instr->context()); | 1975 Register context = ToRegister(instr->context()); |
| 1976 Register value = ToRegister(instr->value()); | 1976 Register value = ToRegister(instr->value()); |
| 1977 __ movq(ContextOperand(context, instr->slot_index()), value); | 1977 __ movq(ContextOperand(context, instr->slot_index()), value); |
| 1978 if (instr->needs_write_barrier()) { | 1978 if (instr->needs_write_barrier()) { |
| 1979 int offset = Context::SlotOffset(instr->slot_index()); | 1979 int offset = Context::SlotOffset(instr->slot_index()); |
| 1980 __ RecordWrite(context, offset, value, kScratchRegister); | 1980 Register scratch = ToRegister(instr->TempAt(0)); |
| 1981 __ RecordWrite(context, offset, value, scratch); |
| 1981 } | 1982 } |
| 1982 } | 1983 } |
| 1983 | 1984 |
| 1984 | 1985 |
| 1985 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { | 1986 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { |
| 1986 Register object = ToRegister(instr->InputAt(0)); | 1987 Register object = ToRegister(instr->InputAt(0)); |
| 1987 Register result = ToRegister(instr->result()); | 1988 Register result = ToRegister(instr->result()); |
| 1988 if (instr->hydrogen()->is_in_object()) { | 1989 if (instr->hydrogen()->is_in_object()) { |
| 1989 __ movq(result, FieldOperand(object, instr->hydrogen()->offset())); | 1990 __ movq(result, FieldOperand(object, instr->hydrogen()->offset())); |
| 1990 } else { | 1991 } else { |
| (...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3647 RegisterEnvironmentForDeoptimization(environment); | 3648 RegisterEnvironmentForDeoptimization(environment); |
| 3648 ASSERT(osr_pc_offset_ == -1); | 3649 ASSERT(osr_pc_offset_ == -1); |
| 3649 osr_pc_offset_ = masm()->pc_offset(); | 3650 osr_pc_offset_ = masm()->pc_offset(); |
| 3650 } | 3651 } |
| 3651 | 3652 |
| 3652 #undef __ | 3653 #undef __ |
| 3653 | 3654 |
| 3654 } } // namespace v8::internal | 3655 } } // namespace v8::internal |
| 3655 | 3656 |
| 3656 #endif // V8_TARGET_ARCH_X64 | 3657 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |