Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index e62517a25fc1da292cf714a5f195c03c21c6c6e3..4de9aaef200b5e9456d99a4d37c87171a9d20b76 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -531,6 +531,9 @@ static void CheckCodeForUnsafeLiteral(Handle<JSFunction> f) { |
int decode_size = |
Min(f->code()->instruction_size(), |
static_cast<int>(f->code()->back_edge_table_offset())); |
+ if (FLAG_enable_embedded_constant_pool) { |
+ decode_size = Min(decode_size, f->code()->constant_pool_offset()); |
+ } |
Address end = pc + decode_size; |
v8::internal::EmbeddedVector<char, 128> decode_buffer; |