OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/effect-control-linearizer.h" | 5 #include "src/compiler/effect-control-linearizer.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/compiler/access-builder.h" | 8 #include "src/compiler/access-builder.h" |
9 #include "src/compiler/compiler-source-position-table.h" | 9 #include "src/compiler/compiler-source-position-table.h" |
10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 __ Word32And(value_instance_type, | 1228 __ Word32And(value_instance_type, |
1229 __ Int32Constant(kIsNotStringMask | kIsNotInternalizedMask)), | 1229 __ Int32Constant(kIsNotStringMask | kIsNotInternalizedMask)), |
1230 __ Int32Constant(kInternalizedTag)); | 1230 __ Int32Constant(kInternalizedTag)); |
1231 __ DeoptimizeUnless(DeoptimizeReason::kWrongInstanceType, check, frame_state); | 1231 __ DeoptimizeUnless(DeoptimizeReason::kWrongInstanceType, check, frame_state); |
1232 | 1232 |
1233 return value; | 1233 return value; |
1234 } | 1234 } |
1235 | 1235 |
1236 Node* EffectControlLinearizer::LowerCheckIf(Node* node, Node* frame_state) { | 1236 Node* EffectControlLinearizer::LowerCheckIf(Node* node, Node* frame_state) { |
1237 Node* value = node->InputAt(0); | 1237 Node* value = node->InputAt(0); |
1238 __ DeoptimizeUnless(DeoptimizeKind::kEager, DeoptimizeReason::kNoReason, | 1238 __ DeoptimizeUnless(DeoptimizeReason::kNoReason, value, frame_state); |
1239 value, frame_state); | |
1240 return value; | 1239 return value; |
1241 } | 1240 } |
1242 | 1241 |
1243 Node* EffectControlLinearizer::LowerCheckedInt32Add(Node* node, | 1242 Node* EffectControlLinearizer::LowerCheckedInt32Add(Node* node, |
1244 Node* frame_state) { | 1243 Node* frame_state) { |
1245 Node* lhs = node->InputAt(0); | 1244 Node* lhs = node->InputAt(0); |
1246 Node* rhs = node->InputAt(1); | 1245 Node* rhs = node->InputAt(1); |
1247 | 1246 |
1248 Node* value = __ Int32AddWithOverflow(lhs, rhs); | 1247 Node* value = __ Int32AddWithOverflow(lhs, rhs); |
1249 Node* check = __ Projection(1, value); | 1248 Node* check = __ Projection(1, value); |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2791 return isolate()->factory(); | 2790 return isolate()->factory(); |
2792 } | 2791 } |
2793 | 2792 |
2794 Isolate* EffectControlLinearizer::isolate() const { | 2793 Isolate* EffectControlLinearizer::isolate() const { |
2795 return jsgraph()->isolate(); | 2794 return jsgraph()->isolate(); |
2796 } | 2795 } |
2797 | 2796 |
2798 } // namespace compiler | 2797 } // namespace compiler |
2799 } // namespace internal | 2798 } // namespace internal |
2800 } // namespace v8 | 2799 } // namespace v8 |
OLD | NEW |