Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index aa89f7146f276c9c377b8420650b291a5b3e2b01..65a9c959887a2eb926c918a95cc2fcd805047359 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -3265,6 +3265,12 @@ class HConstant: public HTemplateInstruction<0> { |
std::isnan(double_value_)); |
} |
+ bool InNewSpace() { |
+ if (handle().is_null()) return false; |
+ ALLOW_HANDLE_DEREF(isolate(), "using raw address"); |
+ return isolate()->heap()->InNewSpace(*handle()); |
+ } |
+ |
bool ImmortalImmovable() const { |
if (has_int32_value_) { |
return false; |