From db1436ab65b4eaac950411a46354cf4692a99ef9 Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Wed, 7 Aug 2013 07:08:50 +0000 Subject: [PATCH] Handle external reference values properly in HConstant::ImmortalImmovable(). R=danno@chromium.org Review URL: https://codereview.chromium.org/22274017 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16087 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen-instructions.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h index 1dbedbd52a..3fae45bcb7 100644 --- a/src/hydrogen-instructions.h +++ b/src/hydrogen-instructions.h @@ -3212,6 +3212,9 @@ class HConstant: public HTemplateInstruction<0> { } return false; } + if (has_external_reference_value_) { + return false; + } ASSERT(!handle_.is_null()); Heap* heap = isolate()->heap();