OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/bootstrap_natives.h" | 5 #include "vm/bootstrap_natives.h" |
6 | 6 |
7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
8 #include "vm/exceptions.h" | 8 #include "vm/exceptions.h" |
9 #include "vm/native_entry.h" | 9 #include "vm/native_entry.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 DEFINE_NATIVE_ENTRY(ExternalUint8Array_getIndexed, 2) { | 667 DEFINE_NATIVE_ENTRY(ExternalUint8Array_getIndexed, 2) { |
668 UNALIGNED_GETTER(ExternalUint8Array, Smi, uint8_t); | 668 UNALIGNED_GETTER(ExternalUint8Array, Smi, uint8_t); |
669 } | 669 } |
670 | 670 |
671 | 671 |
672 DEFINE_NATIVE_ENTRY(ExternalUint8Array_setIndexed, 3) { | 672 DEFINE_NATIVE_ENTRY(ExternalUint8Array_setIndexed, 3) { |
673 UNALIGNED_SETTER(ExternalUint8Array, Smi, Value, uint8_t); | 673 UNALIGNED_SETTER(ExternalUint8Array, Smi, Value, uint8_t); |
674 } | 674 } |
675 | 675 |
676 | 676 |
| 677 // ExternalUint8ClampedArray |
| 678 |
| 679 DEFINE_NATIVE_ENTRY(ExternalUint8ClampedArray_getIndexed, 2) { |
| 680 UNALIGNED_GETTER(ExternalUint8ClampedArray, Smi, uint8_t); |
| 681 } |
| 682 |
| 683 |
| 684 DEFINE_NATIVE_ENTRY(ExternalUint8ClampedArray_setIndexed, 3) { |
| 685 UNALIGNED_SETTER(ExternalUint8ClampedArray, Smi, Value, uint8_t); |
| 686 } |
| 687 |
| 688 |
677 // ExternalInt16Array | 689 // ExternalInt16Array |
678 | 690 |
679 DEFINE_NATIVE_ENTRY(ExternalInt16Array_getIndexed, 2) { | 691 DEFINE_NATIVE_ENTRY(ExternalInt16Array_getIndexed, 2) { |
680 GETTER(ExternalInt16Array, Smi, int16_t); | 692 GETTER(ExternalInt16Array, Smi, int16_t); |
681 } | 693 } |
682 | 694 |
683 | 695 |
684 DEFINE_NATIVE_ENTRY(ExternalInt16Array_setIndexed, 3) { | 696 DEFINE_NATIVE_ENTRY(ExternalInt16Array_setIndexed, 3) { |
685 SETTER(ExternalInt16Array, Smi, Value, int16_t); | 697 SETTER(ExternalInt16Array, Smi, Value, int16_t); |
686 } | 698 } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 DEFINE_NATIVE_ENTRY(ExternalFloat64Array_getIndexed, 2) { | 775 DEFINE_NATIVE_ENTRY(ExternalFloat64Array_getIndexed, 2) { |
764 GETTER(ExternalFloat64Array, Double, double); | 776 GETTER(ExternalFloat64Array, Double, double); |
765 } | 777 } |
766 | 778 |
767 | 779 |
768 DEFINE_NATIVE_ENTRY(ExternalFloat64Array_setIndexed, 3) { | 780 DEFINE_NATIVE_ENTRY(ExternalFloat64Array_setIndexed, 3) { |
769 SETTER(ExternalFloat64Array, Double, value, double); | 781 SETTER(ExternalFloat64Array, Double, value, double); |
770 } | 782 } |
771 | 783 |
772 } // namespace dart | 784 } // namespace dart |
OLD | NEW |