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

Side by Side Diff: src/regexp.js

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 3 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/proxy.js ('k') | src/runtime.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 var $regexpLastMatchInfoOverride; 5 var $regexpLastMatchInfoOverride;
6 var harmony_regexps = false; 6 var harmony_regexps = false;
7 var harmony_unicode_regexps = false; 7 var harmony_unicode_regexps = false;
8 8
9 (function(global, utils) { 9 (function(global, utils) {
10 10
11 %CheckIsBootstrapping(); 11 %CheckIsBootstrapping();
12 12
13 // ------------------------------------------------------------------- 13 // -------------------------------------------------------------------
14 // Imports 14 // Imports
15 15
16 var GlobalRegExp = global.RegExp; 16 var GlobalRegExp = global.RegExp;
17 var InternalPackedArray = utils.InternalPackedArray; 17 var InternalPackedArray = utils.InternalPackedArray;
18 var ToNumber;
18 19
19 utils.Import(function(from) { 20 utils.Import(function(from) {
20 ToNumber = from.ToNumber; 21 ToNumber = from.ToNumber;
21 }); 22 });
22 23
23 // ------------------------------------------------------------------- 24 // -------------------------------------------------------------------
24 25
25 // Property of the builtins object for recording the result of the last 26 // Property of the builtins object for recording the result of the last
26 // regexp match. The property RegExpLastMatchInfo includes the matchIndices 27 // regexp match. The property RegExpLastMatchInfo includes the matchIndices
27 // array of the last successful regexp match (an array of start/end index 28 // array of the last successful regexp match (an array of start/end index
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // Exports 449 // Exports
449 450
450 utils.Export(function(to) { 451 utils.Export(function(to) {
451 to.RegExpExec = DoRegExpExec; 452 to.RegExpExec = DoRegExpExec;
452 to.RegExpExecNoTests = RegExpExecNoTests; 453 to.RegExpExecNoTests = RegExpExecNoTests;
453 to.RegExpLastMatchInfo = RegExpLastMatchInfo; 454 to.RegExpLastMatchInfo = RegExpLastMatchInfo;
454 to.RegExpTest = RegExpTest; 455 to.RegExpTest = RegExpTest;
455 }); 456 });
456 457
457 }) 458 })
OLDNEW
« no previous file with comments | « src/proxy.js ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698