OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 F(HasFixedInt32Elements, 1, 1) \ | 416 F(HasFixedInt32Elements, 1, 1) \ |
417 F(HasFixedUint32Elements, 1, 1) \ | 417 F(HasFixedUint32Elements, 1, 1) \ |
418 F(HasFixedFloat32Elements, 1, 1) \ | 418 F(HasFixedFloat32Elements, 1, 1) \ |
419 F(HasFixedFloat64Elements, 1, 1) \ | 419 F(HasFixedFloat64Elements, 1, 1) \ |
420 F(HasFastProperties, 1, 1) \ | 420 F(HasFastProperties, 1, 1) \ |
421 F(TransitionElementsKind, 2, 1) \ | 421 F(TransitionElementsKind, 2, 1) \ |
422 F(HaveSameMap, 2, 1) \ | 422 F(HaveSameMap, 2, 1) \ |
423 F(IsAccessCheckNeeded, 1, 1) | 423 F(IsAccessCheckNeeded, 1, 1) |
424 | 424 |
425 | 425 |
426 #ifdef ENABLE_DEBUGGER_SUPPORT | 426 #define RUNTIME_FUNCTION_LIST_DEBUGGER(F) \ |
427 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \ | |
428 /* Debugger support*/ \ | 427 /* Debugger support*/ \ |
429 F(DebugBreak, 0, 1) \ | 428 F(DebugBreak, 0, 1) \ |
430 F(SetDebugEventListener, 2, 1) \ | 429 F(SetDebugEventListener, 2, 1) \ |
431 F(Break, 0, 1) \ | 430 F(Break, 0, 1) \ |
432 F(DebugGetPropertyDetails, 2, 1) \ | 431 F(DebugGetPropertyDetails, 2, 1) \ |
433 F(DebugGetProperty, 2, 1) \ | 432 F(DebugGetProperty, 2, 1) \ |
434 F(DebugPropertyTypeFromDetails, 1, 1) \ | 433 F(DebugPropertyTypeFromDetails, 1, 1) \ |
435 F(DebugPropertyAttributesFromDetails, 1, 1) \ | 434 F(DebugPropertyAttributesFromDetails, 1, 1) \ |
436 F(DebugPropertyIndexFromDetails, 1, 1) \ | 435 F(DebugPropertyIndexFromDetails, 1, 1) \ |
437 F(DebugNamedInterceptorPropertyValue, 2, 1) \ | 436 F(DebugNamedInterceptorPropertyValue, 2, 1) \ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 F(LiveEditCheckAndDropActivations, 2, 1) \ | 479 F(LiveEditCheckAndDropActivations, 2, 1) \ |
481 F(LiveEditCompareStrings, 2, 1) \ | 480 F(LiveEditCompareStrings, 2, 1) \ |
482 F(LiveEditRestartFrame, 2, 1) \ | 481 F(LiveEditRestartFrame, 2, 1) \ |
483 F(GetFunctionCodePositionFromSource, 2, 1) \ | 482 F(GetFunctionCodePositionFromSource, 2, 1) \ |
484 F(ExecuteInDebugContext, 2, 1) \ | 483 F(ExecuteInDebugContext, 2, 1) \ |
485 \ | 484 \ |
486 F(SetFlags, 1, 1) \ | 485 F(SetFlags, 1, 1) \ |
487 F(CollectGarbage, 1, 1) \ | 486 F(CollectGarbage, 1, 1) \ |
488 F(GetHeapUsage, 0, 1) \ | 487 F(GetHeapUsage, 0, 1) \ |
489 | 488 |
490 #else | |
491 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) | |
492 #endif | |
493 | |
494 | 489 |
495 #ifdef V8_I18N_SUPPORT | 490 #ifdef V8_I18N_SUPPORT |
496 #define RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) \ | 491 #define RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) \ |
497 /* i18n support */ \ | 492 /* i18n support */ \ |
498 /* Standalone, helper methods. */ \ | 493 /* Standalone, helper methods. */ \ |
499 F(CanonicalizeLanguageTag, 1, 1) \ | 494 F(CanonicalizeLanguageTag, 1, 1) \ |
500 F(AvailableLocalesOf, 1, 1) \ | 495 F(AvailableLocalesOf, 1, 1) \ |
501 F(GetDefaultICULocale, 0, 1) \ | 496 F(GetDefaultICULocale, 0, 1) \ |
502 F(GetLanguageTagVariants, 1, 1) \ | 497 F(GetLanguageTagVariants, 1, 1) \ |
503 F(IsInitializedIntlObject, 1, 1) \ | 498 F(IsInitializedIntlObject, 1, 1) \ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 // ---------------------------------------------------------------------------- | 541 // ---------------------------------------------------------------------------- |
547 // RUNTIME_FUNCTION_LIST defines all runtime functions accessed | 542 // RUNTIME_FUNCTION_LIST defines all runtime functions accessed |
548 // either directly by id (via the code generator), or indirectly | 543 // either directly by id (via the code generator), or indirectly |
549 // via a native call by name (from within JS code). | 544 // via a native call by name (from within JS code). |
550 // Entries have the form F(name, number of arguments, number of return values). | 545 // Entries have the form F(name, number of arguments, number of return values). |
551 | 546 |
552 #define RUNTIME_FUNCTION_LIST(F) \ | 547 #define RUNTIME_FUNCTION_LIST(F) \ |
553 RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \ | 548 RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \ |
554 RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 549 RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
555 RUNTIME_FUNCTION_LIST_DEBUG(F) \ | 550 RUNTIME_FUNCTION_LIST_DEBUG(F) \ |
556 RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \ | 551 RUNTIME_FUNCTION_LIST_DEBUGGER(F) \ |
557 RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) | 552 RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) |
558 | 553 |
559 // RUNTIME_HIDDEN_FUNCTION_LIST defines all runtime functions accessed | 554 // RUNTIME_HIDDEN_FUNCTION_LIST defines all runtime functions accessed |
560 // by id from code generator, but not via native call by name. | 555 // by id from code generator, but not via native call by name. |
561 // Entries have the form F(name, number of arguments, number of return values). | 556 // Entries have the form F(name, number of arguments, number of return values). |
562 #define RUNTIME_HIDDEN_FUNCTION_LIST(F) \ | 557 #define RUNTIME_HIDDEN_FUNCTION_LIST(F) \ |
563 /* String and Regexp */ \ | 558 /* String and Regexp */ \ |
564 F(NumberToString, 1, 1) \ | 559 F(NumberToString, 1, 1) \ |
565 F(RegExpConstructResult, 3, 1) \ | 560 F(RegExpConstructResult, 3, 1) \ |
566 F(RegExpExec, 4, 1) \ | 561 F(RegExpExec, 4, 1) \ |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; | 910 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
916 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; | 911 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
917 | 912 |
918 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 913 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
919 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 914 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
920 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; | 915 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; |
921 | 916 |
922 } } // namespace v8::internal | 917 } } // namespace v8::internal |
923 | 918 |
924 #endif // V8_RUNTIME_H_ | 919 #endif // V8_RUNTIME_H_ |
OLD | NEW |