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

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

Issue 14076005: Supports FrameLookup vm test on MIPS (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 #include "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
11 #include "vm/resolver.h" 11 #include "vm/resolver.h"
12 #include "vm/symbols.h" 12 #include "vm/symbols.h"
13 #include "vm/unit_test.h" 13 #include "vm/unit_test.h"
14 14
15 namespace dart { 15 namespace dart {
16 16
17 // Compiler only implemented on IA32, X64, and ARM.
18 #if defined(TARGET_ARCH_IA32) || \
19 defined(TARGET_ARCH_X64) || \
20 defined(TARGET_ARCH_ARM)
21
22 // Setup function for invocation. 17 // Setup function for invocation.
23 static void SetupFunction(const char* test_library_name, 18 static void SetupFunction(const char* test_library_name,
24 const char* test_class_name, 19 const char* test_class_name,
25 const char* test_static_function_name, 20 const char* test_static_function_name,
26 bool is_static) { 21 bool is_static) {
27 // Setup a dart class and function. 22 // Setup a dart class and function.
28 char script_chars[1024]; 23 char script_chars[1024];
29 OS::SNPrint(script_chars, 24 OS::SNPrint(script_chars,
30 sizeof(script_chars), 25 sizeof(script_chars),
31 "class Base {\n" 26 "class Base {\n"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 String::Handle(String::New("dynCall")); 209 String::Handle(String::New("dynCall"));
215 const Function& super_function = Function::Handle( 210 const Function& super_function = Function::Handle(
216 Resolver::ResolveDynamic(receiver, 211 Resolver::ResolveDynamic(receiver,
217 super_function_name, 212 super_function_name,
218 kNumPositionalArguments, 213 kNumPositionalArguments,
219 kNumNamedArguments)); 214 kNumNamedArguments));
220 EXPECT(!super_function.IsNull()); 215 EXPECT(!super_function.IsNull());
221 } 216 }
222 } 217 }
223 218
224 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64 || TARGET_ARCH_ARM
225
226 } // namespace dart 219 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698