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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 /* Literals */ \ | 292 /* Literals */ \ |
293 F(MaterializeRegExpLiteral, 4, 1)\ | 293 F(MaterializeRegExpLiteral, 4, 1)\ |
294 F(CreateObjectLiteral, 4, 1) \ | 294 F(CreateObjectLiteral, 4, 1) \ |
295 F(CreateObjectLiteralShallow, 4, 1) \ | 295 F(CreateObjectLiteralShallow, 4, 1) \ |
296 F(CreateArrayLiteral, 3, 1) \ | 296 F(CreateArrayLiteral, 3, 1) \ |
297 F(CreateArrayLiteralShallow, 3, 1) \ | 297 F(CreateArrayLiteralShallow, 3, 1) \ |
298 \ | 298 \ |
299 /* Harmony generators */ \ | 299 /* Harmony generators */ \ |
300 F(CreateJSGeneratorObject, 0, 1) \ | 300 F(CreateJSGeneratorObject, 0, 1) \ |
301 F(SuspendJSGeneratorObject, 1, 1) \ | 301 F(SuspendJSGeneratorObject, 1, 1) \ |
| 302 F(ResumeJSGeneratorObject, 3, 1) \ |
| 303 F(ThrowGeneratorStateError, 1, 1) \ |
302 \ | 304 \ |
303 /* Harmony modules */ \ | 305 /* Harmony modules */ \ |
304 F(IsJSModule, 1, 1) \ | 306 F(IsJSModule, 1, 1) \ |
305 \ | 307 \ |
306 /* Harmony symbols */ \ | 308 /* Harmony symbols */ \ |
307 F(CreateSymbol, 1, 1) \ | 309 F(CreateSymbol, 1, 1) \ |
308 F(SymbolName, 1, 1) \ | 310 F(SymbolName, 1, 1) \ |
309 \ | 311 \ |
310 /* Harmony proxies */ \ | 312 /* Harmony proxies */ \ |
311 F(CreateJSProxy, 2, 1) \ | 313 F(CreateJSProxy, 2, 1) \ |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ | 555 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ |
554 F(MathPow, 2, 1) \ | 556 F(MathPow, 2, 1) \ |
555 F(MathSin, 1, 1) \ | 557 F(MathSin, 1, 1) \ |
556 F(MathCos, 1, 1) \ | 558 F(MathCos, 1, 1) \ |
557 F(MathTan, 1, 1) \ | 559 F(MathTan, 1, 1) \ |
558 F(MathSqrt, 1, 1) \ | 560 F(MathSqrt, 1, 1) \ |
559 F(MathLog, 1, 1) \ | 561 F(MathLog, 1, 1) \ |
560 F(IsRegExpEquivalent, 2, 1) \ | 562 F(IsRegExpEquivalent, 2, 1) \ |
561 F(HasCachedArrayIndex, 1, 1) \ | 563 F(HasCachedArrayIndex, 1, 1) \ |
562 F(GetCachedArrayIndex, 1, 1) \ | 564 F(GetCachedArrayIndex, 1, 1) \ |
563 F(FastAsciiArrayJoin, 2, 1) | 565 F(FastAsciiArrayJoin, 2, 1) \ |
| 566 F(GeneratorSend, 2, 1) \ |
| 567 F(GeneratorThrow, 2, 1) |
564 | 568 |
565 | 569 |
566 // ---------------------------------------------------------------------------- | 570 // ---------------------------------------------------------------------------- |
567 // INLINE_RUNTIME_FUNCTION_LIST defines all inlined functions accessed | 571 // INLINE_RUNTIME_FUNCTION_LIST defines all inlined functions accessed |
568 // with a native call of the form %_name from within JS code that also have | 572 // with a native call of the form %_name from within JS code that also have |
569 // a corresponding runtime function, that is called for slow cases. | 573 // a corresponding runtime function, that is called for slow cases. |
570 // Entries have the form F(name, number of arguments, number of return values). | 574 // Entries have the form F(name, number of arguments, number of return values). |
571 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ | 575 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ |
572 F(ClassOf, 1, 1) \ | 576 F(ClassOf, 1, 1) \ |
573 F(StringCharCodeAt, 2, 1) \ | 577 F(StringCharCodeAt, 2, 1) \ |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 //--------------------------------------------------------------------------- | 762 //--------------------------------------------------------------------------- |
759 // Constants used by interface to runtime functions. | 763 // Constants used by interface to runtime functions. |
760 | 764 |
761 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 765 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
762 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 766 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
763 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 767 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
764 | 768 |
765 } } // namespace v8::internal | 769 } } // namespace v8::internal |
766 | 770 |
767 #endif // V8_RUNTIME_H_ | 771 #endif // V8_RUNTIME_H_ |
OLD | NEW |