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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/builtin_operator.dart

Issue 1278013003: dart2js cps: Introduce '<<' operator in type propagation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Extra comment Created 5 years, 4 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/compiler/lib/src/cps_ir/type_propagation.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 library builtin_operator; 4 library builtin_operator;
5 // This is shared by the CPS and Tree IRs. 5 // This is shared by the CPS and Tree IRs.
6 // Both cps_ir_nodes and tree_ir_nodes import and re-export this file. 6 // Both cps_ir_nodes and tree_ir_nodes import and re-export this file.
7 7
8 /// An operator supported natively in the CPS and Tree IRs using the 8 /// An operator supported natively in the CPS and Tree IRs using the
9 /// `ApplyBuiltinOperator` instructions. 9 /// `ApplyBuiltinOperator` instructions.
10 /// 10 ///
(...skipping 14 matching lines...) Expand all
25 enum BuiltinOperator { 25 enum BuiltinOperator {
26 /// The numeric binary operators must take two numbers as argument. 26 /// The numeric binary operators must take two numbers as argument.
27 /// The bitwise operators coerce the result to an unsigned integer, but 27 /// The bitwise operators coerce the result to an unsigned integer, but
28 /// otherwise these all behave like the corresponding JS operator. 28 /// otherwise these all behave like the corresponding JS operator.
29 NumAdd, 29 NumAdd,
30 NumSubtract, 30 NumSubtract,
31 NumMultiply, 31 NumMultiply,
32 NumAnd, 32 NumAnd,
33 NumOr, 33 NumOr,
34 NumXor, 34 NumXor,
35 NumShl,
35 NumLt, 36 NumLt,
36 NumLe, 37 NumLe,
37 NumGt, 38 NumGt,
38 NumGe, 39 NumGe,
39 40
40 /// Concatenates any number of strings. 41 /// Concatenates any number of strings.
41 /// 42 ///
42 /// Takes any number of arguments, and each argument must be a string. 43 /// Takes any number of arguments, and each argument must be a string.
43 /// 44 ///
44 /// Returns the empty string if no arguments are given. 45 /// Returns the empty string if no arguments are given.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 /// Compiles to `Math.floor(x) === x` 97 /// Compiles to `Math.floor(x) === x`
97 IsFloor, 98 IsFloor,
98 99
99 /// Returns true if the argument is an integer. 100 /// Returns true if the argument is an integer.
100 /// 101 ///
101 /// The argument must be repeated 3 times. 102 /// The argument must be repeated 3 times.
102 /// 103 ///
103 /// Compiles to `typeof x === 'number' && Math.floor(x) === x` 104 /// Compiles to `typeof x === 'number' && Math.floor(x) === x`
104 IsNumberAndFloor, 105 IsNumberAndFloor,
105 } 106 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698