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

Side by Side Diff: src/runtime.h

Issue 266050: Add trim, trimLeft and trimRight methods to String (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 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') | test/mjsunit/third_party/string-trim.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 F(RegExpExec, 4, 1) \ 145 F(RegExpExec, 4, 1) \
146 \ 146 \
147 /* Strings */ \ 147 /* Strings */ \
148 F(StringCharCodeAt, 2, 1) \ 148 F(StringCharCodeAt, 2, 1) \
149 F(StringIndexOf, 3, 1) \ 149 F(StringIndexOf, 3, 1) \
150 F(StringLastIndexOf, 3, 1) \ 150 F(StringLastIndexOf, 3, 1) \
151 F(StringLocaleCompare, 2, 1) \ 151 F(StringLocaleCompare, 2, 1) \
152 F(StringSlice, 3, 1) \ 152 F(StringSlice, 3, 1) \
153 F(StringReplaceRegExpWithString, 4, 1) \ 153 F(StringReplaceRegExpWithString, 4, 1) \
154 F(StringMatch, 3, 1) \ 154 F(StringMatch, 3, 1) \
155 F(StringTrim, 3, 1) \
155 \ 156 \
156 /* Numbers */ \ 157 /* Numbers */ \
157 F(NumberToRadixString, 2, 1) \ 158 F(NumberToRadixString, 2, 1) \
158 F(NumberToFixed, 2, 1) \ 159 F(NumberToFixed, 2, 1) \
159 F(NumberToExponential, 2, 1) \ 160 F(NumberToExponential, 2, 1) \
160 F(NumberToPrecision, 2, 1) 161 F(NumberToPrecision, 2, 1)
161 162
162 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ 163 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \
163 /* Reflection */ \ 164 /* Reflection */ \
164 F(FunctionSetInstanceClassName, 2, 1) \ 165 F(FunctionSetInstanceClassName, 2, 1) \
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 int position); 403 int position);
403 404
404 // Helper functions used stubs. 405 // Helper functions used stubs.
405 static void PerformGC(Object* result); 406 static void PerformGC(Object* result);
406 }; 407 };
407 408
408 409
409 } } // namespace v8::internal 410 } } // namespace v8::internal
410 411
411 #endif // V8_RUNTIME_H_ 412 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | test/mjsunit/third_party/string-trim.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698