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

Unified Diff: pkg/kernel/lib/binary/ast_from_binary.dart

Issue 2780513004: [Kernel] Remove code from the old type propagation. (Closed)
Patch Set: Remove empty status file section Created 3 years, 9 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 | « pkg/kernel/lib/ast.dart ('k') | pkg/kernel/lib/binary/ast_to_binary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/binary/ast_from_binary.dart
diff --git a/pkg/kernel/lib/binary/ast_from_binary.dart b/pkg/kernel/lib/binary/ast_from_binary.dart
index 11d49a2aa67a47527b4fdc59f980e30c37c4efe6..64563eb27bd79e1f7c6b6f89ac18e8fa7c6f0ca0 100644
--- a/pkg/kernel/lib/binary/ast_from_binary.dart
+++ b/pkg/kernel/lib/binary/ast_from_binary.dart
@@ -133,16 +133,6 @@ class BinaryBuilder {
return string.isEmpty ? null : string;
}
- InferredValue readOptionalInferredValue() {
- if (readAndCheckOptionTag()) {
- Reference baseClass = readClassReference(allowNull: true);
- BaseClassKind baseClassKind = BaseClassKind.values[readByte()];
- int valueBits = readByte();
- return new InferredValue.byReference(baseClass, baseClassKind, valueBits);
- }
- return null;
- }
-
bool readAndCheckOptionTag() {
int tag = readByte();
if (tag == Tag.Nothing) {
@@ -453,7 +443,6 @@ class BinaryBuilder {
var annotations = readAnnotationList(node);
debugPath.add(node.name?.name ?? 'field');
var type = readDartType();
- var inferredValue = readOptionalInferredValue();
var initializer = readExpressionOption();
int transformerFlags = getAndResetTransformerFlags();
debugPath.removeLast();
@@ -465,7 +454,6 @@ class BinaryBuilder {
node.fileUri = fileUri;
node.annotations = annotations;
node.type = type;
- node.inferredValue = inferredValue;
node.initializer = initializer;
node.initializer?.parent = node;
node.transformerFlags = transformerFlags;
@@ -582,7 +570,6 @@ class BinaryBuilder {
var positional = readAndPushVariableDeclarationList();
var named = readAndPushVariableDeclarationList();
var returnType = readDartType();
- var inferredReturnValue = readOptionalInferredValue();
int oldLabelStackBase = labelStackBase;
labelStackBase = labelStack.length;
var body = readStatementOption();
@@ -595,7 +582,6 @@ class BinaryBuilder {
positionalParameters: positional,
namedParameters: named,
returnType: returnType,
- inferredReturnValue: inferredReturnValue,
asyncMarker: asyncMarker,
dartAsyncMarker: dartAsyncMarker)
..fileOffset = offset
@@ -1127,7 +1113,6 @@ class BinaryBuilder {
int flags = readByte();
return new VariableDeclaration(readStringOrNullIfEmpty(),
type: readDartType(),
- inferredValue: readOptionalInferredValue(),
initializer: readExpressionOption(),
isFinal: flags & 0x1 != 0,
isConst: flags & 0x2 != 0)
« no previous file with comments | « pkg/kernel/lib/ast.dart ('k') | pkg/kernel/lib/binary/ast_to_binary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698