| 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 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 LOperand* argument = instr->InputAt(0); | 2780 LOperand* argument = instr->InputAt(0); |
| 2781 if (argument->IsDoubleRegister() || argument->IsDoubleStackSlot()) { | 2781 if (argument->IsDoubleRegister() || argument->IsDoubleStackSlot()) { |
| 2782 Abort("DoPushArgument not implemented for double type."); | 2782 Abort("DoPushArgument not implemented for double type."); |
| 2783 } else { | 2783 } else { |
| 2784 Register argument_reg = EmitLoadRegister(argument, ip); | 2784 Register argument_reg = EmitLoadRegister(argument, ip); |
| 2785 __ push(argument_reg); | 2785 __ push(argument_reg); |
| 2786 } | 2786 } |
| 2787 } | 2787 } |
| 2788 | 2788 |
| 2789 | 2789 |
| 2790 void LCodeGen::DoThisFunction(LThisFunction* instr) { |
| 2791 Register result = ToRegister(instr->result()); |
| 2792 __ ldr(result, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 2793 } |
| 2794 |
| 2795 |
| 2790 void LCodeGen::DoContext(LContext* instr) { | 2796 void LCodeGen::DoContext(LContext* instr) { |
| 2791 Register result = ToRegister(instr->result()); | 2797 Register result = ToRegister(instr->result()); |
| 2792 __ mov(result, cp); | 2798 __ mov(result, cp); |
| 2793 } | 2799 } |
| 2794 | 2800 |
| 2795 | 2801 |
| 2796 void LCodeGen::DoOuterContext(LOuterContext* instr) { | 2802 void LCodeGen::DoOuterContext(LOuterContext* instr) { |
| 2797 Register context = ToRegister(instr->context()); | 2803 Register context = ToRegister(instr->context()); |
| 2798 Register result = ToRegister(instr->result()); | 2804 Register result = ToRegister(instr->result()); |
| 2799 __ ldr(result, | 2805 __ ldr(result, |
| (...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4523 ASSERT(osr_pc_offset_ == -1); | 4529 ASSERT(osr_pc_offset_ == -1); |
| 4524 osr_pc_offset_ = masm()->pc_offset(); | 4530 osr_pc_offset_ = masm()->pc_offset(); |
| 4525 } | 4531 } |
| 4526 | 4532 |
| 4527 | 4533 |
| 4528 | 4534 |
| 4529 | 4535 |
| 4530 #undef __ | 4536 #undef __ |
| 4531 | 4537 |
| 4532 } } // namespace v8::internal | 4538 } } // namespace v8::internal |
| OLD | NEW |