OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/unique.h" | 10 #include "src/unique.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 }; | 30 }; |
31 | 31 |
32 } // namespace | 32 } // namespace |
33 | 33 |
34 | 34 |
35 // Specialization for static parameters of type {ExternalReference}. | 35 // Specialization for static parameters of type {ExternalReference}. |
36 template <> | 36 template <> |
37 struct StaticParameterTraits<ExternalReference> { | 37 struct StaticParameterTraits<ExternalReference> { |
38 static std::ostream& PrintTo(std::ostream& os, ExternalReference reference) { | 38 static std::ostream& PrintTo(std::ostream& os, ExternalReference reference) { |
39 os << reference.address(); | 39 os << static_cast<const void*>(reference.address()); |
40 // TODO(bmeurer): Move to operator<<(os, ExternalReference) | 40 // TODO(bmeurer): Move to operator<<(os, ExternalReference) |
41 const Runtime::Function* function = | 41 const Runtime::Function* function = |
42 Runtime::FunctionForEntry(reference.address()); | 42 Runtime::FunctionForEntry(reference.address()); |
43 if (function) { | 43 if (function) { |
44 os << " <" << function->name << ".entry>"; | 44 os << " <" << function->name << ".entry>"; |
45 } | 45 } |
46 return os; | 46 return os; |
47 } | 47 } |
48 static int HashCode(ExternalReference reference) { | 48 static int HashCode(ExternalReference reference) { |
49 return bit_cast<int>(static_cast<uint32_t>( | 49 return bit_cast<int>(static_cast<uint32_t>( |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 } | 289 } |
290 | 290 |
291 | 291 |
292 bool OutputFrameStateCombine::IsOutputIgnored() { | 292 bool OutputFrameStateCombine::IsOutputIgnored() { |
293 return kind() == kPushOutput && GetPushCount() == 0; | 293 return kind() == kPushOutput && GetPushCount() == 0; |
294 } | 294 } |
295 | 295 |
296 } // namespace compiler | 296 } // namespace compiler |
297 } // namespace internal | 297 } // namespace internal |
298 } // namespace v8 | 298 } // namespace v8 |
OLD | NEW |