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

Side by Side Diff: src/runtime.h

Issue 12177015: Refactor implementation for String.prototype.replace. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | src/string.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 F(QuoteJSONString, 1, 1) \ 195 F(QuoteJSONString, 1, 1) \
196 F(QuoteJSONStringComma, 1, 1) \ 196 F(QuoteJSONStringComma, 1, 1) \
197 F(QuoteJSONStringArray, 1, 1) \ 197 F(QuoteJSONStringArray, 1, 1) \
198 \ 198 \
199 /* Strings */ \ 199 /* Strings */ \
200 F(StringCharCodeAt, 2, 1) \ 200 F(StringCharCodeAt, 2, 1) \
201 F(StringIndexOf, 3, 1) \ 201 F(StringIndexOf, 3, 1) \
202 F(StringLastIndexOf, 3, 1) \ 202 F(StringLastIndexOf, 3, 1) \
203 F(StringLocaleCompare, 2, 1) \ 203 F(StringLocaleCompare, 2, 1) \
204 F(SubString, 3, 1) \ 204 F(SubString, 3, 1) \
205 F(StringReplaceRegExpWithString, 4, 1) \ 205 F(StringReplaceGlobalRegExpWithString, 4, 1) \
206 F(StringReplaceOneCharWithString, 3, 1) \ 206 F(StringReplaceOneCharWithString, 3, 1) \
207 F(StringMatch, 3, 1) \ 207 F(StringMatch, 3, 1) \
208 F(StringTrim, 3, 1) \ 208 F(StringTrim, 3, 1) \
209 F(StringToArray, 2, 1) \ 209 F(StringToArray, 2, 1) \
210 F(NewStringWrapper, 1, 1) \ 210 F(NewStringWrapper, 1, 1) \
211 F(NewString, 2, 1) \ 211 F(NewString, 2, 1) \
212 F(TruncateString, 2, 1) \ 212 F(TruncateString, 2, 1) \
213 \ 213 \
214 /* Numbers */ \ 214 /* Numbers */ \
215 F(NumberToRadixString, 2, 1) \ 215 F(NumberToRadixString, 2, 1) \
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 //--------------------------------------------------------------------------- 712 //---------------------------------------------------------------------------
713 // Constants used by interface to runtime functions. 713 // Constants used by interface to runtime functions.
714 714
715 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 715 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
716 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 716 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
717 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 717 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
718 718
719 } } // namespace v8::internal 719 } } // namespace v8::internal
720 720
721 #endif // V8_RUNTIME_H_ 721 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | src/string.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698