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

Side by Side Diff: pkg/analyzer/lib/src/summary/format.dart

Issue 1648783002: Repalce shiftOr with pushLongInt, tweak makeSymbol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « no previous file | pkg/analyzer/lib/src/summary/summarize_const_expr.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files".
7 7
8 library analyzer.src.summary.format; 8 library analyzer.src.summary.format;
9 9
10 import 'base.dart' as base; 10 import 'base.dart' as base;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 * Push the value of the n-th constructor argument (where n is obtained from 89 * Push the value of the n-th constructor argument (where n is obtained from
90 * [UnlinkedConst.ints]) onto the stack. 90 * [UnlinkedConst.ints]) onto the stack.
91 */ 91 */
92 pushArgument, 92 pushArgument,
93 93
94 /** 94 /**
95 * Push the next value from [UnlinkedConst.ints] (a 32-bit unsigned integer) 95 * Push the next value from [UnlinkedConst.ints] (a 32-bit unsigned integer)
96 * onto the stack. 96 * onto the stack.
97 * 97 *
98 * Note that Dart supports integers larger than 32 bits; these are 98 * Note that Dart supports integers larger than 32 bits; these are
99 * represented by composing 32 bit values using the [shiftOr] operation. 99 * represented by composing 32-bit values using the [pushLongInt] operation.
100 */ 100 */
101 pushInt, 101 pushInt,
102 102
103 /** 103 /**
104 * Pop the top value off the stack, which should be an integer. Multiply it 104 * Get the number of components from [UnlinkedConst.ints], then do this number
105 * by 2^32, "or" in the next value from [UnlinkedConst.ints] (which is 105 * of times the following operations: multiple the current value by 2^32, "or"
106 * interpreted as a 32-bit unsigned integer), and push the result back onto 106 * it with the next value in [UnlinkedConst.ints]. The initial value is zero.
107 * the stack. 107 * Push the result into the stack.
108 */ 108 */
109 shiftOr, 109 pushLongInt,
110 110
111 /** 111 /**
112 * Push the next value from [UnlinkedConst.doubles] (a double precision 112 * Push the next value from [UnlinkedConst.doubles] (a double precision
113 * floating point value) onto the stack. 113 * floating point value) onto the stack.
114 */ 114 */
115 pushDouble, 115 pushDouble,
116 116
117 /** 117 /**
118 * Push the constant `true` onto the stack. 118 * Push the constant `true` onto the stack.
119 */ 119 */
(...skipping 13 matching lines...) Expand all
133 * Pop the top n values from the stack (where n is obtained from 133 * Pop the top n values from the stack (where n is obtained from
134 * [UnlinkedConst.ints]), convert them to strings (if they aren't already), 134 * [UnlinkedConst.ints]), convert them to strings (if they aren't already),
135 * concatenate them into a single string, and push it back onto the stack. 135 * concatenate them into a single string, and push it back onto the stack.
136 * 136 *
137 * This operation is used to represent constants whose value is a literal 137 * This operation is used to represent constants whose value is a literal
138 * string containing string interpolations. 138 * string containing string interpolations.
139 */ 139 */
140 concatenate, 140 concatenate,
141 141
142 /** 142 /**
143 * Pop the top value from the stack which should be string, convert it to 143 * Get the next value from [UnlinkedConst.strings], convert it to a symbol,
144 * a symbol, and push it back onto the stack. 144 * and push it onto the stack.
145 */ 145 */
146 makeSymbol, 146 makeSymbol,
147 147
148 /** 148 /**
149 * Push the constant `null` onto the stack. 149 * Push the constant `null` onto the stack.
150 */ 150 */
151 pushNull, 151 pushNull,
152 152
153 /** 153 /**
154 * Evaluate a (potentially qualified) identifier expression and push the 154 * Evaluate a (potentially qualified) identifier expression and push the
(...skipping 5948 matching lines...) Expand 10 before | Expand all | Expand 10 after
6103 "type": type, 6103 "type": type,
6104 "constExpr": constExpr, 6104 "constExpr": constExpr,
6105 "isStatic": isStatic, 6105 "isStatic": isStatic,
6106 "isFinal": isFinal, 6106 "isFinal": isFinal,
6107 "isConst": isConst, 6107 "isConst": isConst,
6108 "propagatedTypeSlot": propagatedTypeSlot, 6108 "propagatedTypeSlot": propagatedTypeSlot,
6109 "inferredTypeSlot": inferredTypeSlot, 6109 "inferredTypeSlot": inferredTypeSlot,
6110 }; 6110 };
6111 } 6111 }
6112 6112
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/summarize_const_expr.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698