| 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/interpreter/interpreter-assembler.h" | 5 #include "src/interpreter/interpreter-assembler.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 | 9 |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 Word32Or(var_type_feedback->value(), | 1167 Word32Or(var_type_feedback->value(), |
| 1168 Int32Constant(BinaryOperationFeedback::kNumber))); | 1168 Int32Constant(BinaryOperationFeedback::kNumber))); |
| 1169 Goto(&done_loop); | 1169 Goto(&done_loop); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 Bind(&if_valueisnotheapnumber); | 1172 Bind(&if_valueisnotheapnumber); |
| 1173 { | 1173 { |
| 1174 // We do not require an Or with earlier feedback here because once we | 1174 // We do not require an Or with earlier feedback here because once we |
| 1175 // convert the value to a number, we cannot reach this path. We can | 1175 // convert the value to a number, we cannot reach this path. We can |
| 1176 // only reach this path on the first pass when the feedback is kNone. | 1176 // only reach this path on the first pass when the feedback is kNone. |
| 1177 Assert(Word32Equal(var_type_feedback->value(), | 1177 CSA_ASSERT(Word32Equal(var_type_feedback->value(), |
| 1178 Int32Constant(BinaryOperationFeedback::kNone))); | 1178 Int32Constant(BinaryOperationFeedback::kNone))); |
| 1179 | 1179 |
| 1180 Label if_valueisoddball(this), | 1180 Label if_valueisoddball(this), |
| 1181 if_valueisnotoddball(this, Label::kDeferred); | 1181 if_valueisnotoddball(this, Label::kDeferred); |
| 1182 Node* is_oddball = Word32Equal(LoadMapInstanceType(value_map), | 1182 Node* is_oddball = Word32Equal(LoadMapInstanceType(value_map), |
| 1183 Int32Constant(ODDBALL_TYPE)); | 1183 Int32Constant(ODDBALL_TYPE)); |
| 1184 Branch(is_oddball, &if_valueisoddball, &if_valueisnotoddball); | 1184 Branch(is_oddball, &if_valueisoddball, &if_valueisnotoddball); |
| 1185 | 1185 |
| 1186 Bind(&if_valueisoddball); | 1186 Bind(&if_valueisoddball); |
| 1187 { | 1187 { |
| 1188 // Convert Oddball to a Number and perform checks again. | 1188 // Convert Oddball to a Number and perform checks again. |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 Goto(&loop); | 1373 Goto(&loop); |
| 1374 } | 1374 } |
| 1375 Bind(&done_loop); | 1375 Bind(&done_loop); |
| 1376 | 1376 |
| 1377 return array; | 1377 return array; |
| 1378 } | 1378 } |
| 1379 | 1379 |
| 1380 } // namespace interpreter | 1380 } // namespace interpreter |
| 1381 } // namespace internal | 1381 } // namespace internal |
| 1382 } // namespace v8 | 1382 } // namespace v8 |
| OLD | NEW |