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

Unified Diff: src/object-observe.js

Issue 1306993003: Call JS functions via native context instead of js builtins object. (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/messages.js ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/object-observe.js
diff --git a/src/object-observe.js b/src/object-observe.js
index 243e093244eb3378a5d4ca586b2b4c0597eeffdb..0f1f6d37fbadab8acd1b12968fed89e70a93f62c 100644
--- a/src/object-observe.js
+++ b/src/object-observe.js
@@ -703,15 +703,14 @@ $observeEnqueueSpliceRecord = EnqueueSpliceRecord;
$observeBeginPerformSplice = BeginPerformSplice;
$observeEndPerformSplice = EndPerformSplice;
-utils.ExportToRuntime(function(to) {
- to["native_object_get_notifier"] = NativeObjectGetNotifier;
- to["native_object_notifier_perform_change"] =
- NativeObjectNotifierPerformChange;
- to["native_object_observe"] = NativeObjectObserve;
- to["observers_begin_perform_splice"] = BeginPerformSplice;
- to["observers_end_perform_splice"] = EndPerformSplice;
- to["observers_enqueue_splice"] = EnqueueSpliceRecord;
- to["observers_notify_change"] = NotifyChange;
-});
+%InstallToContext([
+ "native_object_get_notifier", NativeObjectGetNotifier,
+ "native_object_notifier_perform_change", NativeObjectNotifierPerformChange,
+ "native_object_observe", NativeObjectObserve,
+ "observers_begin_perform_splice", BeginPerformSplice,
+ "observers_end_perform_splice", EndPerformSplice,
+ "observers_enqueue_splice", EnqueueSpliceRecord,
+ "observers_notify_change", NotifyChange,
+]);
})
« no previous file with comments | « src/messages.js ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698