Index: runtime/vm/find_code_object_test.cc |
diff --git a/runtime/vm/find_code_object_test.cc b/runtime/vm/find_code_object_test.cc |
index b7e437b4b1356cae4387e0fd48f015d58d81c787..2f53147f506e2acaaa457333bf188591bf25628a 100644 |
--- a/runtime/vm/find_code_object_test.cc |
+++ b/runtime/vm/find_code_object_test.cc |
@@ -13,19 +13,20 @@ |
namespace dart { |
-VM_TEST_CASE(FindCodeObject) { |
#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) |
- const int kLoopCount = 50000; |
- const int kScriptSize = 512 * KB; |
+static const int kScriptSize = 512 * KB; |
+static const int kLoopCount = 50000; |
#elif defined(TARGET_ARCH_DBC) |
- const int kLoopCount = 60000; |
- const int kScriptSize = 1 * MB; |
+static const int kScriptSize = 1 * MB; |
+static const int kLoopCount = 60000; |
#else |
- const int kLoopCount = 25000; |
- const int kScriptSize = 512 * KB; |
+static const int kScriptSize = 512 * KB; |
+static const int kLoopCount = 25000; |
#endif |
+static char scriptChars[kScriptSize]; |
+ |
+VM_TEST_CASE(FindCodeObject) { |
const int kNumFunctions = 1024; |
- char scriptChars[kScriptSize]; |
// Get access to the code index table. |
Isolate* isolate = Isolate::Current(); |