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

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

Issue 9250005: Fix dartc in optimized mode (broken in r3358). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. 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
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 /** 5 /**
6 * Helpers for lazy static initialization. 6 * Helpers for lazy static initialization.
7 */ 7 */
8 var static$uninitialized = {}; 8 var static$uninitialized = {};
9 var static$initializing = {}; 9 var static$initializing = {};
10 10
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 /** 362 /**
363 * These operators need to work correctly with undefined 363 * These operators need to work correctly with undefined
364 * so must be functions. 364 * so must be functions.
365 */ 365 */
366 function EQ$operator(val1, val2) { 366 function EQ$operator(val1, val2) {
367 if (val1 === $Dart$Null) { 367 if (val1 === $Dart$Null) {
368 return val2 === $Dart$Null; 368 return val2 === $Dart$Null;
369 } else if (typeof(val1) == typeof(val2) && typeof val1 != 'object') { 369 } else if (typeof(val1) == typeof(val2) && typeof val1 != 'object') {
370 // number, boolean, string 370 // number, boolean, string
371 return val1 === val2; 371 return val1 === val2;
372 } 372 }
373 return val1.EQ$operator(val2); 373 return val1.EQ$operator(val2);
374 } 374 }
375 375
376 function NE$operator(val1, val2) { 376 function NE$operator(val1, val2) {
377 return !EQ$operator(val1, val2); 377 return !EQ$operator(val1, val2);
378 } 378 }
379 379
380 // The following operator-functions are not called from Dart-generated code, but 380 // The following operator-functions are not called from Dart-generated code, but
381 // only from handwritten JS code. 381 // only from handwritten JS code.
382 function INDEX$operator(obj, index) { 382 function INDEX$operator(obj, index) {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 return match; 527 return match;
528 } 528 }
529 o.$dartConstId = id; 529 o.$dartConstId = id;
530 $consts[key] = o; 530 $consts[key] = o;
531 return o; 531 return o;
532 } 532 }
533 533
534 function $Dart$MapLiteralFactory() { 534 function $Dart$MapLiteralFactory() {
535 return native__CoreJsUtil__newMapLiteral(); 535 return native__CoreJsUtil__newMapLiteral();
536 } 536 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698