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