Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index c6a3b2097e23381b86e4a29a2b5215d1a26572a2..154db16b149069c4ecfdaf4bcc104145ecf4998a 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -204,7 +204,7 @@ class CodeStub BASE_EMBEDDED { |
return Code::NORMAL; |
} |
- friend OStream& operator<<(OStream& os, const CodeStub& s) { |
+ friend std::ostream& operator<<(std::ostream& os, const CodeStub& s) { |
s.PrintName(os); |
return os; |
} |
@@ -222,9 +222,9 @@ class CodeStub BASE_EMBEDDED { |
// a fixed (non-moveable) code object. |
virtual bool NeedsImmovableCode() { return false; } |
- virtual void PrintName(OStream& os) const; // NOLINT |
- virtual void PrintBaseName(OStream& os) const; // NOLINT |
- virtual void PrintState(OStream& os) const { ; } // NOLINT |
+ virtual void PrintName(std::ostream& os) const; // NOLINT |
+ virtual void PrintBaseName(std::ostream& os) const; // NOLINT |
+ virtual void PrintState(std::ostream& os) const { ; } // NOLINT |
// Computes the key based on major and minor. |
uint32_t GetKey() { |
@@ -706,7 +706,7 @@ class InstanceofStub: public PlatformCodeStub { |
return (flags() & kReturnTrueFalseObject) != 0; |
} |
- virtual void PrintName(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintName(std::ostream& os) const OVERRIDE; // NOLINT |
class FlagBits : public BitField<Flags, 0, 3> {}; |
@@ -737,7 +737,7 @@ class ArrayConstructorStub: public PlatformCodeStub { |
void GenerateDispatchToArrayStub(MacroAssembler* masm, |
AllocationSiteOverrideMode mode); |
- virtual void PrintName(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintName(std::ostream& os) const OVERRIDE; // NOLINT |
class ArgumentCountBits : public BitField<ArgumentCountKey, 0, 2> {}; |
@@ -823,7 +823,7 @@ class CallICStub: public PlatformCodeStub { |
void GenerateMiss(MacroAssembler* masm); |
private: |
- virtual void PrintState(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintState(std::ostream& os) const OVERRIDE; // NOLINT |
DEFINE_CALL_INTERFACE_DESCRIPTOR(CallFunctionWithFeedback); |
DEFINE_PLATFORM_CODE_STUB(CallIC, PlatformCodeStub); |
@@ -840,7 +840,7 @@ class CallIC_ArrayStub: public CallICStub { |
} |
private: |
- virtual void PrintState(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintState(std::ostream& os) const OVERRIDE; // NOLINT |
DEFINE_PLATFORM_CODE_STUB(CallIC_Array, CallICStub); |
}; |
@@ -1162,7 +1162,7 @@ class BinaryOpICStub : public HydrogenCodeStub { |
return BinaryOpICState(isolate(), GetExtraICState()); |
} |
- virtual void PrintState(OStream& os) const FINAL OVERRIDE; // NOLINT |
+ virtual void PrintState(std::ostream& os) const FINAL OVERRIDE; // NOLINT |
// Parameters accessed via CodeStubGraphBuilder::GetParameter() |
static const int kLeft = 0; |
@@ -1207,7 +1207,7 @@ class BinaryOpICWithAllocationSiteStub FINAL : public PlatformCodeStub { |
return static_cast<ExtraICState>(minor_key_); |
} |
- virtual void PrintState(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintState(std::ostream& os) const OVERRIDE; // NOLINT |
private: |
BinaryOpICState state() const { |
@@ -1283,7 +1283,7 @@ class StringAddStub FINAL : public HydrogenCodeStub { |
class StringAddFlagsBits: public BitField<StringAddFlags, 0, 2> {}; |
class PretenureFlagBits: public BitField<PretenureFlag, 2, 1> {}; |
- virtual void PrintBaseName(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintBaseName(std::ostream& os) const OVERRIDE; // NOLINT |
DEFINE_CALL_INTERFACE_DESCRIPTOR(StringAdd); |
DEFINE_HYDROGEN_CODE_STUB(StringAdd, HydrogenCodeStub); |
@@ -1395,8 +1395,8 @@ class CompareNilICStub : public HydrogenCodeStub { |
set_sub_minor_key(TypesBits::update(sub_minor_key(), 0)); |
} |
- virtual void PrintState(OStream& os) const OVERRIDE; // NOLINT |
- virtual void PrintBaseName(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintState(std::ostream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintBaseName(std::ostream& os) const OVERRIDE; // NOLINT |
private: |
CompareNilICStub(Isolate* isolate, NilValue nil, |
@@ -1423,7 +1423,7 @@ class CompareNilICStub : public HydrogenCodeStub { |
State() : EnumSet<CompareNilType, byte>(0) { } |
explicit State(byte bits) : EnumSet<CompareNilType, byte>(bits) { } |
}; |
- friend OStream& operator<<(OStream& os, const State& s); |
+ friend std::ostream& operator<<(std::ostream& os, const State& s); |
State state() const { return State(TypesBits::decode(sub_minor_key())); } |
@@ -1437,7 +1437,7 @@ class CompareNilICStub : public HydrogenCodeStub { |
}; |
-OStream& operator<<(OStream& os, const CompareNilICStub::State& s); |
+std::ostream& operator<<(std::ostream& os, const CompareNilICStub::State& s); |
class CEntryStub : public PlatformCodeStub { |
@@ -1485,7 +1485,7 @@ class JSEntryStub : public PlatformCodeStub { |
private: |
virtual void FinishCode(Handle<Code> code); |
- virtual void PrintName(OStream& os) const OVERRIDE { // NOLINT |
+ virtual void PrintName(std::ostream& os) const OVERRIDE { // NOLINT |
os << (type() == StackFrame::ENTRY ? "JSEntryStub" |
: "JSConstructEntryStub"); |
} |
@@ -1531,7 +1531,7 @@ class ArgumentsAccessStub: public PlatformCodeStub { |
void GenerateNewSloppyFast(MacroAssembler* masm); |
void GenerateNewSloppySlow(MacroAssembler* masm); |
- virtual void PrintName(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintName(std::ostream& os) const OVERRIDE; // NOLINT |
class TypeBits : public BitField<Type, 0, 2> {}; |
@@ -1585,7 +1585,7 @@ class CallFunctionStub: public PlatformCodeStub { |
bool NeedsChecks() const { return flags() != WRAP_AND_CALL; } |
- virtual void PrintName(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintName(std::ostream& os) const OVERRIDE; // NOLINT |
// Minor key encoding in 32 bits with Bitfield <Type, shift, size>. |
class FlagBits : public BitField<CallFunctionFlags, 0, 2> {}; |
@@ -1615,7 +1615,7 @@ class CallConstructStub: public PlatformCodeStub { |
return (flags() & RECORD_CONSTRUCTOR_TARGET) != 0; |
} |
- virtual void PrintName(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintName(std::ostream& os) const OVERRIDE; // NOLINT |
class FlagBits : public BitField<CallConstructorFlags, 0, 1> {}; |
@@ -2081,7 +2081,8 @@ class ArrayConstructorStubBase : public HydrogenCodeStub { |
static const int kAllocationSite = 1; |
protected: |
- OStream& BasePrintName(OStream& os, const char* name) const; // NOLINT |
+ std::ostream& BasePrintName(std::ostream& os, |
+ const char* name) const; // NOLINT |
private: |
// Ensure data fits within available bits. |
@@ -2105,7 +2106,7 @@ class ArrayNoArgumentConstructorStub : public ArrayConstructorStubBase { |
} |
private: |
- virtual void PrintName(OStream& os) const OVERRIDE { // NOLINT |
+ virtual void PrintName(std::ostream& os) const OVERRIDE { // NOLINT |
BasePrintName(os, "ArrayNoArgumentConstructorStub"); |
} |
@@ -2125,7 +2126,7 @@ class ArraySingleArgumentConstructorStub : public ArrayConstructorStubBase { |
} |
private: |
- virtual void PrintName(OStream& os) const { // NOLINT |
+ virtual void PrintName(std::ostream& os) const { // NOLINT |
BasePrintName(os, "ArraySingleArgumentConstructorStub"); |
} |
@@ -2145,7 +2146,7 @@ class ArrayNArgumentsConstructorStub : public ArrayConstructorStubBase { |
} |
private: |
- virtual void PrintName(OStream& os) const { // NOLINT |
+ virtual void PrintName(std::ostream& os) const { // NOLINT |
BasePrintName(os, "ArrayNArgumentsConstructorStub"); |
} |
@@ -2290,7 +2291,7 @@ class ToBooleanStub: public HydrogenCodeStub { |
ResultMode mode() const { return ResultModeBits::decode(sub_minor_key()); } |
virtual Code::Kind GetCodeKind() const { return Code::TO_BOOLEAN_IC; } |
- virtual void PrintState(OStream& os) const OVERRIDE; // NOLINT |
+ virtual void PrintState(std::ostream& os) const OVERRIDE; // NOLINT |
virtual bool SometimesSetsUpAFrame() { return false; } |
@@ -2322,7 +2323,7 @@ class ToBooleanStub: public HydrogenCodeStub { |
}; |
-OStream& operator<<(OStream& os, const ToBooleanStub::Types& t); |
+std::ostream& operator<<(std::ostream& os, const ToBooleanStub::Types& t); |
class ElementsTransitionAndStoreStub : public HydrogenCodeStub { |