Commit bdc02f8a authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

More follow-up fixes to r24322.

TBR=svenpanne@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24329 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 78e17cd6
......@@ -36,7 +36,7 @@ class ControlOperator : public Operator1<int> {
template <>
struct StaticParameterTraits<ExternalReference> {
static std::ostream& PrintTo(std::ostream& os, ExternalReference reference) {
os << reference.address();
os << static_cast<const void*>(reference.address());
// TODO(bmeurer): Move to operator<<(os, ExternalReference)
const Runtime::Function* function =
Runtime::FunctionForEntry(reference.address());
......
......@@ -306,7 +306,8 @@ std::ostream& operator<<(std::ostream& os, const Constant& constant) {
case Constant::kFloat64:
return os << constant.ToFloat64();
case Constant::kExternalReference:
return os << constant.ToExternalReference().address();
return os << static_cast<const void*>(
constant.ToExternalReference().address());
case Constant::kHeapObject:
return os << Brief(*constant.ToHeapObject());
}
......
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