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

Side by Side Diff: pkg/kernel/lib/binary/tag.dart

Issue 2665723002: Implement canonical name scheme in kernel. (Closed)
Patch Set: Address Kevin's comments Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « pkg/kernel/lib/binary/loader.dart ('k') | pkg/kernel/lib/canonical_name.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 library kernel.binary.tag; 4 library kernel.binary.tag;
5 5
6 class Tag { 6 class Tag {
7 static const int Nothing = 0; 7 static const int Nothing = 0;
8 static const int Something = 1; 8 static const int Something = 1;
9 9
10 static const int NormalClass = 2; 10 static const int Class = 2;
11 static const int MixinClass = 3;
12 11
13 static const int Field = 4; 12 static const int Field = 4;
14 static const int Constructor = 5; 13 static const int Constructor = 5;
15 static const int Procedure = 6; 14 static const int Procedure = 6;
16 15
17 static const int InvalidInitializer = 7; 16 static const int InvalidInitializer = 7;
18 static const int FieldInitializer = 8; 17 static const int FieldInitializer = 8;
19 static const int SuperInitializer = 9; 18 static const int SuperInitializer = 9;
20 static const int RedirectingInitializer = 10; 19 static const int RedirectingInitializer = 10;
21 static const int LocalInitializer = 11; 20 static const int LocalInitializer = 11;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 static const int InvalidType = 90; 92 static const int InvalidType = 90;
94 static const int DynamicType = 91; 93 static const int DynamicType = 91;
95 static const int VoidType = 92; 94 static const int VoidType = 92;
96 static const int InterfaceType = 93; 95 static const int InterfaceType = 93;
97 static const int FunctionType = 94; 96 static const int FunctionType = 94;
98 static const int TypeParameterType = 95; 97 static const int TypeParameterType = 95;
99 static const int SimpleInterfaceType = 96; 98 static const int SimpleInterfaceType = 96;
100 static const int SimpleFunctionType = 97; 99 static const int SimpleFunctionType = 97;
101 100
102 static const int NullReference = 99; 101 static const int NullReference = 99;
103 static const int NormalClassReference = 100; 102 static const int ClassReference = 100;
104 static const int MixinClassReference = 101; 103 static const int MemberReference = 101;
105
106 static const int LibraryFieldReference = 102;
107 static const int ClassFieldReference = 103;
108 static const int ClassConstructorReference = 104;
109 static const int LibraryProcedureReference = 105;
110 static const int ClassProcedureReference = 106;
111 104
112 static const int SpecializedTagHighBit = 0x80; // 10000000 105 static const int SpecializedTagHighBit = 0x80; // 10000000
113 static const int SpecializedTagMask = 0xF8; // 11111000 106 static const int SpecializedTagMask = 0xF8; // 11111000
114 static const int SpecializedPayloadMask = 0x7; // 00000111 107 static const int SpecializedPayloadMask = 0x7; // 00000111
115 108
116 static const int SpecializedVariableGet = 128; 109 static const int SpecializedVariableGet = 128;
117 static const int SpecializedVariableSet = 136; 110 static const int SpecializedVariableSet = 136;
118 static const int SpecializedIntLiteral = 144; 111 static const int SpecializedIntLiteral = 144;
119 112
120 static const int SpecializedIntLiteralBias = 3; 113 static const int SpecializedIntLiteralBias = 3;
121 114
122 static const int ProgramFile = 0x90ABCDEF; 115 static const int ProgramFile = 0x90ABCDEF;
123 } 116 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/binary/loader.dart ('k') | pkg/kernel/lib/canonical_name.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698