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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 1605037: Remove some remaining references to boilerplate functions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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/ia32/codegen-ia32.cc ('k') | src/objects.h » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 __ push(Immediate(pairs)); 769 __ push(Immediate(pairs));
770 __ push(Immediate(Smi::FromInt(is_eval() ? 1 : 0))); 770 __ push(Immediate(Smi::FromInt(is_eval() ? 1 : 0)));
771 __ CallRuntime(Runtime::kDeclareGlobals, 3); 771 __ CallRuntime(Runtime::kDeclareGlobals, 3);
772 // Return value is ignored. 772 // Return value is ignored.
773 } 773 }
774 774
775 775
776 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { 776 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) {
777 Comment cmnt(masm_, "[ FunctionLiteral"); 777 Comment cmnt(masm_, "[ FunctionLiteral");
778 778
779 // Build the function boilerplate and instantiate it. 779 // Build the shared function info and instantiate the function based
780 // on it.
780 Handle<SharedFunctionInfo> function_info = 781 Handle<SharedFunctionInfo> function_info =
781 Compiler::BuildFunctionInfo(expr, script(), this); 782 Compiler::BuildFunctionInfo(expr, script(), this);
782 if (HasStackOverflow()) return; 783 if (HasStackOverflow()) return;
783 784
784 // Create a new closure. 785 // Create a new closure.
785 __ push(esi); 786 __ push(esi);
786 __ push(Immediate(function_info)); 787 __ push(Immediate(function_info));
787 __ CallRuntime(Runtime::kNewClosure, 2); 788 __ CallRuntime(Runtime::kNewClosure, 2);
788 Apply(context_, eax); 789 Apply(context_, eax);
789 } 790 }
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 __ add(Operand(edx), Immediate(masm_->CodeObject())); 2005 __ add(Operand(edx), Immediate(masm_->CodeObject()));
2005 __ mov(Operand(esp, 0), edx); 2006 __ mov(Operand(esp, 0), edx);
2006 // And return. 2007 // And return.
2007 __ ret(0); 2008 __ ret(0);
2008 } 2009 }
2009 2010
2010 2011
2011 #undef __ 2012 #undef __
2012 2013
2013 } } // namespace v8::internal 2014 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698