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

Unified Diff: sdk/lib/_internal/js_runtime/lib/native_helper.dart

Issue 1408193009: dart2js cps_ir: propagate constant field values (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/native_helper.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/native_helper.dart b/sdk/lib/_internal/js_runtime/lib/native_helper.dart
index e87ace9432b98bbb18bb548c36ef3a807e262783..30d3ba7458745ee64f0a0888b47e10f3c32f51ff 100644
--- a/sdk/lib/_internal/js_runtime/lib/native_helper.dart
+++ b/sdk/lib/_internal/js_runtime/lib/native_helper.dart
@@ -164,6 +164,7 @@ const DISCRIMINATED_MARK = '*';
* A dispatch record is cached according to the specification of the dispatch
* tag for [obj].
*/
+@NoInline()
lookupAndCacheInterceptor(obj) {
assert(!isDartObject(obj));
String tag = getTagFunction(obj);
@@ -288,12 +289,14 @@ String constructorNameFallback(object) {
var initNativeDispatchFlag; // null or true
+@NoInline()
void initNativeDispatch() {
if (true == initNativeDispatchFlag) return;
initNativeDispatchFlag = true;
initNativeDispatchContinue();
}
+@NoInline()
void initNativeDispatchContinue() {
dispatchRecordsForInstanceTags = JS('', 'Object.create(null)');
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698