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

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

Issue 221133002: Begins work on ARM64, first assembler test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Adds TODOs 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
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"
7 #if !defined(TARGET_ARCH_ARM64)
8
5 #include "platform/assert.h" 9 #include "platform/assert.h"
6 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
7 #include "vm/compiler.h" 11 #include "vm/compiler.h"
8 #include "vm/object.h" 12 #include "vm/object.h"
9 #include "vm/pages.h" 13 #include "vm/pages.h"
10 #include "vm/stack_frame.h" 14 #include "vm/stack_frame.h"
11 #include "vm/symbols.h" 15 #include "vm/symbols.h"
12 #include "vm/unit_test.h" 16 #include "vm/unit_test.h"
13 17
14 namespace dart { 18 namespace dart {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 EXPECT(code.Size() > 16); 153 EXPECT(code.Size() > 16);
150 pc = code.EntryPoint() + 16; 154 pc = code.EntryPoint() + 16;
151 EXPECT(code.Size() > (PageSpace::kPageSizeInWords << kWordSizeLog2)); 155 EXPECT(code.Size() > (PageSpace::kPageSizeInWords << kWordSizeLog2));
152 EXPECT(Code::LookupCode(pc) == code.raw()); 156 EXPECT(Code::LookupCode(pc) == code.raw());
153 EXPECT(code.Size() > (1 * MB)); 157 EXPECT(code.Size() > (1 * MB));
154 pc = code.EntryPoint() + (1 * MB); 158 pc = code.EntryPoint() + (1 * MB);
155 EXPECT(Code::LookupCode(pc) == code.raw()); 159 EXPECT(Code::LookupCode(pc) == code.raw());
156 } 160 }
157 161
158 } // namespace dart 162 } // namespace dart
163
164 #endif // !defined(TARGET_ARCH_ARM64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698