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/instruction.h" | 5 #include "src/compiler/instruction.h" |
6 | 6 |
7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
8 #include "src/compiler/generic-node-inl.h" | 8 #include "src/compiler/generic-node-inl.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 switch (constant.type()) { | 299 switch (constant.type()) { |
300 case Constant::kInt32: | 300 case Constant::kInt32: |
301 return os << constant.ToInt32(); | 301 return os << constant.ToInt32(); |
302 case Constant::kInt64: | 302 case Constant::kInt64: |
303 return os << constant.ToInt64() << "l"; | 303 return os << constant.ToInt64() << "l"; |
304 case Constant::kFloat32: | 304 case Constant::kFloat32: |
305 return os << constant.ToFloat32() << "f"; | 305 return os << constant.ToFloat32() << "f"; |
306 case Constant::kFloat64: | 306 case Constant::kFloat64: |
307 return os << constant.ToFloat64(); | 307 return os << constant.ToFloat64(); |
308 case Constant::kExternalReference: | 308 case Constant::kExternalReference: |
309 return os << constant.ToExternalReference().address(); | 309 return os << static_cast<const void*>( |
| 310 constant.ToExternalReference().address()); |
310 case Constant::kHeapObject: | 311 case Constant::kHeapObject: |
311 return os << Brief(*constant.ToHeapObject()); | 312 return os << Brief(*constant.ToHeapObject()); |
312 } | 313 } |
313 UNREACHABLE(); | 314 UNREACHABLE(); |
314 return os; | 315 return os; |
315 } | 316 } |
316 | 317 |
317 | 318 |
318 Label* InstructionSequence::GetLabel(BasicBlock* block) { | 319 Label* InstructionSequence::GetLabel(BasicBlock* block) { |
319 return GetBlockStart(block)->label(); | 320 return GetBlockStart(block)->label(); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 os << " B" << (*iter)->id(); | 476 os << " B" << (*iter)->id(); |
476 } | 477 } |
477 os << "\n"; | 478 os << "\n"; |
478 } | 479 } |
479 return os; | 480 return os; |
480 } | 481 } |
481 | 482 |
482 } // namespace compiler | 483 } // namespace compiler |
483 } // namespace internal | 484 } // namespace internal |
484 } // namespace v8 | 485 } // namespace v8 |
OLD | NEW |