Commit 1ad3d57d authored by yangguo@chromium.org's avatar yangguo@chromium.org

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
parent a4ba7d6b
...@@ -3249,9 +3249,9 @@ class HConstant: public HTemplateInstruction<0> { ...@@ -3249,9 +3249,9 @@ class HConstant: public HTemplateInstruction<0> {
Handle<Object> handle() { Handle<Object> handle() {
if (handle_.is_null()) { 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()); ASSERT(has_int32_value_ || !handle_->IsSmi());
return handle_; return handle_;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment