Revision: 22339
Author:   [email protected]
Date:     Fri Jul 11 06:58:25 2014 UTC
Log:      Fix assertion in ScriptData.

[email protected]

Review URL: https://codereview.chromium.org/383963002
http://code.google.com/p/v8/source/detail?r=22339

Modified:
 /branches/bleeding_edge/src/compiler.cc

=======================================
--- /branches/bleeding_edge/src/compiler.cc     Fri Jul 11 06:46:24 2014 UTC
+++ /branches/bleeding_edge/src/compiler.cc     Fri Jul 11 06:58:25 2014 UTC
@@ -35,8 +35,7 @@
     : 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();

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to