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

Side by Side Diff: src/codegen.h

Issue 2850: Generalize the Function.prototype.call hooks in the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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/builtins-ia32.cc ('k') | src/codegen.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 bool CheckForInlineRuntimeCall(CallRuntime* node); 140 bool CheckForInlineRuntimeCall(CallRuntime* node);
141 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); 141 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node);
142 void ProcessDeclarations(ZoneList<Declaration*>* declarations); 142 void ProcessDeclarations(ZoneList<Declaration*>* declarations);
143 143
144 Handle<Code> ComputeCallInitialize(int argc); 144 Handle<Code> ComputeCallInitialize(int argc);
145 145
146 // Declare global variables and functions in the given array of 146 // Declare global variables and functions in the given array of
147 // name/value pairs. 147 // name/value pairs.
148 virtual void DeclareGlobals(Handle<FixedArray> pairs) = 0; 148 virtual void DeclareGlobals(Handle<FixedArray> pairs) = 0;
149 149
150 virtual void GenerateShiftDownAndTailCall(ZoneList<Expression*>* args) = 0; 150 // Support for type checks.
151 virtual void GenerateSetThisFunction(ZoneList<Expression*>* args) = 0;
152 virtual void GenerateGetThisFunction(ZoneList<Expression*>* args) = 0;
153 virtual void GenerateSetThis(ZoneList<Expression*>* args) = 0;
154 virtual void GenerateGetArgumentsLength(ZoneList<Expression*>* args) = 0;
155 virtual void GenerateSetArgumentsLength(ZoneList<Expression*>* args) = 0;
156 virtual void GenerateTailCallWithArguments(ZoneList<Expression*>* args) = 0;
157 virtual void GenerateSetArgument(ZoneList<Expression*>* args) = 0;
158 virtual void GenerateSquashFrame(ZoneList<Expression*>* args) = 0;
159 virtual void GenerateExpandFrame(ZoneList<Expression*>* args) = 0;
160 virtual void GenerateIsSmi(ZoneList<Expression*>* args) = 0; 151 virtual void GenerateIsSmi(ZoneList<Expression*>* args) = 0;
161 virtual void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args) = 0; 152 virtual void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args) = 0;
162 virtual void GenerateIsArray(ZoneList<Expression*>* args) = 0; 153 virtual void GenerateIsArray(ZoneList<Expression*>* args) = 0;
163 154
164 // Support for arguments.length and arguments[?]. 155 // Support for arguments.length and arguments[?].
165 virtual void GenerateArgumentsLength(ZoneList<Expression*>* args) = 0; 156 virtual void GenerateArgumentsLength(ZoneList<Expression*>* args) = 0;
166 virtual void GenerateArgumentsAccess(ZoneList<Expression*>* args) = 0; 157 virtual void GenerateArgumentsAccess(ZoneList<Expression*>* args) = 0;
167 158
168 // Support for accessing the value field of an object (used by Date). 159 // Support for accessing the value field of an object (used by Date).
169 virtual void GenerateValueOf(ZoneList<Expression*>* args) = 0; 160 virtual void GenerateValueOf(ZoneList<Expression*>* args) = 0;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 int MinorKey() { return 1; } 302 int MinorKey() { return 1; }
312 303
313 const char* GetName() { return "JSConstructEntryStub"; } 304 const char* GetName() { return "JSConstructEntryStub"; }
314 }; 305 };
315 306
316 307
317 } // namespace internal 308 } // namespace internal
318 } // namespace v8 309 } // namespace v8
319 310
320 #endif // V8_CODEGEN_H_ 311 #endif // V8_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/builtins-ia32.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698