Chromium Code Reviews| 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 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2382 return; | 2382 return; |
| 2383 } | 2383 } |
| 2384 case IrOpcode::kCheckMaps: | 2384 case IrOpcode::kCheckMaps: |
| 2385 case IrOpcode::kTransitionElementsKind: { | 2385 case IrOpcode::kTransitionElementsKind: { |
| 2386 VisitInputs(node); | 2386 VisitInputs(node); |
| 2387 return SetOutput(node, MachineRepresentation::kNone); | 2387 return SetOutput(node, MachineRepresentation::kNone); |
| 2388 } | 2388 } |
| 2389 case IrOpcode::kEnsureWritableFastElements: | 2389 case IrOpcode::kEnsureWritableFastElements: |
| 2390 return VisitBinop(node, UseInfo::AnyTagged(), | 2390 return VisitBinop(node, UseInfo::AnyTagged(), |
| 2391 MachineRepresentation::kTagged); | 2391 MachineRepresentation::kTagged); |
| 2392 case IrOpcode::kMaybeGrowFastElements: { | |
| 2393 ProcessInput(node, 0, UseInfo::AnyTagged()); | |
| 2394 ProcessInput(node, 1, UseInfo::AnyTagged()); | |
| 2395 ProcessInput(node, 2, UseInfo::TruncatingWord32()); | |
| 2396 ProcessInput(node, 3, UseInfo::TruncatingWord32()); | |
|
Jarin
2016/08/08 08:03:47
Again, the magic indices are not helping readabili
Benedikt Meurer
2016/08/08 08:12:56
Done.
| |
| 2397 ProcessRemainingInputs(node, 4); | |
| 2398 SetOutput(node, MachineRepresentation::kTagged); | |
| 2399 return; | |
| 2400 } | |
| 2392 | 2401 |
| 2393 //------------------------------------------------------------------ | 2402 //------------------------------------------------------------------ |
| 2394 // Machine-level operators. | 2403 // Machine-level operators. |
| 2395 //------------------------------------------------------------------ | 2404 //------------------------------------------------------------------ |
| 2396 case IrOpcode::kLoad: { | 2405 case IrOpcode::kLoad: { |
| 2397 // TODO(jarin) Eventually, we should get rid of all machine stores | 2406 // TODO(jarin) Eventually, we should get rid of all machine stores |
| 2398 // from the high-level phases, then this becomes UNREACHABLE. | 2407 // from the high-level phases, then this becomes UNREACHABLE. |
| 2399 LoadRepresentation rep = LoadRepresentationOf(node->op()); | 2408 LoadRepresentation rep = LoadRepresentationOf(node->op()); |
| 2400 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer | 2409 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer |
| 2401 ProcessInput(node, 1, UseInfo::PointerInt()); // index | 2410 ProcessInput(node, 1, UseInfo::PointerInt()); // index |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3310 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3319 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
| 3311 Operator::kNoProperties); | 3320 Operator::kNoProperties); |
| 3312 to_number_operator_.set(common()->Call(desc)); | 3321 to_number_operator_.set(common()->Call(desc)); |
| 3313 } | 3322 } |
| 3314 return to_number_operator_.get(); | 3323 return to_number_operator_.get(); |
| 3315 } | 3324 } |
| 3316 | 3325 |
| 3317 } // namespace compiler | 3326 } // namespace compiler |
| 3318 } // namespace internal | 3327 } // namespace internal |
| 3319 } // namespace v8 | 3328 } // namespace v8 |
| OLD | NEW |