Index: src/x64/codegen-x64.cc |
diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
index cde7dcb557611784ab6c21dd00a198b0d2ed30c9..4798b2ab3ac7a65fd9997990306c2d58be4b21a6 100644 |
--- a/src/x64/codegen-x64.cc |
+++ b/src/x64/codegen-x64.cc |
@@ -91,7 +91,7 @@ UnaryMathFunction CreateTranscendentalFunction(TranscendentalCache::Type type) { |
CodeDesc desc; |
masm.GetCode(&desc); |
- ASSERT(desc.reloc_size == 0); |
+ ASSERT(!RelocInfo::RequiresRelocation(desc)); |
CPU::FlushICache(buffer, actual_size); |
OS::ProtectCode(buffer, actual_size); |
@@ -122,6 +122,7 @@ UnaryMathFunction CreateExpFunction() { |
CodeDesc desc; |
masm.GetCode(&desc); |
+ ASSERT(!RelocInfo::RequiresRelocation(desc)); |
CPU::FlushICache(buffer, actual_size); |
OS::ProtectCode(buffer, actual_size); |
@@ -145,7 +146,7 @@ UnaryMathFunction CreateSqrtFunction() { |
CodeDesc desc; |
masm.GetCode(&desc); |
- ASSERT(desc.reloc_size == 0); |
+ ASSERT(!RelocInfo::RequiresRelocation(desc)); |
CPU::FlushICache(buffer, actual_size); |
OS::ProtectCode(buffer, actual_size); |