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

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

Issue 2778223002: Add primitive to create closures and use it for closure conversion (Closed)
Patch Set: Skip context param in closure type construction, rather than remove it Created 3 years, 8 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 Class = 2; 10 static const int Class = 2;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 static const int NullReference = 99; 102 static const int NullReference = 99;
103 static const int ClassReference = 100; 103 static const int ClassReference = 100;
104 static const int MemberReference = 101; 104 static const int MemberReference = 101;
105 105
106 static const int VectorCreation = 102; 106 static const int VectorCreation = 102;
107 static const int VectorGet = 103; 107 static const int VectorGet = 103;
108 static const int VectorSet = 104; 108 static const int VectorSet = 104;
109 static const int VectorCopy = 105; 109 static const int VectorCopy = 105;
110 110
111 static const int ClosureCreation = 106;
112
111 static const int SpecializedTagHighBit = 0x80; // 10000000 113 static const int SpecializedTagHighBit = 0x80; // 10000000
112 static const int SpecializedTagMask = 0xF8; // 11111000 114 static const int SpecializedTagMask = 0xF8; // 11111000
113 static const int SpecializedPayloadMask = 0x7; // 00000111 115 static const int SpecializedPayloadMask = 0x7; // 00000111
114 116
115 static const int SpecializedVariableGet = 128; 117 static const int SpecializedVariableGet = 128;
116 static const int SpecializedVariableSet = 136; 118 static const int SpecializedVariableSet = 136;
117 static const int SpecializedIntLiteral = 144; 119 static const int SpecializedIntLiteral = 144;
118 120
119 static const int SpecializedIntLiteralBias = 3; 121 static const int SpecializedIntLiteralBias = 3;
120 122
121 static const int ProgramFile = 0x90ABCDEF; 123 static const int ProgramFile = 0x90ABCDEF;
122 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698