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

Unified Diff: src/js/object-observe.js

Issue 1404943002: Use import/export for more functions (instead of js builtins object). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/js/messages.js ('k') | src/js/prologue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/object-observe.js
diff --git a/src/js/object-observe.js b/src/js/object-observe.js
index 44bcbea192d77cdba99cb05ac6eb0efbccbad48c..dcc19c9ec747f3735b02d071e11e226b213b21a1 100644
--- a/src/js/object-observe.js
+++ b/src/js/object-observe.js
@@ -11,14 +11,15 @@
// -------------------------------------------------------------------
// Imports
+var GetHash;
var GlobalArray = global.Array;
var GlobalObject = global.Object;
var InternalArray = utils.InternalArray;
-
var ObjectFreeze;
var ObjectIsFrozen;
utils.Import(function(from) {
+ GetHash = from.GetHash;
ObjectFreeze = from.ObjectFreeze;
ObjectIsFrozen = from.ObjectIsFrozen;
});
@@ -200,7 +201,7 @@ function ObjectInfoGetOrCreate(object) {
performingCount: 0,
};
%WeakCollectionSet(GetObservationStateJS().objectInfoMap,
- object, objectInfo, $getHash(object));
+ object, objectInfo, GetHash(object));
}
return objectInfo;
}
@@ -208,13 +209,13 @@ function ObjectInfoGetOrCreate(object) {
function ObjectInfoGet(object) {
return %WeakCollectionGet(GetObservationStateJS().objectInfoMap, object,
- $getHash(object));
+ GetHash(object));
}
function ObjectInfoGetFromNotifier(notifier) {
return %WeakCollectionGet(GetObservationStateJS().notifierObjectInfoMap,
- notifier, $getHash(notifier));
+ notifier, GetHash(notifier));
}
@@ -223,7 +224,7 @@ function ObjectInfoGetNotifier(objectInfo) {
var notifier = { __proto__: notifierPrototype };
objectInfo.notifier = notifier;
%WeakCollectionSet(GetObservationStateJS().notifierObjectInfoMap,
- notifier, objectInfo, $getHash(notifier));
+ notifier, objectInfo, GetHash(notifier));
}
return objectInfo.notifier;
@@ -335,13 +336,13 @@ function ConvertAcceptListToTypeMap(arg) {
// normalizes. When delivery clears any pending change records, it re-optimizes.
function CallbackInfoGet(callback) {
return %WeakCollectionGet(GetObservationStateJS().callbackInfoMap, callback,
- $getHash(callback));
+ GetHash(callback));
}
function CallbackInfoSet(callback, callbackInfo) {
%WeakCollectionSet(GetObservationStateJS().callbackInfoMap,
- callback, callbackInfo, $getHash(callback));
+ callback, callbackInfo, GetHash(callback));
}
« no previous file with comments | « src/js/messages.js ('k') | src/js/prologue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698