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

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

Issue 1428203003: Use in-object fields instead of private symbols for regexp slots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase 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/macros.py ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 %CheckIsBootstrapping(); 7 %CheckIsBootstrapping();
8 8
9 // ------------------------------------------------------------------- 9 // -------------------------------------------------------------------
10 // Imports 10 // Imports
11 11
12 var FLAG_harmony_tolength; 12 var FLAG_harmony_tolength;
13 var GlobalObject = global.Object; 13 var GlobalObject = global.Object;
14 var GlobalRegExp = global.RegExp; 14 var GlobalRegExp = global.RegExp;
15 var InternalPackedArray = utils.InternalPackedArray; 15 var InternalPackedArray = utils.InternalPackedArray;
16 var MakeTypeError; 16 var MakeTypeError;
17 var regExpFlagsSymbol = utils.ImportNow("regexp_flags_symbol");
18 var regExpSourceSymbol = utils.ImportNow("regexp_source_symbol");
19 17
20 utils.ImportFromExperimental(function(from) { 18 utils.ImportFromExperimental(function(from) {
21 FLAG_harmony_tolength = from.FLAG_harmony_tolength; 19 FLAG_harmony_tolength = from.FLAG_harmony_tolength;
22 }); 20 });
23 21
24 utils.Import(function(from) { 22 utils.Import(function(from) {
25 MakeTypeError = from.MakeTypeError; 23 MakeTypeError = from.MakeTypeError;
26 }); 24 });
27 25
28 // ------------------------------------------------------------------- 26 // -------------------------------------------------------------------
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 // Exports 469 // Exports
472 470
473 utils.Export(function(to) { 471 utils.Export(function(to) {
474 to.RegExpExec = DoRegExpExec; 472 to.RegExpExec = DoRegExpExec;
475 to.RegExpExecNoTests = RegExpExecNoTests; 473 to.RegExpExecNoTests = RegExpExecNoTests;
476 to.RegExpLastMatchInfo = RegExpLastMatchInfo; 474 to.RegExpLastMatchInfo = RegExpLastMatchInfo;
477 to.RegExpTest = RegExpTest; 475 to.RegExpTest = RegExpTest;
478 }); 476 });
479 477
480 }) 478 })
OLDNEW
« no previous file with comments | « src/js/macros.py ('k') | src/js/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698