| 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 2768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2779 Abort("DoPushArgument not implemented for double type."); | 2779 Abort("DoPushArgument not implemented for double type."); |
| 2780 } else { | 2780 } else { |
| 2781 Register argument_reg = EmitLoadRegister(argument, ip); | 2781 Register argument_reg = EmitLoadRegister(argument, ip); |
| 2782 __ push(argument_reg); | 2782 __ push(argument_reg); |
| 2783 } | 2783 } |
| 2784 } | 2784 } |
| 2785 | 2785 |
| 2786 | 2786 |
| 2787 void LCodeGen::DoThisFunction(LThisFunction* instr) { | 2787 void LCodeGen::DoThisFunction(LThisFunction* instr) { |
| 2788 Register result = ToRegister(instr->result()); | 2788 Register result = ToRegister(instr->result()); |
| 2789 __ ldr(result, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 2789 LoadHeapObject(result, instr->hydrogen()->closure()); |
| 2790 } | 2790 } |
| 2791 | 2791 |
| 2792 | 2792 |
| 2793 void LCodeGen::DoContext(LContext* instr) { | 2793 void LCodeGen::DoContext(LContext* instr) { |
| 2794 Register result = ToRegister(instr->result()); | 2794 Register result = ToRegister(instr->result()); |
| 2795 __ mov(result, cp); | 2795 __ mov(result, cp); |
| 2796 } | 2796 } |
| 2797 | 2797 |
| 2798 | 2798 |
| 2799 void LCodeGen::DoOuterContext(LOuterContext* instr) { | 2799 void LCodeGen::DoOuterContext(LOuterContext* instr) { |
| (...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4597 ASSERT(osr_pc_offset_ == -1); | 4597 ASSERT(osr_pc_offset_ == -1); |
| 4598 osr_pc_offset_ = masm()->pc_offset(); | 4598 osr_pc_offset_ = masm()->pc_offset(); |
| 4599 } | 4599 } |
| 4600 | 4600 |
| 4601 | 4601 |
| 4602 | 4602 |
| 4603 | 4603 |
| 4604 #undef __ | 4604 #undef __ |
| 4605 | 4605 |
| 4606 } } // namespace v8::internal | 4606 } } // namespace v8::internal |
| OLD | NEW |