| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 V(ArrayCode, BUILTIN, UNINITIALIZED, \ | 209 V(ArrayCode, BUILTIN, UNINITIALIZED, \ |
| 210 Code::kNoExtraICState) \ | 210 Code::kNoExtraICState) \ |
| 211 \ | 211 \ |
| 212 V(StringConstructCode, BUILTIN, UNINITIALIZED, \ | 212 V(StringConstructCode, BUILTIN, UNINITIALIZED, \ |
| 213 Code::kNoExtraICState) \ | 213 Code::kNoExtraICState) \ |
| 214 \ | 214 \ |
| 215 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ | 215 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ |
| 216 Code::kNoExtraICState) \ | 216 Code::kNoExtraICState) \ |
| 217 V(InterruptCheck, BUILTIN, UNINITIALIZED, \ | 217 V(InterruptCheck, BUILTIN, UNINITIALIZED, \ |
| 218 Code::kNoExtraICState) \ | 218 Code::kNoExtraICState) \ |
| 219 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, \ |
| 220 Code::kNoExtraICState) \ |
| 219 V(StackCheck, BUILTIN, UNINITIALIZED, \ | 221 V(StackCheck, BUILTIN, UNINITIALIZED, \ |
| 220 Code::kNoExtraICState) \ | 222 Code::kNoExtraICState) \ |
| 221 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 223 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
| 222 | 224 |
| 223 #ifdef ENABLE_DEBUGGER_SUPPORT | 225 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 224 // Define list of builtins used by the debugger implemented in assembly. | 226 // Define list of builtins used by the debugger implemented in assembly. |
| 225 #define BUILTIN_LIST_DEBUG_A(V) \ | 227 #define BUILTIN_LIST_DEBUG_A(V) \ |
| 226 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ | 228 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 227 DEBUG_BREAK) \ | 229 DEBUG_BREAK) \ |
| 228 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ | 230 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); | 395 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
| 394 | 396 |
| 395 static void Generate_FunctionCall(MacroAssembler* masm); | 397 static void Generate_FunctionCall(MacroAssembler* masm); |
| 396 static void Generate_FunctionApply(MacroAssembler* masm); | 398 static void Generate_FunctionApply(MacroAssembler* masm); |
| 397 | 399 |
| 398 static void Generate_InternalArrayCode(MacroAssembler* masm); | 400 static void Generate_InternalArrayCode(MacroAssembler* masm); |
| 399 static void Generate_ArrayCode(MacroAssembler* masm); | 401 static void Generate_ArrayCode(MacroAssembler* masm); |
| 400 | 402 |
| 401 static void Generate_StringConstructCode(MacroAssembler* masm); | 403 static void Generate_StringConstructCode(MacroAssembler* masm); |
| 402 static void Generate_OnStackReplacement(MacroAssembler* masm); | 404 static void Generate_OnStackReplacement(MacroAssembler* masm); |
| 403 | 405 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); |
| 404 static void Generate_InterruptCheck(MacroAssembler* masm); | 406 static void Generate_InterruptCheck(MacroAssembler* masm); |
| 405 static void Generate_StackCheck(MacroAssembler* masm); | 407 static void Generate_StackCheck(MacroAssembler* masm); |
| 406 | 408 |
| 407 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 409 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
| 408 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ | 410 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ |
| 409 MacroAssembler* masm); \ | 411 MacroAssembler* masm); \ |
| 410 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 412 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
| 411 MacroAssembler* masm); | 413 MacroAssembler* masm); |
| 412 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 414 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
| 413 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 415 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
| 414 | 416 |
| 415 static void InitBuiltinFunctionTable(); | 417 static void InitBuiltinFunctionTable(); |
| 416 | 418 |
| 417 bool initialized_; | 419 bool initialized_; |
| 418 | 420 |
| 419 friend class BuiltinFunctionTable; | 421 friend class BuiltinFunctionTable; |
| 420 friend class Isolate; | 422 friend class Isolate; |
| 421 | 423 |
| 422 DISALLOW_COPY_AND_ASSIGN(Builtins); | 424 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 423 }; | 425 }; |
| 424 | 426 |
| 425 } } // namespace v8::internal | 427 } } // namespace v8::internal |
| 426 | 428 |
| 427 #endif // V8_BUILTINS_H_ | 429 #endif // V8_BUILTINS_H_ |
| OLD | NEW |