Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 8346032: Allow inlining of named function expressions containing ThisFunction reference. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/ast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698