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/simplified-lowering.h" | 5 #include "src/compiler/simplified-lowering.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/address-map.h" | 9 #include "src/address-map.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2453 case IrOpcode::kJSToInteger: | 2453 case IrOpcode::kJSToInteger: |
2454 case IrOpcode::kJSToLength: | 2454 case IrOpcode::kJSToLength: |
2455 case IrOpcode::kJSToName: | 2455 case IrOpcode::kJSToName: |
2456 case IrOpcode::kJSToObject: | 2456 case IrOpcode::kJSToObject: |
2457 case IrOpcode::kJSToString: | 2457 case IrOpcode::kJSToString: |
2458 VisitInputs(node); | 2458 VisitInputs(node); |
2459 // Assume the output is tagged. | 2459 // Assume the output is tagged. |
2460 return SetOutput(node, MachineRepresentation::kTagged); | 2460 return SetOutput(node, MachineRepresentation::kTagged); |
2461 | 2461 |
2462 default: | 2462 default: |
2463 V8_Fatal(__FILE__, __LINE__, | 2463 V8_Fatal( |
2464 "Representation inference: unsupported opcode %s\n.", | 2464 __FILE__, __LINE__, |
2465 node->op()->mnemonic()); | 2465 "Representation inference: unsupported opcode %i (%s), node #%i\n.", |
| 2466 node->opcode(), node->op()->mnemonic(), node->id()); |
2466 break; | 2467 break; |
2467 } | 2468 } |
2468 UNREACHABLE(); | 2469 UNREACHABLE(); |
2469 } | 2470 } |
2470 | 2471 |
2471 void DeferReplacement(Node* node, Node* replacement) { | 2472 void DeferReplacement(Node* node, Node* replacement) { |
2472 TRACE("defer replacement #%d:%s with #%d:%s\n", node->id(), | 2473 TRACE("defer replacement #%d:%s with #%d:%s\n", node->id(), |
2473 node->op()->mnemonic(), replacement->id(), | 2474 node->op()->mnemonic(), replacement->id(), |
2474 replacement->op()->mnemonic()); | 2475 replacement->op()->mnemonic()); |
2475 | 2476 |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3193 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3194 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
3194 Operator::kNoProperties); | 3195 Operator::kNoProperties); |
3195 to_number_operator_.set(common()->Call(desc)); | 3196 to_number_operator_.set(common()->Call(desc)); |
3196 } | 3197 } |
3197 return to_number_operator_.get(); | 3198 return to_number_operator_.get(); |
3198 } | 3199 } |
3199 | 3200 |
3200 } // namespace compiler | 3201 } // namespace compiler |
3201 } // namespace internal | 3202 } // namespace internal |
3202 } // namespace v8 | 3203 } // namespace v8 |
OLD | NEW |