| 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 2664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2675 void LCodeGen::DoContext(LContext* instr) { | 2675 void LCodeGen::DoContext(LContext* instr) { |
| 2676 Register result = ToRegister(instr->result()); | 2676 Register result = ToRegister(instr->result()); |
| 2677 __ movq(result, rsi); | 2677 __ movq(result, rsi); |
| 2678 } | 2678 } |
| 2679 | 2679 |
| 2680 | 2680 |
| 2681 void LCodeGen::DoOuterContext(LOuterContext* instr) { | 2681 void LCodeGen::DoOuterContext(LOuterContext* instr) { |
| 2682 Register context = ToRegister(instr->context()); | 2682 Register context = ToRegister(instr->context()); |
| 2683 Register result = ToRegister(instr->result()); | 2683 Register result = ToRegister(instr->result()); |
| 2684 __ movq(result, | 2684 __ movq(result, |
| 2685 Operand(context, Context::SlotOffset(Context::CLOSURE_INDEX))); | 2685 Operand(context, Context::SlotOffset(Context::PREVIOUS_INDEX))); |
| 2686 __ movq(result, FieldOperand(result, JSFunction::kContextOffset)); | |
| 2687 } | 2686 } |
| 2688 | 2687 |
| 2689 | 2688 |
| 2690 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { | 2689 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { |
| 2691 Register result = ToRegister(instr->result()); | 2690 Register result = ToRegister(instr->result()); |
| 2692 __ movq(result, GlobalObjectOperand()); | 2691 __ movq(result, GlobalObjectOperand()); |
| 2693 } | 2692 } |
| 2694 | 2693 |
| 2695 | 2694 |
| 2696 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { | 2695 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { |
| (...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4268 RegisterEnvironmentForDeoptimization(environment); | 4267 RegisterEnvironmentForDeoptimization(environment); |
| 4269 ASSERT(osr_pc_offset_ == -1); | 4268 ASSERT(osr_pc_offset_ == -1); |
| 4270 osr_pc_offset_ = masm()->pc_offset(); | 4269 osr_pc_offset_ = masm()->pc_offset(); |
| 4271 } | 4270 } |
| 4272 | 4271 |
| 4273 #undef __ | 4272 #undef __ |
| 4274 | 4273 |
| 4275 } } // namespace v8::internal | 4274 } } // namespace v8::internal |
| 4276 | 4275 |
| 4277 #endif // V8_TARGET_ARCH_X64 | 4276 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |