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

Unified Diff: src/collection.js

Issue 1293493004: Unify symbols sharing across native scripts and runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/collection.js
diff --git a/src/collection.js b/src/collection.js
index 6d43384e1cecf440de2abc3067cab0a51528ae9c..07d7c5c61b99c4256e2321fdaeb3ad570713fac5 100644
--- a/src/collection.js
+++ b/src/collection.js
@@ -16,6 +16,7 @@ var $getExistingHash;
var GlobalMap = global.Map;
var GlobalObject = global.Object;
var GlobalSet = global.Set;
+var hashCodeSymbol = utils.GetPrivateSymbol("hash_code_symbol");
var IntRandom;
utils.Import(function(from) {
@@ -90,8 +91,6 @@ function ComputeIntegerHash(key, seed) {
}
%SetForceInlineFlag(ComputeIntegerHash);
-var hashCodeSymbol = GLOBAL_PRIVATE("hash_code_symbol");
-
function GetExistingHash(key) {
if (%_IsSmi(key)) {
return ComputeIntegerHash(key, 0);
« 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