| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ | 192 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ |
| 193 V(FunctionCall, BUILTIN, UNINITIALIZED, \ | 193 V(FunctionCall, BUILTIN, UNINITIALIZED, \ |
| 194 Code::kNoExtraICState) \ | 194 Code::kNoExtraICState) \ |
| 195 V(FunctionApply, BUILTIN, UNINITIALIZED, \ | 195 V(FunctionApply, BUILTIN, UNINITIALIZED, \ |
| 196 Code::kNoExtraICState) \ | 196 Code::kNoExtraICState) \ |
| 197 \ | 197 \ |
| 198 V(InternalArrayCode, BUILTIN, UNINITIALIZED, \ | 198 V(InternalArrayCode, BUILTIN, UNINITIALIZED, \ |
| 199 Code::kNoExtraICState) \ | 199 Code::kNoExtraICState) \ |
| 200 V(ArrayCode, BUILTIN, UNINITIALIZED, \ | 200 V(ArrayCode, BUILTIN, UNINITIALIZED, \ |
| 201 Code::kNoExtraICState) \ | 201 Code::kNoExtraICState) \ |
| 202 V(ArrayConstructCode, BUILTIN, UNINITIALIZED, \ | 202 V(InternalArrayConstructCode, BUILTIN, UNINITIALIZED, \ |
| 203 Code::kNoExtraICState) \ | 203 Code::kNoExtraICState) \ |
| 204 \ | 204 \ |
| 205 V(StringConstructCode, BUILTIN, UNINITIALIZED, \ | 205 V(StringConstructCode, BUILTIN, UNINITIALIZED, \ |
| 206 Code::kNoExtraICState) \ | 206 Code::kNoExtraICState) \ |
| 207 \ | 207 \ |
| 208 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ | 208 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ |
| 209 Code::kNoExtraICState) \ | 209 Code::kNoExtraICState) \ |
| 210 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 210 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
| 211 | 211 |
| 212 #ifdef ENABLE_DEBUGGER_SUPPORT | 212 #ifdef ENABLE_DEBUGGER_SUPPORT |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); | 381 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); |
| 382 static void Generate_NotifyOSR(MacroAssembler* masm); | 382 static void Generate_NotifyOSR(MacroAssembler* masm); |
| 383 static void Generate_NotifyStubFailure(MacroAssembler* masm); | 383 static void Generate_NotifyStubFailure(MacroAssembler* masm); |
| 384 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); | 384 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
| 385 | 385 |
| 386 static void Generate_FunctionCall(MacroAssembler* masm); | 386 static void Generate_FunctionCall(MacroAssembler* masm); |
| 387 static void Generate_FunctionApply(MacroAssembler* masm); | 387 static void Generate_FunctionApply(MacroAssembler* masm); |
| 388 | 388 |
| 389 static void Generate_InternalArrayCode(MacroAssembler* masm); | 389 static void Generate_InternalArrayCode(MacroAssembler* masm); |
| 390 static void Generate_ArrayCode(MacroAssembler* masm); | 390 static void Generate_ArrayCode(MacroAssembler* masm); |
| 391 static void Generate_ArrayConstructCode(MacroAssembler* masm); | 391 static void Generate_InternalArrayConstructCode(MacroAssembler* masm); |
| 392 | 392 |
| 393 static void Generate_StringConstructCode(MacroAssembler* masm); | 393 static void Generate_StringConstructCode(MacroAssembler* masm); |
| 394 static void Generate_OnStackReplacement(MacroAssembler* masm); | 394 static void Generate_OnStackReplacement(MacroAssembler* masm); |
| 395 | 395 |
| 396 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 396 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
| 397 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ | 397 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ |
| 398 MacroAssembler* masm); \ | 398 MacroAssembler* masm); \ |
| 399 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 399 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
| 400 MacroAssembler* masm); | 400 MacroAssembler* masm); |
| 401 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 401 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
| 402 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 402 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
| 403 | 403 |
| 404 static void InitBuiltinFunctionTable(); | 404 static void InitBuiltinFunctionTable(); |
| 405 | 405 |
| 406 bool initialized_; | 406 bool initialized_; |
| 407 | 407 |
| 408 friend class BuiltinFunctionTable; | 408 friend class BuiltinFunctionTable; |
| 409 friend class Isolate; | 409 friend class Isolate; |
| 410 | 410 |
| 411 DISALLOW_COPY_AND_ASSIGN(Builtins); | 411 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 412 }; | 412 }; |
| 413 | 413 |
| 414 } } // namespace v8::internal | 414 } } // namespace v8::internal |
| 415 | 415 |
| 416 #endif // V8_BUILTINS_H_ | 416 #endif // V8_BUILTINS_H_ |
| OLD | NEW |