| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 V(ArrayConcat, NO_EXTRA_ARGUMENTS) \ | 55 V(ArrayConcat, NO_EXTRA_ARGUMENTS) \ |
| 56 \ | 56 \ |
| 57 V(HandleApiCall, NEEDS_CALLED_FUNCTION) \ | 57 V(HandleApiCall, NEEDS_CALLED_FUNCTION) \ |
| 58 V(FastHandleApiCall, NO_EXTRA_ARGUMENTS) \ | 58 V(FastHandleApiCall, NO_EXTRA_ARGUMENTS) \ |
| 59 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ | 59 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ |
| 60 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ | 60 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ |
| 61 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) | 61 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) |
| 62 | 62 |
| 63 | 63 |
| 64 // Define list of builtins implemented in assembly. | 64 // Define list of builtins implemented in assembly. |
| 65 #define BUILTIN_LIST_A(V) \ | 65 #define BUILTIN_LIST_A(V) \ |
| 66 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, \ | 66 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, \ |
| 67 Code::kNoExtraICState) \ | 67 Code::kNoExtraICState) \ |
| 68 V(JSConstructCall, BUILTIN, UNINITIALIZED, \ | 68 V(JSConstructCall, BUILTIN, UNINITIALIZED, \ |
| 69 Code::kNoExtraICState) \ | 69 Code::kNoExtraICState) \ |
| 70 V(JSConstructStubCountdown, BUILTIN, UNINITIALIZED, \ | 70 V(JSConstructStubCountdown, BUILTIN, UNINITIALIZED, \ |
| 71 Code::kNoExtraICState) \ | 71 Code::kNoExtraICState) \ |
| 72 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, \ | 72 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, \ |
| 73 Code::kNoExtraICState) \ | 73 Code::kNoExtraICState) \ |
| 74 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, \ | 74 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, \ |
| 75 Code::kNoExtraICState) \ | 75 Code::kNoExtraICState) \ |
| 76 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, \ | 76 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, \ |
| 77 Code::kNoExtraICState) \ | 77 Code::kNoExtraICState) \ |
| 78 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, \ | 78 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, \ |
| 79 Code::kNoExtraICState) \ | 79 Code::kNoExtraICState) \ |
| 80 V(LazyCompile, BUILTIN, UNINITIALIZED, \ | 80 V(LazyCompile, BUILTIN, UNINITIALIZED, \ |
| 81 Code::kNoExtraICState) \ | 81 Code::kNoExtraICState) \ |
| 82 V(LazyRecompile, BUILTIN, UNINITIALIZED, \ | 82 V(LazyRecompile, BUILTIN, UNINITIALIZED, \ |
| 83 Code::kNoExtraICState) \ | 83 Code::kNoExtraICState) \ |
| 84 V(NotifyDeoptimized, BUILTIN, UNINITIALIZED, \ | 84 V(NotifyDeoptimized, BUILTIN, UNINITIALIZED, \ |
| 85 Code::kNoExtraICState) \ | 85 Code::kNoExtraICState) \ |
| 86 V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, \ | 86 V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, \ |
| 87 Code::kNoExtraICState) \ | 87 Code::kNoExtraICState) \ |
| 88 V(NotifyOSR, BUILTIN, UNINITIALIZED, \ | 88 V(NotifyOSR, BUILTIN, UNINITIALIZED, \ |
| 89 Code::kNoExtraICState) \ | 89 Code::kNoExtraICState) \ |
| 90 \ | 90 \ |
| 91 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, \ | 91 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, \ |
| 92 Code::kNoExtraICState) \ | 92 Code::kNoExtraICState) \ |
| 93 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, \ | 93 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, \ |
| 94 Code::kNoExtraICState) \ | 94 Code::kNoExtraICState) \ |
| 95 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, \ | 95 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, \ |
| 96 Code::kNoExtraICState) \ | 96 Code::kNoExtraICState) \ |
| 97 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, \ | 97 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, \ |
| 98 Code::kNoExtraICState) \ | 98 Code::kNoExtraICState) \ |
| 99 \ | 99 \ |
| 100 V(LoadIC_Initialize, LOAD_IC, UNINITIALIZED, \ | 100 V(LoadIC_Initialize, LOAD_IC, UNINITIALIZED, \ |
| 101 Code::kNoExtraICState) \ | 101 Code::kNoExtraICState) \ |
| 102 V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC, \ | 102 V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC, \ |
| 103 Code::kNoExtraICState) \ | 103 Code::kNoExtraICState) \ |
| 104 V(LoadIC_Normal, LOAD_IC, MONOMORPHIC, \ | 104 V(LoadIC_Normal, LOAD_IC, MONOMORPHIC, \ |
| 105 Code::kNoExtraICState) \ | 105 Code::kNoExtraICState) \ |
| 106 V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC, \ | 106 V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC, \ |
| 107 Code::kNoExtraICState) \ | 107 Code::kNoExtraICState) \ |
| 108 V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC, \ | 108 V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC, \ |
| 109 Code::kNoExtraICState) \ | 109 Code::kNoExtraICState) \ |
| 110 V(LoadIC_StringWrapperLength, LOAD_IC, MONOMORPHIC, \ | 110 V(LoadIC_StringWrapperLength, LOAD_IC, MONOMORPHIC, \ |
| 111 Code::kNoExtraICState) \ | 111 Code::kNoExtraICState) \ |
| 112 V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC, \ | 112 V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC, \ |
| 113 Code::kNoExtraICState) \ | 113 Code::kNoExtraICState) \ |
| 114 V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC, \ | 114 V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC, \ |
| 115 Code::kNoExtraICState) \ | 115 Code::kNoExtraICState) \ |
| 116 \ | 116 \ |
| 117 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED, \ | 117 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED, \ |
| 118 Code::kNoExtraICState) \ | 118 Code::kNoExtraICState) \ |
| 119 V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC, \ | 119 V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC, \ |
| 120 Code::kNoExtraICState) \ | 120 Code::kNoExtraICState) \ |
| 121 V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC, \ | 121 V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC, \ |
| 122 Code::kNoExtraICState) \ | 122 Code::kNoExtraICState) \ |
| 123 V(KeyedLoadIC_String, KEYED_LOAD_IC, MEGAMORPHIC, \ | 123 V(KeyedLoadIC_String, KEYED_LOAD_IC, MEGAMORPHIC, \ |
| 124 Code::kNoExtraICState) \ | 124 Code::kNoExtraICState) \ |
| 125 V(KeyedLoadIC_IndexedInterceptor, KEYED_LOAD_IC, MEGAMORPHIC, \ | 125 V(KeyedLoadIC_IndexedInterceptor, KEYED_LOAD_IC, MEGAMORPHIC, \ |
| 126 Code::kNoExtraICState) \ | 126 Code::kNoExtraICState) \ |
| 127 \ | 127 \ |
| 128 V(StoreIC_Initialize, STORE_IC, UNINITIALIZED, \ | 128 V(StoreIC_Initialize, STORE_IC, UNINITIALIZED, \ |
| 129 Code::kNoExtraICState) \ | 129 Code::kNoExtraICState) \ |
| 130 V(StoreIC_ArrayLength, STORE_IC, MONOMORPHIC, \ | 130 V(StoreIC_ArrayLength, STORE_IC, MONOMORPHIC, \ |
| 131 Code::kNoExtraICState) \ | 131 Code::kNoExtraICState) \ |
| 132 V(StoreIC_Normal, STORE_IC, MONOMORPHIC, \ | 132 V(StoreIC_Normal, STORE_IC, MONOMORPHIC, \ |
| 133 Code::kNoExtraICState) \ | 133 Code::kNoExtraICState) \ |
| 134 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC, \ | 134 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC, \ |
| 135 Code::kNoExtraICState) \ | 135 Code::kNoExtraICState) \ |
| 136 V(StoreIC_GlobalProxy, STORE_IC, MEGAMORPHIC, \ | 136 V(StoreIC_GlobalProxy, STORE_IC, MEGAMORPHIC, \ |
| 137 Code::kNoExtraICState) \ | 137 Code::kNoExtraICState) \ |
| 138 V(StoreIC_Initialize_Strict, STORE_IC, UNINITIALIZED, \ | 138 V(StoreIC_Initialize_Strict, STORE_IC, UNINITIALIZED, \ |
| 139 StoreIC::kStoreICStrict) \ | 139 kStrictMode) \ |
| 140 V(StoreIC_ArrayLength_Strict, STORE_IC, MONOMORPHIC, \ | 140 V(StoreIC_ArrayLength_Strict, STORE_IC, MONOMORPHIC, \ |
| 141 StoreIC::kStoreICStrict) \ | 141 kStrictMode) \ |
| 142 V(StoreIC_Normal_Strict, STORE_IC, MONOMORPHIC, \ | 142 V(StoreIC_Normal_Strict, STORE_IC, MONOMORPHIC, \ |
| 143 StoreIC::kStoreICStrict) \ | 143 kStrictMode) \ |
| 144 V(StoreIC_Megamorphic_Strict, STORE_IC, MEGAMORPHIC, \ | 144 V(StoreIC_Megamorphic_Strict, STORE_IC, MEGAMORPHIC, \ |
| 145 StoreIC::kStoreICStrict) \ | 145 kStrictMode) \ |
| 146 V(StoreIC_GlobalProxy_Strict, STORE_IC, MEGAMORPHIC, \ | 146 V(StoreIC_GlobalProxy_Strict, STORE_IC, MEGAMORPHIC, \ |
| 147 StoreIC::kStoreICStrict) \ | 147 kStrictMode) \ |
| 148 \ | 148 \ |
| 149 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, \ | 149 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, \ |
| 150 Code::kNoExtraICState) \ | 150 Code::kNoExtraICState) \ |
| 151 V(KeyedStoreIC_Generic, KEYED_STORE_IC, MEGAMORPHIC, \ | 151 V(KeyedStoreIC_Generic, KEYED_STORE_IC, MEGAMORPHIC, \ |
| 152 Code::kNoExtraICState) \ | 152 Code::kNoExtraICState) \ |
| 153 \ | 153 \ |
| 154 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ | 154 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ |
| 155 V(FunctionCall, BUILTIN, UNINITIALIZED, \ | 155 kStrictMode) \ |
| 156 Code::kNoExtraICState) \ | 156 V(KeyedStoreIC_Generic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \ |
| 157 V(FunctionApply, BUILTIN, UNINITIALIZED, \ | 157 kStrictMode) \ |
| 158 Code::kNoExtraICState) \ | 158 \ |
| 159 \ | 159 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ |
| 160 V(ArrayCode, BUILTIN, UNINITIALIZED, \ | 160 V(FunctionCall, BUILTIN, UNINITIALIZED, \ |
| 161 Code::kNoExtraICState) \ | 161 Code::kNoExtraICState) \ |
| 162 V(ArrayConstructCode, BUILTIN, UNINITIALIZED, \ | 162 V(FunctionApply, BUILTIN, UNINITIALIZED, \ |
| 163 Code::kNoExtraICState) \ | 163 Code::kNoExtraICState) \ |
| 164 \ | 164 \ |
| 165 V(StringConstructCode, BUILTIN, UNINITIALIZED, \ | 165 V(ArrayCode, BUILTIN, UNINITIALIZED, \ |
| 166 Code::kNoExtraICState) \ | 166 Code::kNoExtraICState) \ |
| 167 \ | 167 V(ArrayConstructCode, BUILTIN, UNINITIALIZED, \ |
| 168 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ | 168 Code::kNoExtraICState) \ |
| 169 Code::kNoExtraICState) | 169 \ |
| 170 V(StringConstructCode, BUILTIN, UNINITIALIZED, \ |
| 171 Code::kNoExtraICState) \ |
| 172 \ |
| 173 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ |
| 174 Code::kNoExtraICState) |
| 170 | 175 |
| 171 | 176 |
| 172 #ifdef ENABLE_DEBUGGER_SUPPORT | 177 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 173 // Define list of builtins used by the debugger implemented in assembly. | 178 // Define list of builtins used by the debugger implemented in assembly. |
| 174 #define BUILTIN_LIST_DEBUG_A(V) \ | 179 #define BUILTIN_LIST_DEBUG_A(V) \ |
| 175 V(Return_DebugBreak, BUILTIN, DEBUG_BREAK, \ | 180 V(Return_DebugBreak, BUILTIN, DEBUG_BREAK, \ |
| 176 Code::kNoExtraICState) \ | 181 Code::kNoExtraICState) \ |
| 177 V(ConstructCall_DebugBreak, BUILTIN, DEBUG_BREAK, \ | 182 V(ConstructCall_DebugBreak, BUILTIN, DEBUG_BREAK, \ |
| 178 Code::kNoExtraICState) \ | 183 Code::kNoExtraICState) \ |
| 179 V(StubNoRegisters_DebugBreak, BUILTIN, DEBUG_BREAK, \ | 184 V(StubNoRegisters_DebugBreak, BUILTIN, DEBUG_BREAK, \ |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 static void Generate_ArrayConstructCode(MacroAssembler* masm); | 330 static void Generate_ArrayConstructCode(MacroAssembler* masm); |
| 326 | 331 |
| 327 static void Generate_StringConstructCode(MacroAssembler* masm); | 332 static void Generate_StringConstructCode(MacroAssembler* masm); |
| 328 | 333 |
| 329 static void Generate_OnStackReplacement(MacroAssembler* masm); | 334 static void Generate_OnStackReplacement(MacroAssembler* masm); |
| 330 }; | 335 }; |
| 331 | 336 |
| 332 } } // namespace v8::internal | 337 } } // namespace v8::internal |
| 333 | 338 |
| 334 #endif // V8_BUILTINS_H_ | 339 #endif // V8_BUILTINS_H_ |
| OLD | NEW |