Reviewers: Yang, Yury Semikhatsky,

Description:
Fix for buffer overrun in src/spaces.cc:1826 introduced at r15287

BUG=none
TEST=clang compiler

Please review this at https://codereview.chromium.org/17620010/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/objects.h


Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 417411d15524222bfb59708acd5b9a6f8589e24d..61ce298c614017cd44ac26b60df0ec03d843d715 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4466,12 +4466,13 @@ class Code: public HeapObject {
     // Pseudo-kinds.
     LAST_CODE_KIND = TO_BOOLEAN_IC,
     FIRST_IC_KIND = LOAD_IC,
-    LAST_IC_KIND = TO_BOOLEAN_IC
+    LAST_IC_KIND = TO_BOOLEAN_IC,
+    LAST_KIND = REGEXP
   };

   // No more than 16 kinds. The value is currently encoded in four bits in
   // Flags.
-  STATIC_ASSERT(LAST_CODE_KIND < 16);
+  STATIC_ASSERT(LAST_KIND < 16);

   static const char* Kind2String(Kind kind);

@@ -4492,7 +4493,7 @@ class Code: public HeapObject {
   };

   enum {
-    NUMBER_OF_KINDS = LAST_IC_KIND + 1
+    NUMBER_OF_KINDS = LAST_KIND + 1
   };

   typedef int ExtraICState;


--
--
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/groups/opt_out.


Reply via email to