OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 191 matching lines...) Loading... |
202 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ | 202 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ |
203 V(FunctionCall, BUILTIN, UNINITIALIZED, \ | 203 V(FunctionCall, BUILTIN, UNINITIALIZED, \ |
204 Code::kNoExtraICState) \ | 204 Code::kNoExtraICState) \ |
205 V(FunctionApply, BUILTIN, UNINITIALIZED, \ | 205 V(FunctionApply, BUILTIN, UNINITIALIZED, \ |
206 Code::kNoExtraICState) \ | 206 Code::kNoExtraICState) \ |
207 \ | 207 \ |
208 V(InternalArrayCode, BUILTIN, UNINITIALIZED, \ | 208 V(InternalArrayCode, BUILTIN, UNINITIALIZED, \ |
209 Code::kNoExtraICState) \ | 209 Code::kNoExtraICState) \ |
210 V(ArrayCode, BUILTIN, UNINITIALIZED, \ | 210 V(ArrayCode, BUILTIN, UNINITIALIZED, \ |
211 Code::kNoExtraICState) \ | 211 Code::kNoExtraICState) \ |
212 V(CommonArrayConstructCode, BUILTIN, UNINITIALIZED, \ | |
213 Code::kNoExtraICState) \ | |
214 \ | 212 \ |
215 V(StringConstructCode, BUILTIN, UNINITIALIZED, \ | 213 V(StringConstructCode, BUILTIN, UNINITIALIZED, \ |
216 Code::kNoExtraICState) \ | 214 Code::kNoExtraICState) \ |
217 \ | 215 \ |
218 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ | 216 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ |
219 Code::kNoExtraICState) \ | 217 Code::kNoExtraICState) \ |
220 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 218 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
221 | 219 |
222 #ifdef ENABLE_DEBUGGER_SUPPORT | 220 #ifdef ENABLE_DEBUGGER_SUPPORT |
223 // Define list of builtins used by the debugger implemented in assembly. | 221 // Define list of builtins used by the debugger implemented in assembly. |
(...skipping 168 matching lines...) Loading... |
392 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); | 390 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); |
393 static void Generate_NotifyOSR(MacroAssembler* masm); | 391 static void Generate_NotifyOSR(MacroAssembler* masm); |
394 static void Generate_NotifyStubFailure(MacroAssembler* masm); | 392 static void Generate_NotifyStubFailure(MacroAssembler* masm); |
395 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); | 393 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
396 | 394 |
397 static void Generate_FunctionCall(MacroAssembler* masm); | 395 static void Generate_FunctionCall(MacroAssembler* masm); |
398 static void Generate_FunctionApply(MacroAssembler* masm); | 396 static void Generate_FunctionApply(MacroAssembler* masm); |
399 | 397 |
400 static void Generate_InternalArrayCode(MacroAssembler* masm); | 398 static void Generate_InternalArrayCode(MacroAssembler* masm); |
401 static void Generate_ArrayCode(MacroAssembler* masm); | 399 static void Generate_ArrayCode(MacroAssembler* masm); |
402 static void Generate_CommonArrayConstructCode(MacroAssembler* masm); | |
403 | 400 |
404 static void Generate_StringConstructCode(MacroAssembler* masm); | 401 static void Generate_StringConstructCode(MacroAssembler* masm); |
405 static void Generate_OnStackReplacement(MacroAssembler* masm); | 402 static void Generate_OnStackReplacement(MacroAssembler* masm); |
406 | 403 |
407 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 404 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
408 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ | 405 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ |
409 MacroAssembler* masm); \ | 406 MacroAssembler* masm); \ |
410 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 407 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
411 MacroAssembler* masm); | 408 MacroAssembler* masm); |
412 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 409 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
413 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 410 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
414 | 411 |
415 static void InitBuiltinFunctionTable(); | 412 static void InitBuiltinFunctionTable(); |
416 | 413 |
417 bool initialized_; | 414 bool initialized_; |
418 | 415 |
419 friend class BuiltinFunctionTable; | 416 friend class BuiltinFunctionTable; |
420 friend class Isolate; | 417 friend class Isolate; |
421 | 418 |
422 DISALLOW_COPY_AND_ASSIGN(Builtins); | 419 DISALLOW_COPY_AND_ASSIGN(Builtins); |
423 }; | 420 }; |
424 | 421 |
425 } } // namespace v8::internal | 422 } } // namespace v8::internal |
426 | 423 |
427 #endif // V8_BUILTINS_H_ | 424 #endif // V8_BUILTINS_H_ |
OLD | NEW |