kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 1 | // Copyright 2010 the V8 project authors. All rights reserved. |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 2 | // Redistribution and use in source and binary forms, with or without |
| 3 | // modification, are permitted provided that the following conditions are |
| 4 | // met: |
| 5 | // |
| 6 | // * Redistributions of source code must retain the above copyright |
| 7 | // notice, this list of conditions and the following disclaimer. |
| 8 | // * Redistributions in binary form must reproduce the above |
| 9 | // copyright notice, this list of conditions and the following |
| 10 | // disclaimer in the documentation and/or other materials provided |
| 11 | // with the distribution. |
| 12 | // * Neither the name of Google Inc. nor the names of its |
| 13 | // contributors may be used to endorse or promote products derived |
| 14 | // from this software without specific prior written permission. |
| 15 | // |
| 16 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | #ifndef V8_BUILTINS_H_ |
| 29 | #define V8_BUILTINS_H_ |
| 30 | |
kasperl@chromium.org | 71affb5 | 2009-05-26 05:44:31 +0000 | [diff] [blame] | 31 | namespace v8 { |
| 32 | namespace internal { |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 33 | |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 34 | // Specifies extra arguments required by a C++ builtin. |
| 35 | enum BuiltinExtraArguments { |
| 36 | NO_EXTRA_ARGUMENTS = 0, |
| 37 | NEEDS_CALLED_FUNCTION = 1 |
| 38 | }; |
| 39 | |
| 40 | |
| 41 | // Define list of builtins implemented in C++. |
| 42 | #define BUILTIN_LIST_C(V) \ |
| 43 | V(Illegal, NO_EXTRA_ARGUMENTS) \ |
| 44 | \ |
| 45 | V(EmptyFunction, NO_EXTRA_ARGUMENTS) \ |
| 46 | \ |
| 47 | V(ArrayCodeGeneric, NO_EXTRA_ARGUMENTS) \ |
| 48 | \ |
| 49 | V(ArrayPush, NO_EXTRA_ARGUMENTS) \ |
| 50 | V(ArrayPop, NO_EXTRA_ARGUMENTS) \ |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 51 | V(ArrayShift, NO_EXTRA_ARGUMENTS) \ |
| 52 | V(ArrayUnshift, NO_EXTRA_ARGUMENTS) \ |
| 53 | V(ArraySlice, NO_EXTRA_ARGUMENTS) \ |
| 54 | V(ArraySplice, NO_EXTRA_ARGUMENTS) \ |
fschneider@chromium.org | 086aac6 | 2010-03-17 13:18:24 +0000 | [diff] [blame] | 55 | V(ArrayConcat, NO_EXTRA_ARGUMENTS) \ |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 56 | \ |
| 57 | V(HandleApiCall, NEEDS_CALLED_FUNCTION) \ |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 58 | V(FastHandleApiCall, NO_EXTRA_ARGUMENTS) \ |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 59 | V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ |
| 60 | V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ |
| 61 | V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 62 | |
| 63 | |
| 64 | // Define list of builtins implemented in assembly. |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 65 | #define BUILTIN_LIST_A(V) \ |
| 66 | V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED) \ |
| 67 | V(JSConstructCall, BUILTIN, UNINITIALIZED) \ |
whesse@chromium.org | 4a1fe7d | 2010-09-27 12:32:04 +0000 | [diff] [blame] | 68 | V(JSConstructStubCountdown, BUILTIN, UNINITIALIZED) \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 69 | V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED) \ |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 70 | V(JSConstructStubApi, BUILTIN, UNINITIALIZED) \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 71 | V(JSEntryTrampoline, BUILTIN, UNINITIALIZED) \ |
| 72 | V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED) \ |
ager@chromium.org | ea4f62e | 2010-08-16 16:28:43 +0000 | [diff] [blame] | 73 | V(LazyCompile, BUILTIN, UNINITIALIZED) \ |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 74 | V(LazyRecompile, BUILTIN, UNINITIALIZED) \ |
| 75 | V(NotifyDeoptimized, BUILTIN, UNINITIALIZED) \ |
| 76 | V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED) \ |
| 77 | V(NotifyOSR, BUILTIN, UNINITIALIZED) \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 78 | \ |
| 79 | V(LoadIC_Miss, BUILTIN, UNINITIALIZED) \ |
| 80 | V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED) \ |
| 81 | V(StoreIC_Miss, BUILTIN, UNINITIALIZED) \ |
| 82 | V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED) \ |
| 83 | \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 84 | V(LoadIC_Initialize, LOAD_IC, UNINITIALIZED) \ |
| 85 | V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC) \ |
| 86 | V(LoadIC_Normal, LOAD_IC, MONOMORPHIC) \ |
| 87 | V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC) \ |
| 88 | V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC) \ |
ager@chromium.org | 378b34e | 2011-01-28 08:04:38 +0000 | [diff] [blame] | 89 | V(LoadIC_StringWrapperLength, LOAD_IC, MONOMORPHIC) \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 90 | V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC) \ |
| 91 | V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC) \ |
| 92 | \ |
| 93 | V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED) \ |
| 94 | V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC) \ |
| 95 | V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC) \ |
fschneider@chromium.org | 0c20e67 | 2010-01-14 15:28:53 +0000 | [diff] [blame] | 96 | V(KeyedLoadIC_String, KEYED_LOAD_IC, MEGAMORPHIC) \ |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 97 | V(KeyedLoadIC_IndexedInterceptor, KEYED_LOAD_IC, MEGAMORPHIC) \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 98 | \ |
| 99 | V(StoreIC_Initialize, STORE_IC, UNINITIALIZED) \ |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 100 | V(StoreIC_ArrayLength, STORE_IC, MONOMORPHIC) \ |
kmillikin@chromium.org | 69ea396 | 2010-07-05 11:01:40 +0000 | [diff] [blame] | 101 | V(StoreIC_Normal, STORE_IC, MONOMORPHIC) \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 102 | V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC) \ |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 103 | V(StoreIC_GlobalProxy, STORE_IC, MEGAMORPHIC) \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 104 | \ |
| 105 | V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED) \ |
| 106 | V(KeyedStoreIC_Generic, KEYED_STORE_IC, MEGAMORPHIC) \ |
ager@chromium.org | 3811b43 | 2009-10-28 14:53:37 +0000 | [diff] [blame] | 107 | \ |
| 108 | /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ |
| 109 | V(FunctionCall, BUILTIN, UNINITIALIZED) \ |
| 110 | V(FunctionApply, BUILTIN, UNINITIALIZED) \ |
| 111 | \ |
| 112 | V(ArrayCode, BUILTIN, UNINITIALIZED) \ |
ricow@chromium.org | d236f4d | 2010-09-01 06:52:08 +0000 | [diff] [blame] | 113 | V(ArrayConstructCode, BUILTIN, UNINITIALIZED) \ |
| 114 | \ |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 115 | V(StringConstructCode, BUILTIN, UNINITIALIZED) \ |
| 116 | \ |
| 117 | V(OnStackReplacement, BUILTIN, UNINITIALIZED) |
ricow@chromium.org | d236f4d | 2010-09-01 06:52:08 +0000 | [diff] [blame] | 118 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 119 | |
ager@chromium.org | 65dad4b | 2009-04-23 08:48:43 +0000 | [diff] [blame] | 120 | #ifdef ENABLE_DEBUGGER_SUPPORT |
ager@chromium.org | 8bb6058 | 2008-12-11 12:02:20 +0000 | [diff] [blame] | 121 | // Define list of builtins used by the debugger implemented in assembly. |
| 122 | #define BUILTIN_LIST_DEBUG_A(V) \ |
| 123 | V(Return_DebugBreak, BUILTIN, DEBUG_BREAK) \ |
ager@chromium.org | 8bb6058 | 2008-12-11 12:02:20 +0000 | [diff] [blame] | 124 | V(ConstructCall_DebugBreak, BUILTIN, DEBUG_BREAK) \ |
| 125 | V(StubNoRegisters_DebugBreak, BUILTIN, DEBUG_BREAK) \ |
| 126 | V(LoadIC_DebugBreak, LOAD_IC, DEBUG_BREAK) \ |
| 127 | V(KeyedLoadIC_DebugBreak, KEYED_LOAD_IC, DEBUG_BREAK) \ |
| 128 | V(StoreIC_DebugBreak, STORE_IC, DEBUG_BREAK) \ |
ager@chromium.org | 357bf65 | 2010-04-12 11:30:10 +0000 | [diff] [blame] | 129 | V(KeyedStoreIC_DebugBreak, KEYED_STORE_IC, DEBUG_BREAK) \ |
vegorov@chromium.org | 2356e6f | 2010-06-09 09:38:56 +0000 | [diff] [blame] | 130 | V(Slot_DebugBreak, BUILTIN, DEBUG_BREAK) \ |
ager@chromium.org | 357bf65 | 2010-04-12 11:30:10 +0000 | [diff] [blame] | 131 | V(PlainReturn_LiveEdit, BUILTIN, DEBUG_BREAK) \ |
| 132 | V(FrameDropper_LiveEdit, BUILTIN, DEBUG_BREAK) |
ager@chromium.org | 65dad4b | 2009-04-23 08:48:43 +0000 | [diff] [blame] | 133 | #else |
| 134 | #define BUILTIN_LIST_DEBUG_A(V) |
| 135 | #endif |
ager@chromium.org | 8bb6058 | 2008-12-11 12:02:20 +0000 | [diff] [blame] | 136 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 137 | // Define list of builtins implemented in JavaScript. |
sgjesse@chromium.org | 05521fc | 2009-05-21 07:37:44 +0000 | [diff] [blame] | 138 | #define BUILTINS_LIST_JS(V) \ |
| 139 | V(EQUALS, 1) \ |
| 140 | V(STRICT_EQUALS, 1) \ |
| 141 | V(COMPARE, 2) \ |
| 142 | V(ADD, 1) \ |
| 143 | V(SUB, 1) \ |
| 144 | V(MUL, 1) \ |
| 145 | V(DIV, 1) \ |
| 146 | V(MOD, 1) \ |
| 147 | V(BIT_OR, 1) \ |
| 148 | V(BIT_AND, 1) \ |
| 149 | V(BIT_XOR, 1) \ |
| 150 | V(UNARY_MINUS, 0) \ |
| 151 | V(BIT_NOT, 0) \ |
| 152 | V(SHL, 1) \ |
| 153 | V(SAR, 1) \ |
| 154 | V(SHR, 1) \ |
| 155 | V(DELETE, 1) \ |
| 156 | V(IN, 1) \ |
| 157 | V(INSTANCE_OF, 1) \ |
| 158 | V(GET_KEYS, 0) \ |
| 159 | V(FILTER_KEY, 1) \ |
| 160 | V(CALL_NON_FUNCTION, 0) \ |
| 161 | V(CALL_NON_FUNCTION_AS_CONSTRUCTOR, 0) \ |
| 162 | V(TO_OBJECT, 0) \ |
| 163 | V(TO_NUMBER, 0) \ |
| 164 | V(TO_STRING, 0) \ |
| 165 | V(STRING_ADD_LEFT, 1) \ |
| 166 | V(STRING_ADD_RIGHT, 1) \ |
| 167 | V(APPLY_PREPARE, 1) \ |
ager@chromium.org | ac091b7 | 2010-05-05 07:34:42 +0000 | [diff] [blame] | 168 | V(APPLY_OVERFLOW, 1) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 169 | |
| 170 | |
| 171 | class ObjectVisitor; |
| 172 | |
| 173 | |
| 174 | class Builtins : public AllStatic { |
| 175 | public: |
| 176 | // Generate all builtin code objects. Should be called once during |
| 177 | // VM initialization. |
| 178 | static void Setup(bool create_heap_objects); |
| 179 | static void TearDown(); |
| 180 | |
| 181 | // Garbage collection support. |
| 182 | static void IterateBuiltins(ObjectVisitor* v); |
| 183 | |
| 184 | // Disassembler support. |
| 185 | static const char* Lookup(byte* pc); |
| 186 | |
| 187 | enum Name { |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 188 | #define DEF_ENUM_C(name, ignore) name, |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 189 | #define DEF_ENUM_A(name, kind, state) name, |
| 190 | BUILTIN_LIST_C(DEF_ENUM_C) |
| 191 | BUILTIN_LIST_A(DEF_ENUM_A) |
ager@chromium.org | 8bb6058 | 2008-12-11 12:02:20 +0000 | [diff] [blame] | 192 | BUILTIN_LIST_DEBUG_A(DEF_ENUM_A) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 193 | #undef DEF_ENUM_C |
| 194 | #undef DEF_ENUM_A |
| 195 | builtin_count |
| 196 | }; |
| 197 | |
| 198 | enum CFunctionId { |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 199 | #define DEF_ENUM_C(name, ignore) c_##name, |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 200 | BUILTIN_LIST_C(DEF_ENUM_C) |
| 201 | #undef DEF_ENUM_C |
| 202 | cfunction_count |
| 203 | }; |
| 204 | |
| 205 | enum JavaScript { |
| 206 | #define DEF_ENUM(name, ignore) name, |
| 207 | BUILTINS_LIST_JS(DEF_ENUM) |
| 208 | #undef DEF_ENUM |
| 209 | id_count |
| 210 | }; |
| 211 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 212 | static Code* builtin(Name name) { |
| 213 | // Code::cast cannot be used here since we access builtins |
| 214 | // during the marking phase of mark sweep. See IC::Clear. |
| 215 | return reinterpret_cast<Code*>(builtins_[name]); |
| 216 | } |
| 217 | |
| 218 | static Address builtin_address(Name name) { |
| 219 | return reinterpret_cast<Address>(&builtins_[name]); |
| 220 | } |
| 221 | |
| 222 | static Address c_function_address(CFunctionId id) { |
| 223 | return c_functions_[id]; |
| 224 | } |
| 225 | |
| 226 | static const char* GetName(JavaScript id) { return javascript_names_[id]; } |
| 227 | static int GetArgumentsCount(JavaScript id) { return javascript_argc_[id]; } |
kasperl@chromium.org | b912362 | 2008-09-17 14:05:56 +0000 | [diff] [blame] | 228 | static Handle<Code> GetCode(JavaScript id, bool* resolved); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 229 | static int NumberOfJavaScriptBuiltins() { return id_count; } |
| 230 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 231 | private: |
| 232 | // The external C++ functions called from the code. |
| 233 | static Address c_functions_[cfunction_count]; |
| 234 | |
| 235 | // Note: These are always Code objects, but to conform with |
| 236 | // IterateBuiltins() above which assumes Object**'s for the callback |
| 237 | // function f, we use an Object* array here. |
| 238 | static Object* builtins_[builtin_count]; |
| 239 | static const char* names_[builtin_count]; |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 240 | static const char* javascript_names_[id_count]; |
| 241 | static int javascript_argc_[id_count]; |
| 242 | |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 243 | static void Generate_Adaptor(MacroAssembler* masm, |
| 244 | CFunctionId id, |
| 245 | BuiltinExtraArguments extra_args); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 246 | static void Generate_JSConstructCall(MacroAssembler* masm); |
whesse@chromium.org | 4a1fe7d | 2010-09-27 12:32:04 +0000 | [diff] [blame] | 247 | static void Generate_JSConstructStubCountdown(MacroAssembler* masm); |
ager@chromium.org | 5aa501c | 2009-06-23 07:57:28 +0000 | [diff] [blame] | 248 | static void Generate_JSConstructStubGeneric(MacroAssembler* masm); |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 249 | static void Generate_JSConstructStubApi(MacroAssembler* masm); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 250 | static void Generate_JSEntryTrampoline(MacroAssembler* masm); |
| 251 | static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); |
ager@chromium.org | ea4f62e | 2010-08-16 16:28:43 +0000 | [diff] [blame] | 252 | static void Generate_LazyCompile(MacroAssembler* masm); |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 253 | static void Generate_LazyRecompile(MacroAssembler* masm); |
| 254 | static void Generate_NotifyDeoptimized(MacroAssembler* masm); |
| 255 | static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); |
| 256 | static void Generate_NotifyOSR(MacroAssembler* masm); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 257 | static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
kasperl@chromium.org | b912362 | 2008-09-17 14:05:56 +0000 | [diff] [blame] | 258 | |
| 259 | static void Generate_FunctionCall(MacroAssembler* masm); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 260 | static void Generate_FunctionApply(MacroAssembler* masm); |
christian.plesner.hansen@gmail.com | 2bc58ef | 2009-09-22 10:00:30 +0000 | [diff] [blame] | 261 | |
| 262 | static void Generate_ArrayCode(MacroAssembler* masm); |
| 263 | static void Generate_ArrayConstructCode(MacroAssembler* masm); |
ricow@chromium.org | d236f4d | 2010-09-01 06:52:08 +0000 | [diff] [blame] | 264 | |
| 265 | static void Generate_StringConstructCode(MacroAssembler* masm); |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 266 | |
| 267 | static void Generate_OnStackReplacement(MacroAssembler* masm); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 268 | }; |
| 269 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 270 | } } // namespace v8::internal |
| 271 | |
| 272 | #endif // V8_BUILTINS_H_ |