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/builtins.h

Issue 13657: Moved the code generation for debug break stubs from builtins* to debug*. Fro... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years 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/SConscript ('k') | src/builtins.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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 static Address c_function_address(CFunctionId id) { 182 static Address c_function_address(CFunctionId id) {
183 return c_functions_[id]; 183 return c_functions_[id];
184 } 184 }
185 185
186 static const char* GetName(JavaScript id) { return javascript_names_[id]; } 186 static const char* GetName(JavaScript id) { return javascript_names_[id]; }
187 static int GetArgumentsCount(JavaScript id) { return javascript_argc_[id]; } 187 static int GetArgumentsCount(JavaScript id) { return javascript_argc_[id]; }
188 static Handle<Code> GetCode(JavaScript id, bool* resolved); 188 static Handle<Code> GetCode(JavaScript id, bool* resolved);
189 static int NumberOfJavaScriptBuiltins() { return id_count; } 189 static int NumberOfJavaScriptBuiltins() { return id_count; }
190 190
191 // Called from stub-cache.cc.
192 static void Generate_CallIC_DebugBreak(MacroAssembler* masm);
193
194 static Object* builtin_passed_function; 191 static Object* builtin_passed_function;
195 192
196 private: 193 private:
197 // The external C++ functions called from the code. 194 // The external C++ functions called from the code.
198 static Address c_functions_[cfunction_count]; 195 static Address c_functions_[cfunction_count];
199 196
200 // Note: These are always Code objects, but to conform with 197 // Note: These are always Code objects, but to conform with
201 // IterateBuiltins() above which assumes Object**'s for the callback 198 // IterateBuiltins() above which assumes Object**'s for the callback
202 // function f, we use an Object* array here. 199 // function f, we use an Object* array here.
203 static Object* builtins_[builtin_count]; 200 static Object* builtins_[builtin_count];
204 static const char* names_[builtin_count]; 201 static const char* names_[builtin_count];
205 static const char* javascript_names_[id_count]; 202 static const char* javascript_names_[id_count];
206 static int javascript_argc_[id_count]; 203 static int javascript_argc_[id_count];
207 204
208 static void Generate_Adaptor(MacroAssembler* masm, CFunctionId id); 205 static void Generate_Adaptor(MacroAssembler* masm, CFunctionId id);
209 static void Generate_JSConstructCall(MacroAssembler* masm); 206 static void Generate_JSConstructCall(MacroAssembler* masm);
210 static void Generate_JSEntryTrampoline(MacroAssembler* masm); 207 static void Generate_JSEntryTrampoline(MacroAssembler* masm);
211 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); 208 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm);
212 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); 209 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm);
213 210
214 static void Generate_FunctionCall(MacroAssembler* masm); 211 static void Generate_FunctionCall(MacroAssembler* masm);
215 static void Generate_FunctionApply(MacroAssembler* masm); 212 static void Generate_FunctionApply(MacroAssembler* masm);
216
217 static void Generate_LoadIC_DebugBreak(MacroAssembler* masm);
218 static void Generate_StoreIC_DebugBreak(MacroAssembler* masm);
219 static void Generate_KeyedLoadIC_DebugBreak(MacroAssembler* masm);
220 static void Generate_KeyedStoreIC_DebugBreak(MacroAssembler* masm);
221 static void Generate_ConstructCall_DebugBreak(MacroAssembler* masm);
222 static void Generate_Return_DebugBreak(MacroAssembler* masm);
223 static void Generate_Return_DebugBreakEntry(MacroAssembler* masm);
224 static void Generate_StubNoRegisters_DebugBreak(MacroAssembler* masm);
225 }; 213 };
226 214
227 } } // namespace v8::internal 215 } } // namespace v8::internal
228 216
229 #endif // V8_BUILTINS_H_ 217 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698