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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart

Issue 11419118: Change === to identical in the dart2js source. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
index 8a58bcfbddf8d302a28dc03e8e536fc64819a6d9..d60b86e0754782dad68f1dcf36ec6be3a9906194 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
@@ -2246,7 +2246,7 @@ class HEquals extends HRelational {
accept(HVisitor visitor) => visitor.visitEquals(this);
bool isBuiltin(HTypeMap types) {
- // All primitive types have === semantics.
+ // All primitive types have 'identical' semantics.
// Note that this includes all constants except the user-constructed
// objects.
return types[left].isPrimitiveOrNull() || right.isConstantNull();
@@ -2262,7 +2262,7 @@ class HEquals extends HRelational {
Compiler compiler) {
HType propagatedType = types[this];
if (input == left && types[right].isUseful()) {
- // All our useful types have === semantics. But we don't want to
+ // All our useful types have 'identical' semantics. But we don't want to
// speculatively test for all possible types. Therefore we try to match
// the two types. That is, if we see x == 3, then we speculatively test
// if x is a number and bailout if it isn't.

Powered by Google App Engine
This is Rietveld 408576698