Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: src/runtime.h

Issue 9231017: Recursion limit for one-char string replace and retire String::kMinNonFlatLength. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698