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

Side by Side Diff: runtime/vm/snapshot_test.cc

Issue 16398006: BREAKING CHANGE: Remove === and !== in the VM compiler (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « runtime/vm/scanner.cc ('k') | tests/language/canonical_const_test.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include "include/dart_debugger_api.h" 5 #include "include/dart_debugger_api.h"
6 #include "platform/assert.h" 6 #include "platform/assert.h"
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_api_message.h" 10 #include "vm/dart_api_message.h"
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 " Fields(int i, int j) : fld1 = i, fld2 = j {}" 1054 " Fields(int i, int j) : fld1 = i, fld2 = j {}"
1055 " int fld1;" 1055 " int fld1;"
1056 " final int fld2;" 1056 " final int fld2;"
1057 " static int fld3;" 1057 " static int fld3;"
1058 " static const int fld4 = 10;" 1058 " static const int fld4 = 10;"
1059 "}" 1059 "}"
1060 "class FieldsTest {" 1060 "class FieldsTest {"
1061 " static Fields testMain() {" 1061 " static Fields testMain() {"
1062 " Fields obj = new Fields(10, 20);" 1062 " Fields obj = new Fields(10, 20);"
1063 " Fields.fld3 = 100;" 1063 " Fields.fld3 = 100;"
1064 " if (obj === null) {" 1064 " if (obj == null) {"
1065 " throw new Exception('Allocation failure');" 1065 " throw new Exception('Allocation failure');"
1066 " }" 1066 " }"
1067 " if (obj.fld1 != 10) {" 1067 " if (obj.fld1 != 10) {"
1068 " throw new Exception('fld1 needs to be 10');" 1068 " throw new Exception('fld1 needs to be 10');"
1069 " }" 1069 " }"
1070 " if (obj.fld2 != 20) {" 1070 " if (obj.fld2 != 20) {"
1071 " throw new Exception('fld2 needs to be 20');" 1071 " throw new Exception('fld2 needs to be 20');"
1072 " }" 1072 " }"
1073 " if (Fields.fld3 != 100) {" 1073 " if (Fields.fld3 != 100) {"
1074 " throw new Exception('Fields.fld3 needs to be 100');" 1074 " throw new Exception('Fields.fld3 needs to be 100');"
(...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after
2488 result = Dart_RunLoop(); 2488 result = Dart_RunLoop();
2489 EXPECT(Dart_IsError(result)); 2489 EXPECT(Dart_IsError(result));
2490 EXPECT(Dart_ErrorHasException(result)); 2490 EXPECT(Dart_ErrorHasException(result));
2491 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", 2491 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n",
2492 Dart_GetError(result)); 2492 Dart_GetError(result));
2493 2493
2494 Dart_ExitScope(); 2494 Dart_ExitScope();
2495 } 2495 }
2496 2496
2497 } // namespace dart 2497 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/scanner.cc ('k') | tests/language/canonical_const_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698