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

Side by Side Diff: src/uri.js

Issue 1123353008: Revert of Use function wrapper argument to expose internal arrays to native scripts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/templates.js ('k') | src/v8natives.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 // This file contains support for URI manipulations written in 5 // This file contains support for URI manipulations written in
6 // JavaScript. 6 // JavaScript.
7 7
8 (function(global, shared, exports) { 8 (function(global, shared, exports) {
9 9
10 "use strict"; 10 "use strict";
11 11
12 %CheckIsBootstrapping(); 12 %CheckIsBootstrapping();
13 13
14 //- ------------------------------------------------------------------
15 // Imports
16
17 var GlobalObject = global.Object; 14 var GlobalObject = global.Object;
18 var GlobalArray = global.Array; 15 var GlobalArray = global.Array;
19 var InternalArray = shared.InternalArray;
20 16
21 // ------------------------------------------------------------------- 17 // -------------------------------------------------------------------
22 // Define internal helper functions. 18 // Define internal helper functions.
23 19
24 function HexValueOf(code) { 20 function HexValueOf(code) {
25 // 0-9 21 // 0-9
26 if (code >= 48 && code <= 57) return code - 48; 22 if (code >= 48 && code <= 57) return code - 48;
27 // A-F 23 // A-F
28 if (code >= 65 && code <= 70) return code - 55; 24 if (code >= 65 && code <= 70) return code - 55;
29 // a-f 25 // a-f
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 $installFunctions(global, DONT_ENUM, [ 359 $installFunctions(global, DONT_ENUM, [
364 "escape", URIEscapeJS, 360 "escape", URIEscapeJS,
365 "unescape", URIUnescapeJS, 361 "unescape", URIUnescapeJS,
366 "decodeURI", URIDecode, 362 "decodeURI", URIDecode,
367 "decodeURIComponent", URIDecodeComponent, 363 "decodeURIComponent", URIDecodeComponent,
368 "encodeURI", URIEncode, 364 "encodeURI", URIEncode,
369 "encodeURIComponent", URIEncodeComponent 365 "encodeURIComponent", URIEncodeComponent
370 ]); 366 ]);
371 367
372 }) 368 })
OLDNEW
« no previous file with comments | « src/templates.js ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698