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 2554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2565 | 2565 |
2566 | 2566 |
2567 void LCodeGen::DoPushArgument(LPushArgument* instr) { | 2567 void LCodeGen::DoPushArgument(LPushArgument* instr) { |
2568 LOperand* argument = instr->InputAt(0); | 2568 LOperand* argument = instr->InputAt(0); |
2569 EmitPushTaggedOperand(argument); | 2569 EmitPushTaggedOperand(argument); |
2570 } | 2570 } |
2571 | 2571 |
2572 | 2572 |
2573 void LCodeGen::DoThisFunction(LThisFunction* instr) { | 2573 void LCodeGen::DoThisFunction(LThisFunction* instr) { |
2574 Register result = ToRegister(instr->result()); | 2574 Register result = ToRegister(instr->result()); |
2575 __ movq(result, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); | 2575 LoadHeapObject(result, instr->hydrogen()->closure()); |
2576 } | 2576 } |
2577 | 2577 |
2578 | 2578 |
2579 void LCodeGen::DoContext(LContext* instr) { | 2579 void LCodeGen::DoContext(LContext* instr) { |
2580 Register result = ToRegister(instr->result()); | 2580 Register result = ToRegister(instr->result()); |
2581 __ movq(result, rsi); | 2581 __ movq(result, rsi); |
2582 } | 2582 } |
2583 | 2583 |
2584 | 2584 |
2585 void LCodeGen::DoOuterContext(LOuterContext* instr) { | 2585 void LCodeGen::DoOuterContext(LOuterContext* instr) { |
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4228 RegisterEnvironmentForDeoptimization(environment); | 4228 RegisterEnvironmentForDeoptimization(environment); |
4229 ASSERT(osr_pc_offset_ == -1); | 4229 ASSERT(osr_pc_offset_ == -1); |
4230 osr_pc_offset_ = masm()->pc_offset(); | 4230 osr_pc_offset_ = masm()->pc_offset(); |
4231 } | 4231 } |
4232 | 4232 |
4233 #undef __ | 4233 #undef __ |
4234 | 4234 |
4235 } } // namespace v8::internal | 4235 } } // namespace v8::internal |
4236 | 4236 |
4237 #endif // V8_TARGET_ARCH_X64 | 4237 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |