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

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

Issue 264753002: Adds Simulator Longjmp and enables many tests for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/simulator_arm64.cc ('k') | runtime/vm/stack_frame_test.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/globals.h" 5 #include "platform/globals.h"
6 6
7 #include "include/dart_debugger_api.h" 7 #include "include/dart_debugger_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 void WriteScript(const Script& script) { 827 void WriteScript(const Script& script) {
828 WriteObject(script.raw()); 828 WriteObject(script.raw());
829 UnmarkAll(); 829 UnmarkAll();
830 } 830 }
831 831
832 private: 832 private:
833 DISALLOW_COPY_AND_ASSIGN(TestSnapshotWriter); 833 DISALLOW_COPY_AND_ASSIGN(TestSnapshotWriter);
834 }; 834 };
835 835
836 836
837 // TODO(zra): Remove when tests are ready to enable.
838 #if !defined(TARGET_ARCH_ARM64)
839
840 static void GenerateSourceAndCheck(const Script& script) { 837 static void GenerateSourceAndCheck(const Script& script) {
841 // Check if we are able to generate the source from the token stream. 838 // Check if we are able to generate the source from the token stream.
842 // Rescan this source and compare the token stream to see if they are 839 // Rescan this source and compare the token stream to see if they are
843 // the same. 840 // the same.
844 const TokenStream& expected_tokens = TokenStream::Handle(script.tokens()); 841 const TokenStream& expected_tokens = TokenStream::Handle(script.tokens());
845 TokenStream::Iterator expected_iterator( 842 TokenStream::Iterator expected_iterator(
846 expected_tokens, 0, TokenStream::Iterator::kAllTokens); 843 expected_tokens, 0, TokenStream::Iterator::kAllTokens);
847 const String& str = String::Handle(expected_tokens.GenerateSource()); 844 const String& str = String::Handle(expected_tokens.GenerateSource());
848 const String& private_key = String::Handle(expected_tokens.PrivateKey()); 845 const String& private_key = String::Handle(expected_tokens.PrivateKey());
849 Scanner scanner(str, private_key); 846 Scanner scanner(str, private_key);
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
2712 2709
2713 result = Dart_RunLoop(); 2710 result = Dart_RunLoop();
2714 EXPECT(Dart_IsError(result)); 2711 EXPECT(Dart_IsError(result));
2715 EXPECT(Dart_ErrorHasException(result)); 2712 EXPECT(Dart_ErrorHasException(result));
2716 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", 2713 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n",
2717 Dart_GetError(result)); 2714 Dart_GetError(result));
2718 2715
2719 Dart_ExitScope(); 2716 Dart_ExitScope();
2720 } 2717 }
2721 2718
2722 #endif // !defined(TARGET_ARCH_ARM64)
2723
2724 } // namespace dart 2719 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm64.cc ('k') | runtime/vm/stack_frame_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698