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

Side by Side Diff: compiler/lib/implementation/bool.js

Issue 9192007: Simplify equality checks and get rid of unreachable code in number and bool. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | compiler/lib/implementation/core.js » ('j') | compiler/lib/implementation/core.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 function native_BoolImplementation_EQ(other) { 5 function native_BoolImplementation_EQ(other) {
6 return typeof other == 'boolean' && this == other; 6 throw Error('UNREACHABLE');
7 } 7 }
8 8
9 function native_BoolImplementation_toString() { 9 function native_BoolImplementation_toString() {
10 return this.toString(); 10 return this.toString();
11 } 11 }
12 12
13 function native_BoolImplementation_toBool() { 13 function native_BoolImplementation_toBool() {
14 return this == true; 14 return this == true;
15 } 15 }
OLDNEW
« no previous file with comments | « no previous file | compiler/lib/implementation/core.js » ('j') | compiler/lib/implementation/core.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698