Remove unnecessary Isolate::Current calls from hydrogen-instructions
authorjochen <jochen@chromium.org>
Fri, 15 May 2015 01:49:33 +0000 (18:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 15 May 2015 01:49:21 +0000 (01:49 +0000)
BUG=none
R=vogelheim@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/1144523004

Cr-Commit-Position: refs/heads/master@{#28408}

src/hydrogen-instructions.cc
src/hydrogen-instructions.h

index 974b65b..eea6b68 100644 (file)
@@ -2976,7 +2976,7 @@ std::ostream& HConstant::PrintDataTo(std::ostream& os) const {  // NOLINT
     os << reinterpret_cast<void*>(external_reference_value_.address()) << " ";
   } else {
     // The handle() method is silently and lazily mutating the object.
-    Handle<Object> h = const_cast<HConstant*>(this)->handle(Isolate::Current());
+    Handle<Object> h = const_cast<HConstant*>(this)->handle(isolate());
     os << Brief(*h) << " ";
     if (HasStableMapValue()) os << "[stable-map] ";
     if (HasObjectMap()) os << "[map " << *ObjectMap().handle() << "] ";
index ff02212..1288bc0 100644 (file)
@@ -6843,7 +6843,7 @@ class HStoreNamedField final : public HTemplateInstruction<3> {
   Handle<Map> transition_map() const {
     if (has_transition()) {
       return Handle<Map>::cast(
-          HConstant::cast(transition())->handle(Isolate::Current()));
+          HConstant::cast(transition())->handle(isolate()));
     } else {
       return Handle<Map>();
     }