Index: src/serialize.cc |
diff --git a/src/serialize.cc b/src/serialize.cc |
index 9447fc82d9555f8da4ec20badb739a8fa4c9cf7d..dce62fe6db57622cc6b08e9bbf3d2f30ed7af0e2 100644 |
--- a/src/serialize.cc |
+++ b/src/serialize.cc |
@@ -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"); |
} |