Commit 96ab3dce authored by jochen's avatar jochen Committed by Commit bot

Remove unnecessary Isolate::Current calls from hydrogen-instructions

BUG=none
R=vogelheim@chromium.org
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#28408}
parent 7590d302
......@@ -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() << "] ";
......
......@@ -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>();
}
......
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