| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 Code::kNoExtraICState) \ | 211 Code::kNoExtraICState) \ |
| 212 \ | 212 \ |
| 213 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ | 213 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ |
| 214 Code::kNoExtraICState) \ | 214 Code::kNoExtraICState) \ |
| 215 V(InterruptCheck, BUILTIN, UNINITIALIZED, \ | 215 V(InterruptCheck, BUILTIN, UNINITIALIZED, \ |
| 216 Code::kNoExtraICState) \ | 216 Code::kNoExtraICState) \ |
| 217 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, \ | 217 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, \ |
| 218 Code::kNoExtraICState) \ | 218 Code::kNoExtraICState) \ |
| 219 V(StackCheck, BUILTIN, UNINITIALIZED, \ | 219 V(StackCheck, BUILTIN, UNINITIALIZED, \ |
| 220 Code::kNoExtraICState) \ | 220 Code::kNoExtraICState) \ |
| 221 \ |
| 222 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, \ |
| 223 Code::kNoExtraICState) \ |
| 224 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, \ |
| 225 Code::kNoExtraICState) \ |
| 221 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 226 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
| 222 | 227 |
| 223 #ifdef ENABLE_DEBUGGER_SUPPORT | 228 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 224 // Define list of builtins used by the debugger implemented in assembly. | 229 // Define list of builtins used by the debugger implemented in assembly. |
| 225 #define BUILTIN_LIST_DEBUG_A(V) \ | 230 #define BUILTIN_LIST_DEBUG_A(V) \ |
| 226 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ | 231 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 227 DEBUG_BREAK) \ | 232 DEBUG_BREAK) \ |
| 228 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ | 233 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 229 DEBUG_BREAK) \ | 234 DEBUG_BREAK) \ |
| 230 V(CallFunctionStub_Recording_DebugBreak, BUILTIN, DEBUG_STUB, \ | 235 V(CallFunctionStub_Recording_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 static void Generate_StackCheck(MacroAssembler* masm); | 409 static void Generate_StackCheck(MacroAssembler* masm); |
| 405 | 410 |
| 406 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 411 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
| 407 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ | 412 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ |
| 408 MacroAssembler* masm); \ | 413 MacroAssembler* masm); \ |
| 409 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 414 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
| 410 MacroAssembler* masm); | 415 MacroAssembler* masm); |
| 411 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 416 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
| 412 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 417 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
| 413 | 418 |
| 419 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); |
| 420 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); |
| 421 |
| 414 static void InitBuiltinFunctionTable(); | 422 static void InitBuiltinFunctionTable(); |
| 415 | 423 |
| 416 bool initialized_; | 424 bool initialized_; |
| 417 | 425 |
| 418 friend class BuiltinFunctionTable; | 426 friend class BuiltinFunctionTable; |
| 419 friend class Isolate; | 427 friend class Isolate; |
| 420 | 428 |
| 421 DISALLOW_COPY_AND_ASSIGN(Builtins); | 429 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 422 }; | 430 }; |
| 423 | 431 |
| 424 } } // namespace v8::internal | 432 } } // namespace v8::internal |
| 425 | 433 |
| 426 #endif // V8_BUILTINS_H_ | 434 #endif // V8_BUILTINS_H_ |
| OLD | NEW |