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

Unified Diff: dart/sdk/lib/_internal/lib/js_names.dart

Issue 50313007: Implement dynamic function checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r30897. Created 7 years 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
Index: dart/sdk/lib/_internal/lib/js_names.dart
diff --git a/dart/sdk/lib/_internal/lib/js_names.dart b/dart/sdk/lib/_internal/lib/js_names.dart
index 90ad3cf871f9cb5c54cf0beb5b90c28d5e5d0fde..6aa3632cb49106d613b84e335a8da4d331291510 100644
--- a/dart/sdk/lib/_internal/lib/js_names.dart
+++ b/dart/sdk/lib/_internal/lib/js_names.dart
@@ -4,9 +4,13 @@
library dart._js_names;
-import 'dart:_foreign_helper' show JS, JS_GET_NAME;
+import 'dart:_foreign_helper' show
+ JS,
+ JS_GET_NAME;
-import 'dart:_js_helper' show JsCache;
+import 'dart:_js_helper' show
+ JsCache,
+ NoInline;
import 'dart:_interceptors' show JSArray;
@@ -65,6 +69,7 @@ Map<String, String> computeReflectiveNames(Map<String, String> map) {
return result;
}
+@NoInline()
List extractKeys(victim) {
var result = JS('', '''
(function(victim, hasOwnProperty) {

Powered by Google App Engine
This is Rietveld 408576698