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 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2340 } else { | 2340 } else { |
2341 VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged); | 2341 VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged); |
2342 } | 2342 } |
2343 return; | 2343 return; |
2344 } | 2344 } |
2345 case IrOpcode::kObjectIsCallable: | 2345 case IrOpcode::kObjectIsCallable: |
2346 case IrOpcode::kObjectIsNumber: | 2346 case IrOpcode::kObjectIsNumber: |
2347 case IrOpcode::kObjectIsReceiver: | 2347 case IrOpcode::kObjectIsReceiver: |
2348 case IrOpcode::kObjectIsSmi: | 2348 case IrOpcode::kObjectIsSmi: |
2349 case IrOpcode::kObjectIsString: | 2349 case IrOpcode::kObjectIsString: |
2350 case IrOpcode::kObjectIsUndetectable: { | 2350 case IrOpcode::kObjectIsUndetectable: |
2351 ProcessInput(node, 0, UseInfo::AnyTagged()); | 2351 case IrOpcode::kArrayBufferWasNeutered: { |
2352 SetOutput(node, MachineRepresentation::kBit); | 2352 VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kBit); |
2353 return; | 2353 return; |
2354 } | 2354 } |
2355 case IrOpcode::kCheckFloat64Hole: { | 2355 case IrOpcode::kCheckFloat64Hole: { |
2356 if (truncation.IsUnused()) return VisitUnused(node); | 2356 if (truncation.IsUnused()) return VisitUnused(node); |
2357 CheckFloat64HoleMode mode = CheckFloat64HoleModeOf(node->op()); | 2357 CheckFloat64HoleMode mode = CheckFloat64HoleModeOf(node->op()); |
2358 ProcessInput(node, 0, UseInfo::TruncatingFloat64()); | 2358 ProcessInput(node, 0, UseInfo::TruncatingFloat64()); |
2359 ProcessRemainingInputs(node, 1); | 2359 ProcessRemainingInputs(node, 1); |
2360 SetOutput(node, MachineRepresentation::kFloat64); | 2360 SetOutput(node, MachineRepresentation::kFloat64); |
2361 if (truncation.IsUsedAsFloat64() && | 2361 if (truncation.IsUsedAsFloat64() && |
2362 mode == CheckFloat64HoleMode::kAllowReturnHole) { | 2362 mode == CheckFloat64HoleMode::kAllowReturnHole) { |
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3329 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3329 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
3330 Operator::kNoProperties); | 3330 Operator::kNoProperties); |
3331 to_number_operator_.set(common()->Call(desc)); | 3331 to_number_operator_.set(common()->Call(desc)); |
3332 } | 3332 } |
3333 return to_number_operator_.get(); | 3333 return to_number_operator_.get(); |
3334 } | 3334 } |
3335 | 3335 |
3336 } // namespace compiler | 3336 } // namespace compiler |
3337 } // namespace internal | 3337 } // namespace internal |
3338 } // namespace v8 | 3338 } // namespace v8 |
OLD | NEW |