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

Unified Diff: src/hydrogen-instructions.cc

Issue 618643002: Replace OStream with std::ostream. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/hydrogen-types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.cc
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
index a057217cc514f091ea9f71f2a0a17474cb56b0a5..9b7bfce50abc1d2dbdc2de55a173a6c8d91a9297 100644
--- a/src/hydrogen-instructions.cc
+++ b/src/hydrogen-instructions.cc
@@ -528,10 +528,12 @@ void HValue::SetBlock(HBasicBlock* block) {
}
-OStream& operator<<(OStream& os, const HValue& v) { return v.PrintTo(os); }
+std::ostream& operator<<(std::ostream& os, const HValue& v) {
+ return v.PrintTo(os);
+}
-OStream& operator<<(OStream& os, const TypeOf& t) {
+std::ostream& operator<<(std::ostream& os, const TypeOf& t) {
if (t.value->representation().IsTagged() &&
!t.value->type().Equals(HType::Tagged()))
return os;
@@ -539,7 +541,7 @@ OStream& operator<<(OStream& os, const TypeOf& t) {
}
-OStream& operator<<(OStream& os, const ChangesOf& c) {
+std::ostream& operator<<(std::ostream& os, const ChangesOf& c) {
GVNFlagSet changes_flags = c.value->ChangesFlags();
if (changes_flags.IsEmpty()) return os;
os << " changes[";
@@ -618,7 +620,7 @@ void HValue::ComputeInitialRange(Zone* zone) {
}
-OStream& operator<<(OStream& os, const HSourcePosition& p) {
+std::ostream& operator<<(std::ostream& os, const HSourcePosition& p) {
if (p.IsUnknown()) {
return os << "<?>";
} else if (FLAG_hydrogen_track_positions) {
@@ -629,7 +631,7 @@ OStream& operator<<(OStream& os, const HSourcePosition& p) {
}
-OStream& HInstruction::PrintTo(OStream& os) const { // NOLINT
+std::ostream& HInstruction::PrintTo(std::ostream& os) const { // NOLINT
os << Mnemonic() << " ";
PrintDataTo(os) << ChangesOf(this) << TypeOf(this);
if (CheckFlag(HValue::kHasNoObservableSideEffects)) os << " [noOSE]";
@@ -638,7 +640,7 @@ OStream& HInstruction::PrintTo(OStream& os) const { // NOLINT
}
-OStream& HInstruction::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HInstruction::PrintDataTo(std::ostream& os) const { // NOLINT
for (int i = 0; i < OperandCount(); ++i) {
if (i > 0) os << " ";
os << NameOf(OperandAt(i));
@@ -912,27 +914,28 @@ bool HInstruction::CanDeoptimize() {
}
-OStream& operator<<(OStream& os, const NameOf& v) {
+std::ostream& operator<<(std::ostream& os, const NameOf& v) {
return os << v.value->representation().Mnemonic() << v.value->id();
}
-OStream& HDummyUse::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HDummyUse::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(value());
}
-OStream& HEnvironmentMarker::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HEnvironmentMarker::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << (kind() == BIND ? "bind" : "lookup") << " var[" << index()
<< "]";
}
-OStream& HUnaryCall::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HUnaryCall::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(value()) << " #" << argument_count();
}
-OStream& HCallJSFunction::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCallJSFunction::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(function()) << " #" << argument_count();
}
@@ -959,7 +962,7 @@ HCallJSFunction* HCallJSFunction::New(
}
-OStream& HBinaryCall::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HBinaryCall::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(first()) << " " << NameOf(second()) << " #"
<< argument_count();
}
@@ -1015,7 +1018,7 @@ void HBoundsCheck::ApplyIndexChange() {
}
-OStream& HBoundsCheck::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HBoundsCheck::PrintDataTo(std::ostream& os) const { // NOLINT
os << NameOf(index()) << " " << NameOf(length());
if (base() != NULL && (offset() != 0 || scale() != 0)) {
os << " base: ((";
@@ -1070,15 +1073,16 @@ Range* HBoundsCheck::InferRange(Zone* zone) {
}
-OStream& HBoundsCheckBaseIndexInformation::PrintDataTo(
- OStream& os) const { // NOLINT
+std::ostream& HBoundsCheckBaseIndexInformation::PrintDataTo(
+ std::ostream& os) const { // NOLINT
// TODO(svenpanne) This 2nd base_index() looks wrong...
return os << "base: " << NameOf(base_index())
<< ", check: " << NameOf(base_index());
}
-OStream& HCallWithDescriptor::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCallWithDescriptor::PrintDataTo(
+ std::ostream& os) const { // NOLINT
for (int i = 0; i < OperandCount(); i++) {
os << NameOf(OperandAt(i)) << " ";
}
@@ -1086,42 +1090,46 @@ OStream& HCallWithDescriptor::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HCallNewArray::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCallNewArray::PrintDataTo(std::ostream& os) const { // NOLINT
os << ElementsKindToString(elements_kind()) << " ";
return HBinaryCall::PrintDataTo(os);
}
-OStream& HCallRuntime::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCallRuntime::PrintDataTo(std::ostream& os) const { // NOLINT
os << name()->ToCString().get() << " ";
if (save_doubles() == kSaveFPRegs) os << "[save doubles] ";
return os << "#" << argument_count();
}
-OStream& HClassOfTestAndBranch::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HClassOfTestAndBranch::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << "class_of_test(" << NameOf(value()) << ", \""
<< class_name()->ToCString().get() << "\")";
}
-OStream& HWrapReceiver::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HWrapReceiver::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(receiver()) << " " << NameOf(function());
}
-OStream& HAccessArgumentsAt::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HAccessArgumentsAt::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << NameOf(arguments()) << "[" << NameOf(index()) << "], length "
<< NameOf(length());
}
-OStream& HAllocateBlockContext::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HAllocateBlockContext::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << NameOf(context()) << " " << NameOf(function());
}
-OStream& HControlInstruction::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HControlInstruction::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << " goto (";
bool first_block = true;
for (HSuccessorIterator it(this); !it.Done(); it.Advance()) {
@@ -1133,13 +1141,14 @@ OStream& HControlInstruction::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HUnaryControlInstruction::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HUnaryControlInstruction::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << NameOf(value());
return HControlInstruction::PrintDataTo(os);
}
-OStream& HReturn::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HReturn::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(value()) << " (pop " << NameOf(parameter_count())
<< " values)";
}
@@ -1185,13 +1194,13 @@ bool HBranch::KnownSuccessorBlock(HBasicBlock** block) {
}
-OStream& HBranch::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HBranch::PrintDataTo(std::ostream& os) const { // NOLINT
return HUnaryControlInstruction::PrintDataTo(os) << " "
<< expected_input_types();
}
-OStream& HCompareMap::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCompareMap::PrintDataTo(std::ostream& os) const { // NOLINT
os << NameOf(value()) << " (" << *map().handle() << ")";
HControlInstruction::PrintDataTo(os);
if (known_successor_index() == 0) {
@@ -1255,17 +1264,19 @@ Range* HUnaryMathOperation::InferRange(Zone* zone) {
}
-OStream& HUnaryMathOperation::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HUnaryMathOperation::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << OpName() << " " << NameOf(value());
}
-OStream& HUnaryOperation::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HUnaryOperation::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(value());
}
-OStream& HHasInstanceTypeAndBranch::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HHasInstanceTypeAndBranch::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << NameOf(value());
switch (from_) {
case FIRST_JS_RECEIVER_TYPE:
@@ -1287,7 +1298,8 @@ OStream& HHasInstanceTypeAndBranch::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HTypeofIsAndBranch::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HTypeofIsAndBranch::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << NameOf(value()) << " == " << type_literal()->ToCString().get();
return HControlInstruction::PrintDataTo(os);
}
@@ -1340,7 +1352,7 @@ bool HTypeofIsAndBranch::KnownSuccessorBlock(HBasicBlock** block) {
}
-OStream& HCheckMapValue::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCheckMapValue::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(value()) << " " << NameOf(map());
}
@@ -1356,18 +1368,19 @@ HValue* HCheckMapValue::Canonicalize() {
}
-OStream& HForInPrepareMap::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HForInPrepareMap::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(enumerable());
}
-OStream& HForInCacheArray::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HForInCacheArray::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(enumerable()) << " " << NameOf(map()) << "[" << idx_
<< "]";
}
-OStream& HLoadFieldByIndex::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HLoadFieldByIndex::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << NameOf(object()) << " " << NameOf(index());
}
@@ -1504,7 +1517,7 @@ HValue* HWrapReceiver::Canonicalize() {
}
-OStream& HTypeof::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HTypeof::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(value());
}
@@ -1520,12 +1533,13 @@ HInstruction* HForceRepresentation::New(Zone* zone, HValue* context,
}
-OStream& HForceRepresentation::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HForceRepresentation::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << representation().Mnemonic() << " " << NameOf(value());
}
-OStream& HChange::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HChange::PrintDataTo(std::ostream& os) const { // NOLINT
HUnaryOperation::PrintDataTo(os);
os << " " << from().Mnemonic() << " to " << to().Mnemonic();
@@ -1637,7 +1651,7 @@ void HCheckInstanceType::GetCheckMaskAndTag(uint8_t* mask, uint8_t* tag) {
}
-OStream& HCheckMaps::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCheckMaps::PrintDataTo(std::ostream& os) const { // NOLINT
os << NameOf(value()) << " [" << *maps()->at(0).handle();
for (int i = 1; i < maps()->size(); ++i) {
os << "," << *maps()->at(i).handle();
@@ -1668,7 +1682,7 @@ HValue* HCheckMaps::Canonicalize() {
}
-OStream& HCheckValue::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCheckValue::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(value()) << " " << Brief(*object().handle());
}
@@ -1691,20 +1705,21 @@ const char* HCheckInstanceType::GetCheckName() const {
}
-OStream& HCheckInstanceType::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCheckInstanceType::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << GetCheckName() << " ";
return HUnaryOperation::PrintDataTo(os);
}
-OStream& HCallStub::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCallStub::PrintDataTo(std::ostream& os) const { // NOLINT
os << CodeStub::MajorName(major_key_, false) << " ";
return HUnaryCall::PrintDataTo(os);
}
-OStream& HTailCallThroughMegamorphicCache::PrintDataTo(
- OStream& os) const { // NOLINT
+std::ostream& HTailCallThroughMegamorphicCache::PrintDataTo(
+ std::ostream& os) const { // NOLINT
for (int i = 0; i < OperandCount(); i++) {
os << NameOf(OperandAt(i)) << " ";
}
@@ -1712,7 +1727,7 @@ OStream& HTailCallThroughMegamorphicCache::PrintDataTo(
}
-OStream& HUnknownOSRValue::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HUnknownOSRValue::PrintDataTo(std::ostream& os) const { // NOLINT
const char* type = "expression";
if (environment_->is_local_index(index_)) type = "local";
if (environment_->is_special_index(index_)) type = "special";
@@ -1721,7 +1736,7 @@ OStream& HUnknownOSRValue::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HInstanceOf::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HInstanceOf::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(left()) << " " << NameOf(right()) << " "
<< NameOf(context());
}
@@ -2439,7 +2454,7 @@ void HPushArguments::AddInput(HValue* value) {
}
-OStream& HPhi::PrintTo(OStream& os) const { // NOLINT
+std::ostream& HPhi::PrintTo(std::ostream& os) const { // NOLINT
os << "[";
for (int i = 0; i < OperandCount(); ++i) {
os << " " << NameOf(OperandAt(i)) << " ";
@@ -2571,7 +2586,7 @@ void HSimulate::MergeWith(ZoneList<HSimulate*>* list) {
}
-OStream& HSimulate::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HSimulate::PrintDataTo(std::ostream& os) const { // NOLINT
os << "id=" << ast_id().ToInt();
if (pop_count_ > 0) os << " pop " << pop_count_;
if (values_.length() > 0) {
@@ -2633,7 +2648,7 @@ void HCapturedObject::ReplayEnvironment(HEnvironment* env) {
}
-OStream& HCapturedObject::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCapturedObject::PrintDataTo(std::ostream& os) const { // NOLINT
os << "#" << capture_id() << " ";
return HDematerializedObject::PrintDataTo(os);
}
@@ -2646,7 +2661,7 @@ void HEnterInlined::RegisterReturnTarget(HBasicBlock* return_target,
}
-OStream& HEnterInlined::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HEnterInlined::PrintDataTo(std::ostream& os) const { // NOLINT
return os << function()->debug_name()->ToCString().get()
<< ", id=" << function()->id().ToInt();
}
@@ -2936,7 +2951,7 @@ Maybe<HConstant*> HConstant::CopyToTruncatedNumber(Zone* zone) {
}
-OStream& HConstant::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HConstant::PrintDataTo(std::ostream& os) const { // NOLINT
if (has_int32_value_) {
os << int32_value_ << " ";
} else if (has_double_value_) {
@@ -2955,7 +2970,7 @@ OStream& HConstant::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HBinaryOperation::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HBinaryOperation::PrintDataTo(std::ostream& os) const { // NOLINT
os << NameOf(left()) << " " << NameOf(right());
if (CheckFlag(kCanOverflow)) os << " !";
if (CheckFlag(kBailoutOnMinusZero)) os << " -0?";
@@ -3182,25 +3197,28 @@ Range* HLoadKeyed::InferRange(Zone* zone) {
}
-OStream& HCompareGeneric::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCompareGeneric::PrintDataTo(std::ostream& os) const { // NOLINT
os << Token::Name(token()) << " ";
return HBinaryOperation::PrintDataTo(os);
}
-OStream& HStringCompareAndBranch::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HStringCompareAndBranch::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << Token::Name(token()) << " ";
return HControlInstruction::PrintDataTo(os);
}
-OStream& HCompareNumericAndBranch::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCompareNumericAndBranch::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << Token::Name(token()) << " " << NameOf(left()) << " " << NameOf(right());
return HControlInstruction::PrintDataTo(os);
}
-OStream& HCompareObjectEqAndBranch::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HCompareObjectEqAndBranch::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << NameOf(left()) << " " << NameOf(right());
return HControlInstruction::PrintDataTo(os);
}
@@ -3340,7 +3358,7 @@ void HCompareMinusZeroAndBranch::InferRepresentation(
}
-OStream& HGoto::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HGoto::PrintDataTo(std::ostream& os) const { // NOLINT
return os << *SuccessorAt(0);
}
@@ -3384,12 +3402,12 @@ void HCompareNumericAndBranch::InferRepresentation(
}
-OStream& HParameter::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HParameter::PrintDataTo(std::ostream& os) const { // NOLINT
return os << index();
}
-OStream& HLoadNamedField::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HLoadNamedField::PrintDataTo(std::ostream& os) const { // NOLINT
os << NameOf(object()) << access_;
if (maps() != NULL) {
@@ -3405,13 +3423,14 @@ OStream& HLoadNamedField::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HLoadNamedGeneric::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HLoadNamedGeneric::PrintDataTo(
+ std::ostream& os) const { // NOLINT
Handle<String> n = Handle<String>::cast(name());
return os << NameOf(object()) << "." << n->ToCString().get();
}
-OStream& HLoadKeyed::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HLoadKeyed::PrintDataTo(std::ostream& os) const { // NOLINT
if (!is_external()) {
os << NameOf(elements());
} else {
@@ -3499,7 +3518,8 @@ bool HLoadKeyed::RequiresHoleCheck() const {
}
-OStream& HLoadKeyedGeneric::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HLoadKeyedGeneric::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << NameOf(object()) << "[" << NameOf(key()) << "]";
}
@@ -3541,14 +3561,15 @@ HValue* HLoadKeyedGeneric::Canonicalize() {
}
-OStream& HStoreNamedGeneric::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HStoreNamedGeneric::PrintDataTo(
+ std::ostream& os) const { // NOLINT
Handle<String> n = Handle<String>::cast(name());
return os << NameOf(object()) << "." << n->ToCString().get() << " = "
<< NameOf(value());
}
-OStream& HStoreNamedField::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HStoreNamedField::PrintDataTo(std::ostream& os) const { // NOLINT
os << NameOf(object()) << access_ << " = " << NameOf(value());
if (NeedsWriteBarrier()) os << " (write-barrier)";
if (has_transition()) os << " (transition map " << *transition_map() << ")";
@@ -3556,7 +3577,7 @@ OStream& HStoreNamedField::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HStoreKeyed::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HStoreKeyed::PrintDataTo(std::ostream& os) const { // NOLINT
if (!is_external()) {
os << NameOf(elements());
} else {
@@ -3571,13 +3592,15 @@ OStream& HStoreKeyed::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HStoreKeyedGeneric::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HStoreKeyedGeneric::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << NameOf(object()) << "[" << NameOf(key())
<< "] = " << NameOf(value());
}
-OStream& HTransitionElementsKind::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HTransitionElementsKind::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << NameOf(object());
ElementsKind from_kind = original_map().handle()->elements_kind();
ElementsKind to_kind = transitioned_map().handle()->elements_kind();
@@ -3590,7 +3613,7 @@ OStream& HTransitionElementsKind::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HLoadGlobalCell::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HLoadGlobalCell::PrintDataTo(std::ostream& os) const { // NOLINT
os << "[" << *cell().handle() << "]";
if (details_.IsConfigurable()) os << " (configurable)";
if (details_.IsReadOnly()) os << " (read-only)";
@@ -3608,18 +3631,20 @@ bool HLoadGlobalCell::RequiresHoleCheck() const {
}
-OStream& HLoadGlobalGeneric::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HLoadGlobalGeneric::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << name()->ToCString().get() << " ";
}
-OStream& HInnerAllocatedObject::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HInnerAllocatedObject::PrintDataTo(
+ std::ostream& os) const { // NOLINT
os << NameOf(base_object()) << " offset ";
return offset()->PrintTo(os);
}
-OStream& HStoreGlobalCell::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HStoreGlobalCell::PrintDataTo(std::ostream& os) const { // NOLINT
os << "[" << *cell().handle() << "] = " << NameOf(value());
if (details_.IsConfigurable()) os << " (configurable)";
if (details_.IsReadOnly()) os << " (read-only)";
@@ -3627,12 +3652,13 @@ OStream& HStoreGlobalCell::PrintDataTo(OStream& os) const { // NOLINT
}
-OStream& HLoadContextSlot::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HLoadContextSlot::PrintDataTo(std::ostream& os) const { // NOLINT
return os << NameOf(value()) << "[" << slot_index() << "]";
}
-OStream& HStoreContextSlot::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HStoreContextSlot::PrintDataTo(
+ std::ostream& os) const { // NOLINT
return os << NameOf(context()) << "[" << slot_index()
<< "] = " << NameOf(value());
}
@@ -3987,7 +4013,7 @@ void HAllocate::ClearNextMapWord(int offset) {
}
-OStream& HAllocate::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HAllocate::PrintDataTo(std::ostream& os) const { // NOLINT
os << NameOf(size()) << " (";
if (IsNewSpaceAllocation()) os << "N";
if (IsOldPointerSpaceAllocation()) os << "P";
@@ -4096,7 +4122,7 @@ HInstruction* HStringAdd::New(Zone* zone,
}
-OStream& HStringAdd::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HStringAdd::PrintDataTo(std::ostream& os) const { // NOLINT
if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_BOTH) {
os << "_CheckBoth";
} else if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_LEFT) {
@@ -4431,7 +4457,7 @@ HInstruction* HSeqStringGetChar::New(Zone* zone,
#undef H_CONSTANT_DOUBLE
-OStream& HBitwise::PrintDataTo(OStream& os) const { // NOLINT
+std::ostream& HBitwise::PrintDataTo(std::ostream& os) const { // NOLINT
os << Token::Name(op_) << " ";
return HBitwiseBinaryOperation::PrintDataTo(os);
}
@@ -4746,7 +4772,7 @@ void HObjectAccess::SetGVNFlags(HValue *instr, PropertyAccessType access_type) {
}
-OStream& operator<<(OStream& os, const HObjectAccess& access) {
+std::ostream& operator<<(std::ostream& os, const HObjectAccess& access) {
os << ".";
switch (access.portion()) {
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/hydrogen-types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698