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 30 matching lines...) Expand all Loading... |
41 \ | 41 \ |
42 V(ArrayPush) \ | 42 V(ArrayPush) \ |
43 V(ArrayPop) \ | 43 V(ArrayPop) \ |
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(JSConstructStubGeneric, BUILTIN, UNINITIALIZED) \ |
55 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED) \ | 55 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED) \ |
56 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED) \ | 56 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED) \ |
57 \ | 57 \ |
58 V(LoadIC_Miss, BUILTIN, UNINITIALIZED) \ | 58 V(LoadIC_Miss, BUILTIN, UNINITIALIZED) \ |
59 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED) \ | 59 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED) \ |
60 V(StoreIC_Miss, BUILTIN, UNINITIALIZED) \ | 60 V(StoreIC_Miss, BUILTIN, UNINITIALIZED) \ |
61 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED) \ | 61 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED) \ |
62 \ | 62 \ |
63 V(StoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ | 63 V(StoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ |
64 V(KeyedStoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ | 64 V(KeyedStoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ |
65 \ | 65 \ |
66 V(LoadIC_Initialize, LOAD_IC, UNINITIALIZED) \ | 66 V(LoadIC_Initialize, LOAD_IC, UNINITIALIZED) \ |
67 V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC) \ | 67 V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC) \ |
68 V(LoadIC_Normal, LOAD_IC, MONOMORPHIC) \ | 68 V(LoadIC_Normal, LOAD_IC, MONOMORPHIC) \ |
69 V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC) \ | 69 V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC) \ |
70 V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC) \ | 70 V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC) \ |
71 V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC) \ | 71 V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC) \ |
72 V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC) \ | 72 V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC) \ |
73 \ | 73 \ |
74 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED) \ | 74 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED) \ |
75 V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC) \ | 75 V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC) \ |
76 V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC) \ | 76 V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC) \ |
77 \ | 77 V(KeyedLoadIC_ExternalByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
78 V(StoreIC_Initialize, STORE_IC, UNINITIALIZED) \ | 78 V(KeyedLoadIC_ExternalUnsignedByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
79 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC) \ | 79 V(KeyedLoadIC_ExternalShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
80 \ | 80 V(KeyedLoadIC_ExternalUnsignedShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
81 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED) \ | 81 V(KeyedLoadIC_ExternalIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
82 V(KeyedStoreIC_Generic, KEYED_STORE_IC, MEGAMORPHIC) \ | 82 V(KeyedLoadIC_ExternalUnsignedIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
83 \ | 83 V(KeyedLoadIC_ExternalFloatArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
84 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ | 84 \ |
85 V(FunctionCall, BUILTIN, UNINITIALIZED) \ | 85 V(StoreIC_Initialize, STORE_IC, UNINITIALIZED) \ |
86 V(FunctionApply, BUILTIN, UNINITIALIZED) \ | 86 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC) \ |
87 \ | 87 \ |
88 V(ArrayCode, BUILTIN, UNINITIALIZED) \ | 88 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED) \ |
| 89 V(KeyedStoreIC_Generic, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 90 V(KeyedStoreIC_ExternalByteArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 91 V(KeyedStoreIC_ExternalUnsignedByteArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 92 V(KeyedStoreIC_ExternalShortArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 93 V(KeyedStoreIC_ExternalUnsignedShortArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 94 V(KeyedStoreIC_ExternalIntArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 95 V(KeyedStoreIC_ExternalUnsignedIntArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 96 V(KeyedStoreIC_ExternalFloatArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 97 \ |
| 98 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ |
| 99 V(FunctionCall, BUILTIN, UNINITIALIZED) \ |
| 100 V(FunctionApply, BUILTIN, UNINITIALIZED) \ |
| 101 \ |
| 102 V(ArrayCode, BUILTIN, UNINITIALIZED) \ |
89 V(ArrayConstructCode, BUILTIN, UNINITIALIZED) | 103 V(ArrayConstructCode, BUILTIN, UNINITIALIZED) |
90 | 104 |
91 #ifdef ENABLE_DEBUGGER_SUPPORT | 105 #ifdef ENABLE_DEBUGGER_SUPPORT |
92 // Define list of builtins used by the debugger implemented in assembly. | 106 // Define list of builtins used by the debugger implemented in assembly. |
93 #define BUILTIN_LIST_DEBUG_A(V) \ | 107 #define BUILTIN_LIST_DEBUG_A(V) \ |
94 V(Return_DebugBreak, BUILTIN, DEBUG_BREAK) \ | 108 V(Return_DebugBreak, BUILTIN, DEBUG_BREAK) \ |
95 V(ConstructCall_DebugBreak, BUILTIN, DEBUG_BREAK) \ | 109 V(ConstructCall_DebugBreak, BUILTIN, DEBUG_BREAK) \ |
96 V(StubNoRegisters_DebugBreak, BUILTIN, DEBUG_BREAK) \ | 110 V(StubNoRegisters_DebugBreak, BUILTIN, DEBUG_BREAK) \ |
97 V(LoadIC_DebugBreak, LOAD_IC, DEBUG_BREAK) \ | 111 V(LoadIC_DebugBreak, LOAD_IC, DEBUG_BREAK) \ |
98 V(KeyedLoadIC_DebugBreak, KEYED_LOAD_IC, DEBUG_BREAK) \ | 112 V(KeyedLoadIC_DebugBreak, KEYED_LOAD_IC, DEBUG_BREAK) \ |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 static void Generate_FunctionCall(MacroAssembler* masm); | 234 static void Generate_FunctionCall(MacroAssembler* masm); |
221 static void Generate_FunctionApply(MacroAssembler* masm); | 235 static void Generate_FunctionApply(MacroAssembler* masm); |
222 | 236 |
223 static void Generate_ArrayCode(MacroAssembler* masm); | 237 static void Generate_ArrayCode(MacroAssembler* masm); |
224 static void Generate_ArrayConstructCode(MacroAssembler* masm); | 238 static void Generate_ArrayConstructCode(MacroAssembler* masm); |
225 }; | 239 }; |
226 | 240 |
227 } } // namespace v8::internal | 241 } } // namespace v8::internal |
228 | 242 |
229 #endif // V8_BUILTINS_H_ | 243 #endif // V8_BUILTINS_H_ |
OLD | NEW |