Commit 6afb739e authored by sigurds@chromium.org's avatar sigurds@chromium.org

Fix build.

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
parent e7817a9e
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment