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

Side by Side Diff: src/collection.js

Issue 1307963002: Native context: alpha sort slots and remove boilerplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename 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/bootstrapper.cc ('k') | src/contexts.h » ('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 $getHash; 5 var $getHash;
6 var $getExistingHash; 6 var $getExistingHash;
7 7
8 (function(global, utils) { 8 (function(global, utils) {
9 "use strict"; 9 "use strict";
10 10
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 for (var i = 0; i < length; ++i) { 496 for (var i = 0; i < length; ++i) {
497 %_CallFunction(set, array[i], SetAdd); 497 %_CallFunction(set, array[i], SetAdd);
498 } 498 }
499 return set; 499 return set;
500 }; 500 };
501 501
502 // ----------------------------------------------------------------------- 502 // -----------------------------------------------------------------------
503 // Exports 503 // Exports
504 504
505 utils.ExportToRuntime(function(to) { 505 utils.ExportToRuntime(function(to) {
506 to.MapGet = MapGet; 506 to["map_get"] = MapGet;
507 to.MapSet = MapSet; 507 to["map_set"] = MapSet;
508 to.MapHas = MapHas; 508 to["map_has"] = MapHas;
509 to.MapDelete = MapDelete; 509 to["map_delete"] = MapDelete;
510 to.SetAdd = SetAdd; 510 to["set_add"] = SetAdd;
511 to.SetHas = SetHas; 511 to["set_has"] = SetHas;
512 to.SetDelete = SetDelete; 512 to["set_delete"] = SetDelete;
513 to.MapFromArray = MapFromArray; 513 to["map_from_array"] = MapFromArray;
514 to.SetFromArray = SetFromArray; 514 to["set_from_array"]= SetFromArray;
515 }); 515 });
516 516
517 }) 517 })
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698