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

Side by Side Diff: src/templates.js

Issue 1143993003: Use shared container to manage imports/exports. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed test for no-snap 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/symbol.js ('k') | src/third_party/fdlibm/fdlibm.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 // Called from a desugaring in the parser. 5 // Called from a desugaring in the parser.
6 6
7 var $getTemplateCallSite; 7 var $getTemplateCallSite;
8 8
9 (function(global, shared, exports) { 9 (function(global, utils) {
10 10
11 "use strict"; 11 "use strict";
12 12
13 %CheckIsBootstrapping(); 13 %CheckIsBootstrapping();
14 14
15 // ------------------------------------------------------------------- 15 // -------------------------------------------------------------------
16 // Imports 16 // Imports
17 17
18 var GlobalMap = global.Map; 18 var GlobalMap = global.Map;
19 var InternalArray = shared.InternalArray; 19 var InternalArray = utils.InternalArray;
20 20
21 // ------------------------------------------------------------------- 21 // -------------------------------------------------------------------
22 22
23 var callSiteCache = new GlobalMap; 23 var callSiteCache = new GlobalMap;
24 var mapGetFn = GlobalMap.prototype.get; 24 var mapGetFn = GlobalMap.prototype.get;
25 var mapSetFn = GlobalMap.prototype.set; 25 var mapSetFn = GlobalMap.prototype.set;
26 26
27 27
28 function SameCallSiteElements(rawStrings, other) { 28 function SameCallSiteElements(rawStrings, other) {
29 var length = rawStrings.length; 29 var length = rawStrings.length;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 if (!IS_UNDEFINED(cached)) return cached; 73 if (!IS_UNDEFINED(cached)) return cached;
74 74
75 %AddNamedProperty(siteObj, "raw", %ObjectFreeze(rawStrings), 75 %AddNamedProperty(siteObj, "raw", %ObjectFreeze(rawStrings),
76 READ_ONLY | DONT_ENUM | DONT_DELETE); 76 READ_ONLY | DONT_ENUM | DONT_DELETE);
77 77
78 return SetCachedCallSite(%ObjectFreeze(siteObj), hash); 78 return SetCachedCallSite(%ObjectFreeze(siteObj), hash);
79 } 79 }
80 80
81 }) 81 })
OLDNEW
« no previous file with comments | « src/symbol.js ('k') | src/third_party/fdlibm/fdlibm.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698