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

Side by Side Diff: src/js/i18n.js

Issue 2373493002: [stubs] Port String.prototype.substr to TurboFan (Closed)
Patch Set: Additional tests Created 4 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
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/js/string.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ECMAScript 402 API implementation. 5 // ECMAScript 402 API implementation.
6 6
7 /** 7 /**
8 * Intl object is a single object that has some named properties, 8 * Intl object is a single object that has some named properties,
9 * all of which are constructors. 9 * all of which are constructors.
10 */ 10 */
(...skipping 16 matching lines...) Expand all
27 var InstallGetter = utils.InstallGetter; 27 var InstallGetter = utils.InstallGetter;
28 var InternalArray = utils.InternalArray; 28 var InternalArray = utils.InternalArray;
29 var InternalRegExpMatch; 29 var InternalRegExpMatch;
30 var InternalRegExpReplace 30 var InternalRegExpReplace
31 var ObjectHasOwnProperty = utils.ImportNow("ObjectHasOwnProperty"); 31 var ObjectHasOwnProperty = utils.ImportNow("ObjectHasOwnProperty");
32 var OverrideFunction = utils.OverrideFunction; 32 var OverrideFunction = utils.OverrideFunction;
33 var patternSymbol = utils.ImportNow("intl_pattern_symbol"); 33 var patternSymbol = utils.ImportNow("intl_pattern_symbol");
34 var resolvedSymbol = utils.ImportNow("intl_resolved_symbol"); 34 var resolvedSymbol = utils.ImportNow("intl_resolved_symbol");
35 var SetFunctionName = utils.SetFunctionName; 35 var SetFunctionName = utils.SetFunctionName;
36 var StringIndexOf; 36 var StringIndexOf;
37 var StringSubstr; 37 var StringSubstr = GlobalString.prototype.substr;
38 var StringSubstring = GlobalString.prototype.substring; 38 var StringSubstring = GlobalString.prototype.substring;
39 39
40 utils.Import(function(from) { 40 utils.Import(function(from) {
41 ArrayJoin = from.ArrayJoin; 41 ArrayJoin = from.ArrayJoin;
42 ArrayPush = from.ArrayPush; 42 ArrayPush = from.ArrayPush;
43 InternalRegExpMatch = from.InternalRegExpMatch; 43 InternalRegExpMatch = from.InternalRegExpMatch;
44 InternalRegExpReplace = from.InternalRegExpReplace; 44 InternalRegExpReplace = from.InternalRegExpReplace;
45 StringIndexOf = from.StringIndexOf; 45 StringIndexOf = from.StringIndexOf;
46 StringSubstr = from.StringSubstr;
47 }); 46 });
48 47
49 // Utilities for definitions 48 // Utilities for definitions
50 49
51 function InstallFunction(object, name, func) { 50 function InstallFunction(object, name, func) {
52 InstallFunctions(object, DONT_ENUM, [name, func]); 51 InstallFunctions(object, DONT_ENUM, [name, func]);
53 } 52 }
54 53
55 54
56 function InstallConstructor(object, name, func) { 55 function InstallConstructor(object, name, func) {
(...skipping 2214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2271 } 2270 }
2272 ); 2271 );
2273 2272
2274 %FunctionRemovePrototype(FormatDateToParts); 2273 %FunctionRemovePrototype(FormatDateToParts);
2275 2274
2276 utils.Export(function(to) { 2275 utils.Export(function(to) {
2277 to.FormatDateToParts = FormatDateToParts; 2276 to.FormatDateToParts = FormatDateToParts;
2278 }); 2277 });
2279 2278
2280 }) 2279 })
OLDNEW
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/js/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698