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

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

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

Powered by Google App Engine
This is Rietveld 408576698