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 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2202 void LCodeGen::DoContext(LContext* instr) { | 2202 void LCodeGen::DoContext(LContext* instr) { |
2203 Register result = ToRegister(instr->result()); | 2203 Register result = ToRegister(instr->result()); |
2204 __ movq(result, Operand(rbp, StandardFrameConstants::kContextOffset)); | 2204 __ movq(result, Operand(rbp, StandardFrameConstants::kContextOffset)); |
2205 } | 2205 } |
2206 | 2206 |
2207 | 2207 |
2208 void LCodeGen::DoOuterContext(LOuterContext* instr) { | 2208 void LCodeGen::DoOuterContext(LOuterContext* instr) { |
2209 Register context = ToRegister(instr->context()); | 2209 Register context = ToRegister(instr->context()); |
2210 Register result = ToRegister(instr->result()); | 2210 Register result = ToRegister(instr->result()); |
2211 __ movq(result, | 2211 __ movq(result, |
2212 » Operand(context, Context::SlotOffset(Context::CLOSURE_INDEX))); | 2212 Operand(context, Context::SlotOffset(Context::CLOSURE_INDEX))); |
2213 __ movq(result, FieldOperand(result, JSFunction::kContextOffset)); | 2213 __ movq(result, FieldOperand(result, JSFunction::kContextOffset)); |
2214 } | 2214 } |
2215 | 2215 |
2216 | 2216 |
2217 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { | 2217 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { |
2218 Register result = ToRegister(instr->result()); | 2218 Register result = ToRegister(instr->result()); |
2219 __ movq(result, GlobalObjectOperand()); | 2219 __ movq(result, GlobalObjectOperand()); |
2220 } | 2220 } |
2221 | 2221 |
2222 | 2222 |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3435 RegisterEnvironmentForDeoptimization(environment); | 3435 RegisterEnvironmentForDeoptimization(environment); |
3436 ASSERT(osr_pc_offset_ == -1); | 3436 ASSERT(osr_pc_offset_ == -1); |
3437 osr_pc_offset_ = masm()->pc_offset(); | 3437 osr_pc_offset_ = masm()->pc_offset(); |
3438 } | 3438 } |
3439 | 3439 |
3440 #undef __ | 3440 #undef __ |
3441 | 3441 |
3442 } } // namespace v8::internal | 3442 } } // namespace v8::internal |
3443 | 3443 |
3444 #endif // V8_TARGET_ARCH_X64 | 3444 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |