| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 4b6fa9c8527d41df327a7afdca8f2321131d0ec5..a30aca63d1e611771153986cc85c3c178a453985 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -37,6 +37,7 @@
|
| #include "top.h"
|
| #include "utils.h"
|
| #include "cctest.h"
|
| +#include "parser.h"
|
|
|
| static const bool kLogThreading = true;
|
|
|
| @@ -8601,15 +8602,12 @@ TEST(PreCompileInvalidPreparseDataError) {
|
| v8::ScriptData::PreCompile(script, i::StrLength(script));
|
| CHECK(!sd->HasError());
|
| // ScriptDataImpl private implementation details
|
| - const int kUnsignedSize = sizeof(unsigned);
|
| - const int kHeaderSize = 4;
|
| - const int kFunctionEntrySize = 5;
|
| + const int kHeaderSize = i::ScriptDataImpl::kHeaderSize;
|
| + const int kFunctionEntrySize = i::FunctionEntry::kSize;
|
| const int kFunctionEntryStartOffset = 0;
|
| const int kFunctionEntryEndOffset = 1;
|
| unsigned* sd_data =
|
| reinterpret_cast<unsigned*>(const_cast<char*>(sd->Data()));
|
| - CHECK_EQ(sd->Length(),
|
| - (kHeaderSize + 2 * kFunctionEntrySize) * kUnsignedSize);
|
|
|
| // Overwrite function bar's end position with 0.
|
| sd_data[kHeaderSize + 1 * kFunctionEntrySize + kFunctionEntryEndOffset] = 0;
|
|
|