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 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2368 ProcessRemainingInputs(node, 1); | 2368 ProcessRemainingInputs(node, 1); |
2369 SetOutput(node, MachineRepresentation::kTagged); | 2369 SetOutput(node, MachineRepresentation::kTagged); |
2370 } | 2370 } |
2371 return; | 2371 return; |
2372 } | 2372 } |
2373 case IrOpcode::kCheckMaps: | 2373 case IrOpcode::kCheckMaps: |
2374 case IrOpcode::kTransitionElementsKind: { | 2374 case IrOpcode::kTransitionElementsKind: { |
2375 VisitInputs(node); | 2375 VisitInputs(node); |
2376 return SetOutput(node, MachineRepresentation::kNone); | 2376 return SetOutput(node, MachineRepresentation::kNone); |
2377 } | 2377 } |
| 2378 case IrOpcode::kEnsureWritableFastElements: |
| 2379 return VisitBinop(node, UseInfo::AnyTagged(), |
| 2380 MachineRepresentation::kTagged); |
2378 | 2381 |
2379 //------------------------------------------------------------------ | 2382 //------------------------------------------------------------------ |
2380 // Machine-level operators. | 2383 // Machine-level operators. |
2381 //------------------------------------------------------------------ | 2384 //------------------------------------------------------------------ |
2382 case IrOpcode::kLoad: { | 2385 case IrOpcode::kLoad: { |
2383 // TODO(jarin) Eventually, we should get rid of all machine stores | 2386 // TODO(jarin) Eventually, we should get rid of all machine stores |
2384 // from the high-level phases, then this becomes UNREACHABLE. | 2387 // from the high-level phases, then this becomes UNREACHABLE. |
2385 LoadRepresentation rep = LoadRepresentationOf(node->op()); | 2388 LoadRepresentation rep = LoadRepresentationOf(node->op()); |
2386 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer | 2389 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer |
2387 ProcessInput(node, 1, UseInfo::PointerInt()); // index | 2390 ProcessInput(node, 1, UseInfo::PointerInt()); // index |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3287 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3290 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
3288 Operator::kNoProperties); | 3291 Operator::kNoProperties); |
3289 to_number_operator_.set(common()->Call(desc)); | 3292 to_number_operator_.set(common()->Call(desc)); |
3290 } | 3293 } |
3291 return to_number_operator_.get(); | 3294 return to_number_operator_.get(); |
3292 } | 3295 } |
3293 | 3296 |
3294 } // namespace compiler | 3297 } // namespace compiler |
3295 } // namespace internal | 3298 } // namespace internal |
3296 } // namespace v8 | 3299 } // namespace v8 |
OLD | NEW |