Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: src/hydrogen-instructions.cc

Issue 1144523004: Remove unnecessary Isolate::Current calls from hydrogen-instructions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/double.h" 8 #include "src/double.h"
9 #include "src/factory.h" 9 #include "src/factory.h"
10 #include "src/hydrogen-infer-representation.h" 10 #include "src/hydrogen-infer-representation.h"
(...skipping 2958 matching lines...) Expand 10 before | Expand all | Expand 10 after
2969 2969
2970 std::ostream& HConstant::PrintDataTo(std::ostream& os) const { // NOLINT 2970 std::ostream& HConstant::PrintDataTo(std::ostream& os) const { // NOLINT
2971 if (HasInteger32Value()) { 2971 if (HasInteger32Value()) {
2972 os << int32_value_ << " "; 2972 os << int32_value_ << " ";
2973 } else if (HasDoubleValue()) { 2973 } else if (HasDoubleValue()) {
2974 os << double_value_ << " "; 2974 os << double_value_ << " ";
2975 } else if (HasExternalReferenceValue()) { 2975 } else if (HasExternalReferenceValue()) {
2976 os << reinterpret_cast<void*>(external_reference_value_.address()) << " "; 2976 os << reinterpret_cast<void*>(external_reference_value_.address()) << " ";
2977 } else { 2977 } else {
2978 // The handle() method is silently and lazily mutating the object. 2978 // The handle() method is silently and lazily mutating the object.
2979 Handle<Object> h = const_cast<HConstant*>(this)->handle(Isolate::Current()); 2979 Handle<Object> h = const_cast<HConstant*>(this)->handle(isolate());
2980 os << Brief(*h) << " "; 2980 os << Brief(*h) << " ";
2981 if (HasStableMapValue()) os << "[stable-map] "; 2981 if (HasStableMapValue()) os << "[stable-map] ";
2982 if (HasObjectMap()) os << "[map " << *ObjectMap().handle() << "] "; 2982 if (HasObjectMap()) os << "[map " << *ObjectMap().handle() << "] ";
2983 } 2983 }
2984 if (!NotInNewSpace()) os << "[new space] "; 2984 if (!NotInNewSpace()) os << "[new space] ";
2985 return os; 2985 return os;
2986 } 2986 }
2987 2987
2988 2988
2989 std::ostream& HBinaryOperation::PrintDataTo(std::ostream& os) const { // NOLINT 2989 std::ostream& HBinaryOperation::PrintDataTo(std::ostream& os) const { // NOLINT
(...skipping 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after
4725 break; 4725 break;
4726 case HObjectAccess::kExternalMemory: 4726 case HObjectAccess::kExternalMemory:
4727 os << "[external-memory]"; 4727 os << "[external-memory]";
4728 break; 4728 break;
4729 } 4729 }
4730 4730
4731 return os << "@" << access.offset(); 4731 return os << "@" << access.offset();
4732 } 4732 }
4733 4733
4734 } } // namespace v8::internal 4734 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698