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

Unified Diff: pkg/compiler/lib/src/ssa/codegen.dart

Issue 2306813003: Rename $builtinType to $ti (Closed)
Patch Set: reformat Created 4 years, 3 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
Index: pkg/compiler/lib/src/ssa/codegen.dart
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart
index c23534849e2db61af309843f148fede61c7b15c5..0d6376ecd83102490e74afed5f99d485b0b4c269 100644
--- a/pkg/compiler/lib/src/ssa/codegen.dart
+++ b/pkg/compiler/lib/src/ssa/codegen.dart
@@ -2858,7 +2858,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
void visitTypeInfoReadRaw(HTypeInfoReadRaw node) {
use(node.inputs[0]);
js.Expression receiver = pop();
- push(js.js(r'#.$builtinTypeInfo', receiver));
+ push(js.js(r'#.#', [receiver, backend.namer.rtiFieldName]));
}
void visitTypeInfoReadVariable(HTypeInfoReadVariable node) {
@@ -2937,8 +2937,15 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
js.Expression receiver = pop();
js.Expression helper =
backend.emitter.staticFunctionAccess(helperElement);
- push(js.js(r'#(#.$builtinTypeInfo && #.$builtinTypeInfo[#])',
- [helper, receiver, receiver, js.js.number(index)]));
+ js.Expression rtiFieldName = backend.namer.rtiFieldName;
+ push(js.js(r'#(#.# && #.#[#])', [
+ helper,
+ receiver,
+ rtiFieldName,
+ receiver,
+ rtiFieldName,
+ js.js.number(index)
+ ]));
} else {
backend.emitter.registerReadTypeVariable(element);
push(js.js(
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_rti.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698