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/js/uri.js

Issue 2027003002: [builtins] Migrate escape/unescape from uri.js to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Minor refactoring Created 4 years, 6 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/builtins.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // This file contains support for URI manipulations written in
6 // JavaScript.
7
8 (function(global, utils) {
9
10 "use strict";
11
12 %CheckIsBootstrapping();
13
14 // -------------------------------------------------------------------
15 // Define exported functions.
16
17 // ECMA-262 - B.2.1.
18 function URIEscapeJS(s) {
19 return %URIEscape(s);
20 }
21
22 // ECMA-262 - B.2.2.
23 function URIUnescapeJS(s) {
24 return %URIUnescape(s);
25 }
26
27 // -------------------------------------------------------------------
28 // Install exported functions.
29
30 // Set up non-enumerable URI functions on the global object and set
31 // their names.
32 utils.InstallFunctions(global, DONT_ENUM, [
33 "escape", URIEscapeJS,
34 "unescape", URIUnescapeJS
35 ]);
36
37 })
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698