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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 // Get the intrinsic function with the given name, which must be a symbol. | 627 // Get the intrinsic function with the given name, which must be a symbol. |
628 static const Function* FunctionForSymbol(Handle<String> name); | 628 static const Function* FunctionForSymbol(Handle<String> name); |
629 | 629 |
630 // Get the intrinsic function with the given FunctionId. | 630 // Get the intrinsic function with the given FunctionId. |
631 static const Function* FunctionForId(FunctionId id); | 631 static const Function* FunctionForId(FunctionId id); |
632 | 632 |
633 static Handle<String> StringReplaceOneCharWithString(Isolate* isolate, | 633 static Handle<String> StringReplaceOneCharWithString(Isolate* isolate, |
634 Handle<String> subject, | 634 Handle<String> subject, |
635 Handle<String> search, | 635 Handle<String> search, |
636 Handle<String> replace, | 636 Handle<String> replace, |
637 bool* found); | 637 bool* found, |
| 638 int recursion_limit); |
638 | 639 |
639 // General-purpose helper functions for runtime system. | 640 // General-purpose helper functions for runtime system. |
640 static int StringMatch(Isolate* isolate, | 641 static int StringMatch(Isolate* isolate, |
641 Handle<String> sub, | 642 Handle<String> sub, |
642 Handle<String> pat, | 643 Handle<String> pat, |
643 int index); | 644 int index); |
644 | 645 |
645 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); | 646 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); |
646 | 647 |
647 // TODO(1240886): Some of the following methods are *not* handle safe, but | 648 // TODO(1240886): Some of the following methods are *not* handle safe, but |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 //--------------------------------------------------------------------------- | 698 //--------------------------------------------------------------------------- |
698 // Constants used by interface to runtime functions. | 699 // Constants used by interface to runtime functions. |
699 | 700 |
700 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 701 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
701 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 702 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
702 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 703 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
703 | 704 |
704 } } // namespace v8::internal | 705 } } // namespace v8::internal |
705 | 706 |
706 #endif // V8_RUNTIME_H_ | 707 #endif // V8_RUNTIME_H_ |
OLD | NEW |