Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/flow_graph_optimizer.h" | 5 #include "vm/flow_graph_optimizer.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/cha.h" | 8 #include "vm/cha.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1371 ic_data, entry, last); | 1371 ic_data, entry, last); |
| 1372 case MethodRecognizer::kByteArrayBaseSetInt16: | 1372 case MethodRecognizer::kByteArrayBaseSetInt16: |
| 1373 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, | 1373 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, |
| 1374 kTypedDataInt16ArrayCid, | 1374 kTypedDataInt16ArrayCid, |
| 1375 ic_data, entry, last); | 1375 ic_data, entry, last); |
| 1376 case MethodRecognizer::kByteArrayBaseSetUint16: | 1376 case MethodRecognizer::kByteArrayBaseSetUint16: |
| 1377 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, | 1377 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, |
| 1378 kTypedDataUint16ArrayCid, | 1378 kTypedDataUint16ArrayCid, |
| 1379 ic_data, entry, last); | 1379 ic_data, entry, last); |
| 1380 case MethodRecognizer::kByteArrayBaseSetInt32: | 1380 case MethodRecognizer::kByteArrayBaseSetInt32: |
| 1381 if (!CanUnboxInt32()) return false; | |
|
zra
2014/02/13 20:56:36
Please add curly braces.
if (!CanUnboxInt32()) {
| |
| 1381 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, | 1382 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, |
| 1382 kTypedDataInt32ArrayCid, | 1383 kTypedDataInt32ArrayCid, |
| 1383 ic_data, entry, last); | 1384 ic_data, entry, last); |
| 1384 case MethodRecognizer::kByteArrayBaseSetUint32: | 1385 case MethodRecognizer::kByteArrayBaseSetUint32: |
| 1386 if (!CanUnboxInt32()) return false; | |
|
zra
2014/02/13 20:56:36
Curly braces.
| |
| 1385 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, | 1387 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, |
| 1386 kTypedDataUint32ArrayCid, | 1388 kTypedDataUint32ArrayCid, |
| 1387 ic_data, entry, last); | 1389 ic_data, entry, last); |
| 1388 case MethodRecognizer::kByteArrayBaseSetFloat32: | 1390 case MethodRecognizer::kByteArrayBaseSetFloat32: |
| 1389 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, | 1391 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, |
| 1390 kTypedDataFloat32ArrayCid, | 1392 kTypedDataFloat32ArrayCid, |
| 1391 ic_data, entry, last); | 1393 ic_data, entry, last); |
| 1392 case MethodRecognizer::kByteArrayBaseSetFloat64: | 1394 case MethodRecognizer::kByteArrayBaseSetFloat64: |
| 1393 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, | 1395 return InlineByteArrayViewStore(target, call, receiver, receiver_cid, |
| 1394 kTypedDataFloat64ArrayCid, | 1396 kTypedDataFloat64ArrayCid, |
| (...skipping 7215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8610 } | 8612 } |
| 8611 | 8613 |
| 8612 // Insert materializations at environment uses. | 8614 // Insert materializations at environment uses. |
| 8613 for (intptr_t i = 0; i < exits.length(); i++) { | 8615 for (intptr_t i = 0; i < exits.length(); i++) { |
| 8614 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields); | 8616 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields); |
| 8615 } | 8617 } |
| 8616 } | 8618 } |
| 8617 | 8619 |
| 8618 | 8620 |
| 8619 } // namespace dart | 8621 } // namespace dart |
| OLD | NEW |