OLD | NEW |
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 \ | 44 \ |
45 V(HandleApiCall) \ | 45 V(HandleApiCall) \ |
46 V(HandleApiCallAsFunction) \ | 46 V(HandleApiCallAsFunction) \ |
47 V(HandleApiCallAsConstructor) | 47 V(HandleApiCallAsConstructor) |
48 | 48 |
49 | 49 |
50 // Define list of builtins implemented in assembly. | 50 // Define list of builtins implemented in assembly. |
51 #define BUILTIN_LIST_A(V) \ | 51 #define BUILTIN_LIST_A(V) \ |
52 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED) \ | 52 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED) \ |
53 V(JSConstructCall, BUILTIN, UNINITIALIZED) \ | 53 V(JSConstructCall, BUILTIN, UNINITIALIZED) \ |
| 54 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED) \ |
54 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED) \ | 55 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED) \ |
55 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED) \ | 56 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED) \ |
56 \ | 57 \ |
57 V(LoadIC_Miss, BUILTIN, UNINITIALIZED) \ | 58 V(LoadIC_Miss, BUILTIN, UNINITIALIZED) \ |
58 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED) \ | 59 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED) \ |
59 V(StoreIC_Miss, BUILTIN, UNINITIALIZED) \ | 60 V(StoreIC_Miss, BUILTIN, UNINITIALIZED) \ |
60 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED) \ | 61 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED) \ |
61 \ | 62 \ |
62 V(StoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ | 63 V(StoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ |
63 V(KeyedStoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ | 64 V(KeyedStoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // Note: These are always Code objects, but to conform with | 204 // Note: These are always Code objects, but to conform with |
204 // IterateBuiltins() above which assumes Object**'s for the callback | 205 // IterateBuiltins() above which assumes Object**'s for the callback |
205 // function f, we use an Object* array here. | 206 // function f, we use an Object* array here. |
206 static Object* builtins_[builtin_count]; | 207 static Object* builtins_[builtin_count]; |
207 static const char* names_[builtin_count]; | 208 static const char* names_[builtin_count]; |
208 static const char* javascript_names_[id_count]; | 209 static const char* javascript_names_[id_count]; |
209 static int javascript_argc_[id_count]; | 210 static int javascript_argc_[id_count]; |
210 | 211 |
211 static void Generate_Adaptor(MacroAssembler* masm, CFunctionId id); | 212 static void Generate_Adaptor(MacroAssembler* masm, CFunctionId id); |
212 static void Generate_JSConstructCall(MacroAssembler* masm); | 213 static void Generate_JSConstructCall(MacroAssembler* masm); |
| 214 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); |
213 static void Generate_JSEntryTrampoline(MacroAssembler* masm); | 215 static void Generate_JSEntryTrampoline(MacroAssembler* masm); |
214 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); | 216 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); |
215 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); | 217 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
216 | 218 |
217 static void Generate_FunctionCall(MacroAssembler* masm); | 219 static void Generate_FunctionCall(MacroAssembler* masm); |
218 static void Generate_FunctionApply(MacroAssembler* masm); | 220 static void Generate_FunctionApply(MacroAssembler* masm); |
219 }; | 221 }; |
220 | 222 |
221 } } // namespace v8::internal | 223 } } // namespace v8::internal |
222 | 224 |
223 #endif // V8_BUILTINS_H_ | 225 #endif // V8_BUILTINS_H_ |
OLD | NEW |