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

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

Issue 9242025: Enable remaining execution tests on x64. (Closed) Base URL: http://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 | « runtime/vm/resolver_test.cc ('k') | runtime/vm/stub_code_x64.cc » ('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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/bigint_operations.h" 6 #include "vm/bigint_operations.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/snapshot.h" 8 #include "vm/snapshot.h"
9 #include "vm/unit_test.h" 9 #include "vm/unit_test.h"
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 String& actual_literal = String::Handle(); 291 String& actual_literal = String::Handle();
292 for (intptr_t i = 0; i < expected_tokens.Length(); i++) { 292 for (intptr_t i = 0; i < expected_tokens.Length(); i++) {
293 EXPECT_EQ(expected_tokens.KindAt(i), serialized_tokens.KindAt(i)); 293 EXPECT_EQ(expected_tokens.KindAt(i), serialized_tokens.KindAt(i));
294 expected_literal ^= expected_tokens.LiteralAt(i); 294 expected_literal ^= expected_tokens.LiteralAt(i);
295 actual_literal ^= serialized_tokens.LiteralAt(i); 295 actual_literal ^= serialized_tokens.LiteralAt(i);
296 EXPECT(expected_literal.Equals(actual_literal)); 296 EXPECT(expected_literal.Equals(actual_literal));
297 } 297 }
298 } 298 }
299 299
300 300
301 #if defined(TARGET_ARCH_IA32) // only ia32 can run execution tests. 301 // Only ia32 and x64 can run execution tests.
302 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
302 UNIT_TEST_CASE(FullSnapshot) { 303 UNIT_TEST_CASE(FullSnapshot) {
303 const char* kScriptChars = 304 const char* kScriptChars =
304 "class Fields {\n" 305 "class Fields {\n"
305 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n" 306 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n"
306 " int fld1;\n" 307 " int fld1;\n"
307 " final int fld2;\n" 308 " final int fld2;\n"
308 " static int fld3;\n" 309 " static int fld3;\n"
309 " static final int fld4 = 10;\n" 310 " static final int fld4 = 10;\n"
310 "}\n" 311 "}\n"
311 "class FieldsTest {\n" 312 "class FieldsTest {\n"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 0, 517 0,
517 NULL); 518 NULL);
518 EXPECT_VALID(result); 519 EXPECT_VALID(result);
519 Dart_ExitScope(); 520 Dart_ExitScope();
520 } 521 }
521 Dart_ShutdownIsolate(); 522 Dart_ShutdownIsolate();
522 free(full_snapshot); 523 free(full_snapshot);
523 free(script_snapshot); 524 free(script_snapshot);
524 } 525 }
525 526
526 #endif // TARGET_ARCH_IA32. 527 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
527 528
528 } // namespace dart 529 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/resolver_test.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698