Fix compile error introduced in 24002.
authoryangguo@chromium.org <yangguo@chromium.org>
Wed, 17 Sep 2014 13:18:50 +0000 (13:18 +0000)
committeryangguo@chromium.org <yangguo@chromium.org>
Wed, 17 Sep 2014 13:18:50 +0000 (13:18 +0000)
TBR=mvstanton@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24003 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/serialize.cc

index 9447fc8..dce62fe 100644 (file)
@@ -1920,7 +1920,7 @@ void CodeSerializer::SerializeCodeStub(Code* code, HowToCode how_to_code,
          (how_to_code == kFromCode && where_to_point == kInnerPointer));
   uint32_t stub_key = code->stub_key();
 
-  if (CodeStub::MajorKeyFromKey(stub_key) == CodeStub::NoCacheKey()) {
+  if (stub_key == CodeStub::NoCacheKey()) {
     if (FLAG_trace_code_serializer) {
       PrintF("Encoding uncacheable code stub as heap object\n");
     }