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

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

Issue 2665723002: Implement canonical name scheme in kernel. (Closed)
Patch Set: 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 static const int InvalidType = 90; 90 static const int InvalidType = 90;
92 static const int DynamicType = 91; 91 static const int DynamicType = 91;
93 static const int VoidType = 92; 92 static const int VoidType = 92;
94 static const int InterfaceType = 93; 93 static const int InterfaceType = 93;
95 static const int FunctionType = 94; 94 static const int FunctionType = 94;
96 static const int TypeParameterType = 95; 95 static const int TypeParameterType = 95;
97 static const int SimpleInterfaceType = 96; 96 static const int SimpleInterfaceType = 96;
98 static const int SimpleFunctionType = 97; 97 static const int SimpleFunctionType = 97;
99 98
100 static const int NullReference = 99; 99 static const int NullReference = 99;
101 static const int NormalClassReference = 100; 100 static const int ClassReference = 100;
102 static const int MixinClassReference = 101; 101 static const int MemberReference = 101;
103
104 static const int LibraryFieldReference = 102;
105 static const int ClassFieldReference = 103;
106 static const int ClassConstructorReference = 104;
107 static const int LibraryProcedureReference = 105;
108 static const int ClassProcedureReference = 106;
109 102
110 static const int SpecializedTagHighBit = 0x80; // 10000000 103 static const int SpecializedTagHighBit = 0x80; // 10000000
111 static const int SpecializedTagMask = 0xF8; // 11111000 104 static const int SpecializedTagMask = 0xF8; // 11111000
112 static const int SpecializedPayloadMask = 0x7; // 00000111 105 static const int SpecializedPayloadMask = 0x7; // 00000111
113 106
114 static const int SpecializedVariableGet = 128; 107 static const int SpecializedVariableGet = 128;
115 static const int SpecializedVariableSet = 136; 108 static const int SpecializedVariableSet = 136;
116 static const int SpecializedIntLiteral = 144; 109 static const int SpecializedIntLiteral = 144;
117 110
118 static const int SpecializedIntLiteralBias = 3; 111 static const int SpecializedIntLiteralBias = 3;
119 112
120 static const int ProgramFile = 0x90ABCDEF; 113 static const int ProgramFile = 0x90ABCDEF;
121 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698