Fix build.
authorsigurds@chromium.org <sigurds@chromium.org>
Thu, 28 Aug 2014 08:47:11 +0000 (08:47 +0000)
committersigurds@chromium.org <sigurds@chromium.org>
Thu, 28 Aug 2014 08:47:11 +0000 (08:47 +0000)
GCC needs definitions for constant members (clang doesn't).

TBR=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/511133002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23480 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/compiler/function-tester.h

index f2b763c..afed296 100644 (file)
@@ -25,15 +25,14 @@ namespace internal {
 namespace compiler {
 
 class FunctionTester : public InitializedHandleScope {
-  const uint32_t supported_flags =
-      CompilationInfo::kContextSpecializing | CompilationInfo::kInliningEnabled;
-
  public:
   explicit FunctionTester(const char* source, uint32_t flags = 0)
       : isolate(main_isolate()),
         function((FLAG_allow_natives_syntax = true, NewFunction(source))),
         flags_(flags) {
     Compile(function);
+    const uint32_t supported_flags = CompilationInfo::kContextSpecializing |
+                                     CompilationInfo::kInliningEnabled;
     CHECK_EQ(0, flags_ & ~supported_flags);
   }