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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 Code::kNoExtraICState) \ | 197 Code::kNoExtraICState) \ |
198 \ | 198 \ |
199 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ | 199 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ |
200 Code::kNoExtraICState) \ | 200 Code::kNoExtraICState) \ |
201 V(InterruptCheck, BUILTIN, UNINITIALIZED, \ | 201 V(InterruptCheck, BUILTIN, UNINITIALIZED, \ |
202 Code::kNoExtraICState) \ | 202 Code::kNoExtraICState) \ |
203 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, \ | 203 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, \ |
204 Code::kNoExtraICState) \ | 204 Code::kNoExtraICState) \ |
205 V(StackCheck, BUILTIN, UNINITIALIZED, \ | 205 V(StackCheck, BUILTIN, UNINITIALIZED, \ |
206 Code::kNoExtraICState) \ | 206 Code::kNoExtraICState) \ |
| 207 \ |
| 208 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, \ |
| 209 Code::kNoExtraICState) \ |
| 210 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, \ |
| 211 Code::kNoExtraICState) \ |
207 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 212 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
208 | 213 |
209 // Define list of builtin handlers implemented in assembly. | 214 // Define list of builtin handlers implemented in assembly. |
210 #define BUILTIN_LIST_H(V) \ | 215 #define BUILTIN_LIST_H(V) \ |
211 V(LoadIC_Slow, LOAD_IC, Code::kNoExtraICState) \ | 216 V(LoadIC_Slow, LOAD_IC, Code::kNoExtraICState) \ |
212 V(KeyedLoadIC_Slow, KEYED_LOAD_IC, Code::kNoExtraICState) \ | 217 V(KeyedLoadIC_Slow, KEYED_LOAD_IC, Code::kNoExtraICState) \ |
213 V(StoreIC_Slow, STORE_IC, Code::kNoExtraICState) \ | 218 V(StoreIC_Slow, STORE_IC, Code::kNoExtraICState) \ |
214 V(StoreIC_Slow_Strict, STORE_IC, kStrictMode) \ | 219 V(StoreIC_Slow_Strict, STORE_IC, kStrictMode) \ |
215 V(KeyedStoreIC_Slow, KEYED_STORE_IC, Code::kNoExtraICState)\ | 220 V(KeyedStoreIC_Slow, KEYED_STORE_IC, Code::kNoExtraICState)\ |
216 V(KeyedStoreIC_Slow_Strict, KEYED_STORE_IC, kStrictMode) \ | 221 V(KeyedStoreIC_Slow_Strict, KEYED_STORE_IC, kStrictMode) \ |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 static void Generate_StackCheck(MacroAssembler* masm); | 411 static void Generate_StackCheck(MacroAssembler* masm); |
407 | 412 |
408 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 413 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
409 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ | 414 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ |
410 MacroAssembler* masm); \ | 415 MacroAssembler* masm); \ |
411 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 416 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
412 MacroAssembler* masm); | 417 MacroAssembler* masm); |
413 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 418 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
414 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 419 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
415 | 420 |
| 421 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); |
| 422 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); |
| 423 |
416 static void InitBuiltinFunctionTable(); | 424 static void InitBuiltinFunctionTable(); |
417 | 425 |
418 bool initialized_; | 426 bool initialized_; |
419 | 427 |
420 friend class BuiltinFunctionTable; | 428 friend class BuiltinFunctionTable; |
421 friend class Isolate; | 429 friend class Isolate; |
422 | 430 |
423 DISALLOW_COPY_AND_ASSIGN(Builtins); | 431 DISALLOW_COPY_AND_ASSIGN(Builtins); |
424 }; | 432 }; |
425 | 433 |
426 } } // namespace v8::internal | 434 } } // namespace v8::internal |
427 | 435 |
428 #endif // V8_BUILTINS_H_ | 436 #endif // V8_BUILTINS_H_ |
OLD | NEW |