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

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

Issue 1432683002: Revert of Implement flag and source getters on RegExp.prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rproto
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/string.js ('k') | src/messages.h » ('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 iteratorSymbol = utils.ImportNow("iterator_symbol"); 20 var iteratorSymbol = utils.ImportNow("iterator_symbol");
20 var MakeTypeError; 21 var MakeTypeError;
21 var ObjectGetOwnPropertyKeys; 22 var ObjectGetOwnPropertyKeys;
22 var toPrimitiveSymbol = utils.ImportNow("to_primitive_symbol"); 23 var toPrimitiveSymbol = utils.ImportNow("to_primitive_symbol");
23 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); 24 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
24 var unscopablesSymbol = utils.ImportNow("unscopables_symbol"); 25 var unscopablesSymbol = utils.ImportNow("unscopables_symbol");
25 26
26 utils.Import(function(from) { 27 utils.Import(function(from) {
27 MakeTypeError = from.MakeTypeError; 28 MakeTypeError = from.MakeTypeError;
28 ObjectGetOwnPropertyKeys = from.ObjectGetOwnPropertyKeys; 29 ObjectGetOwnPropertyKeys = from.ObjectGetOwnPropertyKeys;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 87 }
87 88
88 // ------------------------------------------------------------------- 89 // -------------------------------------------------------------------
89 90
90 %FunctionSetPrototype(GlobalSymbol, new GlobalObject()); 91 %FunctionSetPrototype(GlobalSymbol, new GlobalObject());
91 92
92 utils.InstallConstants(GlobalSymbol, [ 93 utils.InstallConstants(GlobalSymbol, [
93 // TODO(rossberg): expose when implemented. 94 // TODO(rossberg): expose when implemented.
94 // "hasInstance", hasInstanceSymbol, 95 // "hasInstance", hasInstanceSymbol,
95 // "isConcatSpreadable", isConcatSpreadableSymbol, 96 // "isConcatSpreadable", isConcatSpreadableSymbol,
97 // "isRegExp", isRegExpSymbol,
96 "iterator", iteratorSymbol, 98 "iterator", iteratorSymbol,
97 // TODO(yangguo): expose when implemented. 99 // TODO(yangguo): expose when implemented.
98 // "match", matchSymbol, 100 // "match", matchSymbol,
99 // "replace", replaceSymbol, 101 // "replace", replaceSymbol,
100 // "search", searchSymbol, 102 // "search", searchSymbol,
101 // "split, splitSymbol, 103 // "split, splitSymbol,
102 "toPrimitive", toPrimitiveSymbol, 104 "toPrimitive", toPrimitiveSymbol,
103 // TODO(dslomov, caitp): Currently defined in harmony-tostring.js --- 105 // TODO(dslomov, caitp): Currently defined in harmony-tostring.js ---
104 // Move here when shipping 106 // Move here when shipping
105 // "toStringTag", toStringTagSymbol, 107 // "toStringTag", toStringTagSymbol,
(...skipping 24 matching lines...) Expand all
130 ]); 132 ]);
131 133
132 // ------------------------------------------------------------------- 134 // -------------------------------------------------------------------
133 // Exports 135 // Exports
134 136
135 utils.Export(function(to) { 137 utils.Export(function(to) {
136 to.SymbolToString = SymbolToString; 138 to.SymbolToString = SymbolToString;
137 }) 139 })
138 140
139 }) 141 })
OLDNEW
« no previous file with comments | « src/js/string.js ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698