Commit ada87248 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Fix assertion in ScriptData.

R=marja@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22339 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 11dbc40c
......@@ -35,8 +35,7 @@ ScriptData::ScriptData(const byte* data, int length)
: owns_data_(false), data_(data), length_(length) {
if (!IsAligned(reinterpret_cast<intptr_t>(data), kPointerAlignment)) {
byte* copy = NewArray<byte>(length);
// TODO(yangguo): find out why this is not always the case.
// ASSERT(IsAligned(reinterpret_cast<intptr_t>(data_), kPointerAlignment));
ASSERT(IsAligned(reinterpret_cast<intptr_t>(copy), kPointerAlignment));
CopyBytes(copy, data, length);
data_ = copy;
AcquireDataOwnership();
......
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