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

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

Issue 1408223004: Expose string/regexp related public symbols on harmony flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/js/harmony-tostring.js ('k') | tools/gyp/v8.gyp » ('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 (function(global, utils) { 5 (function(global, utils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
11 // ------------------------------------------------------------------- 11 // -------------------------------------------------------------------
12 // Imports 12 // Imports
13 13
14 var GlobalObject = global.Object; 14 var GlobalObject = global.Object;
15 var GlobalSymbol = global.Symbol; 15 var GlobalSymbol = global.Symbol;
16 var hasInstanceSymbol = utils.ImportNow("has_instance_symbol"); 16 var hasInstanceSymbol = utils.ImportNow("has_instance_symbol");
17 var isConcatSpreadableSymbol = 17 var isConcatSpreadableSymbol =
18 utils.ImportNow("is_concat_spreadable_symbol"); 18 utils.ImportNow("is_concat_spreadable_symbol");
19 var isRegExpSymbol = utils.ImportNow("is_regexp_symbol"); 19 var isRegExpSymbol = utils.ImportNow("is_regexp_symbol");
20 var iteratorSymbol = utils.ImportNow("iterator_symbol"); 20 var iteratorSymbol = utils.ImportNow("iterator_symbol");
21 var MakeTypeError; 21 var MakeTypeError;
22 var matchSymbol = utils.ImportNow("match_symbol");
23 var ObjectGetOwnPropertyKeys; 22 var ObjectGetOwnPropertyKeys;
24 var replaceSymbol = utils.ImportNow("replace_symbol");
25 var searchSymbol = utils.ImportNow("search_symbol");
26 var splitSymbol = utils.ImportNow("split_symbol");
27 var toPrimitiveSymbol = utils.ImportNow("to_primitive_symbol"); 23 var toPrimitiveSymbol = utils.ImportNow("to_primitive_symbol");
28 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); 24 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
29 var unscopablesSymbol = utils.ImportNow("unscopables_symbol"); 25 var unscopablesSymbol = utils.ImportNow("unscopables_symbol");
30 26
31 utils.Import(function(from) { 27 utils.Import(function(from) {
32 MakeTypeError = from.MakeTypeError; 28 MakeTypeError = from.MakeTypeError;
33 ObjectGetOwnPropertyKeys = from.ObjectGetOwnPropertyKeys; 29 ObjectGetOwnPropertyKeys = from.ObjectGetOwnPropertyKeys;
34 }); 30 });
35 31
36 // ------------------------------------------------------------------- 32 // -------------------------------------------------------------------
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 ]); 132 ]);
137 133
138 // ------------------------------------------------------------------- 134 // -------------------------------------------------------------------
139 // Exports 135 // Exports
140 136
141 utils.Export(function(to) { 137 utils.Export(function(to) {
142 to.SymbolToString = SymbolToString; 138 to.SymbolToString = SymbolToString;
143 }) 139 })
144 140
145 }) 141 })
OLDNEW
« no previous file with comments | « src/js/harmony-tostring.js ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698