Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: src/compiler/effect-control-linearizer.cc

Issue 2683203002: Revert of [compiler] Pass deoptimization_kind through DeoptimizeParameters and FlagsContinuation (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | src/compiler/graph-assembler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | src/compiler/graph-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698