From 1ad3d57d9d9fa905316d5c072d22463abd0fee94 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Thu, 25 Apr 2013 10:57:24 +0000 Subject: [PATCH] Get isolate from thread local instead of (potentially missing) block in HConstant. R=ulan@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/14284011 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14433 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen-instructions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h index 0c3ee1d..b4d2669 100644 --- a/src/hydrogen-instructions.h +++ b/src/hydrogen-instructions.h @@ -3249,9 +3249,9 @@ class HConstant: public HTemplateInstruction<0> { Handle handle() { if (handle_.is_null()) { - handle_ = isolate()->factory()->NewNumber(double_value_, TENURED); + handle_ = FACTORY->NewNumber(double_value_, TENURED); } - ALLOW_HANDLE_DEREF(isolate(), "smi check"); + ALLOW_HANDLE_DEREF(Isolate::Current(), "smi check"); ASSERT(has_int32_value_ || !handle_->IsSmi()); return handle_; } -- 2.7.4