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
This commit is contained in:
parent
78e17cd6a2
commit
bdc02f8a2e
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user