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

Side by Side Diff: src/runtime/runtime.h

Issue 1302133002: [simd.js] Add SIMD load functions for Phase 1. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/unicode.h" 10 #include "src/unicode.h"
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 F(Float32x4GreaterThanOrEqual, 2, 1) \ 599 F(Float32x4GreaterThanOrEqual, 2, 1) \
600 F(Float32x4Equal, 2, 1) \ 600 F(Float32x4Equal, 2, 1) \
601 F(Float32x4NotEqual, 2, 1) \ 601 F(Float32x4NotEqual, 2, 1) \
602 F(Float32x4Select, 3, 1) \ 602 F(Float32x4Select, 3, 1) \
603 F(Float32x4Swizzle, 5, 1) \ 603 F(Float32x4Swizzle, 5, 1) \
604 F(Float32x4Shuffle, 6, 1) \ 604 F(Float32x4Shuffle, 6, 1) \
605 F(Float32x4FromInt32x4, 1, 1) \ 605 F(Float32x4FromInt32x4, 1, 1) \
606 F(Float32x4FromInt32x4Bits, 1, 1) \ 606 F(Float32x4FromInt32x4Bits, 1, 1) \
607 F(Float32x4FromInt16x8Bits, 1, 1) \ 607 F(Float32x4FromInt16x8Bits, 1, 1) \
608 F(Float32x4FromInt8x16Bits, 1, 1) \ 608 F(Float32x4FromInt8x16Bits, 1, 1) \
609 F(Float32x4Load, 2, 1) \
610 F(Float32x4Load1, 2, 1) \
611 F(Float32x4Load2, 2, 1) \
612 F(Float32x4Load3, 2, 1) \
609 F(Int32x4Check, 1, 1) \ 613 F(Int32x4Check, 1, 1) \
610 F(Int32x4ExtractLane, 2, 1) \ 614 F(Int32x4ExtractLane, 2, 1) \
611 F(Int32x4ReplaceLane, 3, 1) \ 615 F(Int32x4ReplaceLane, 3, 1) \
612 F(Int32x4Neg, 1, 1) \ 616 F(Int32x4Neg, 1, 1) \
613 F(Int32x4Add, 2, 1) \ 617 F(Int32x4Add, 2, 1) \
614 F(Int32x4Sub, 2, 1) \ 618 F(Int32x4Sub, 2, 1) \
615 F(Int32x4Mul, 2, 1) \ 619 F(Int32x4Mul, 2, 1) \
616 F(Int32x4Min, 2, 1) \ 620 F(Int32x4Min, 2, 1) \
617 F(Int32x4Max, 2, 1) \ 621 F(Int32x4Max, 2, 1) \
618 F(Int32x4And, 2, 1) \ 622 F(Int32x4And, 2, 1) \
619 F(Int32x4Or, 2, 1) \ 623 F(Int32x4Or, 2, 1) \
620 F(Int32x4Xor, 2, 1) \ 624 F(Int32x4Xor, 2, 1) \
621 F(Int32x4Not, 1, 1) \ 625 F(Int32x4Not, 1, 1) \
622 F(Int32x4ShiftLeftByScalar, 2, 1) \ 626 F(Int32x4ShiftLeftByScalar, 2, 1) \
623 F(Int32x4ShiftRightLogicalByScalar, 2, 1) \ 627 F(Int32x4ShiftRightLogicalByScalar, 2, 1) \
624 F(Int32x4ShiftRightArithmeticByScalar, 2, 1) \ 628 F(Int32x4ShiftRightArithmeticByScalar, 2, 1) \
625 F(Int32x4LessThan, 2, 1) \ 629 F(Int32x4LessThan, 2, 1) \
626 F(Int32x4LessThanOrEqual, 2, 1) \ 630 F(Int32x4LessThanOrEqual, 2, 1) \
627 F(Int32x4GreaterThan, 2, 1) \ 631 F(Int32x4GreaterThan, 2, 1) \
628 F(Int32x4GreaterThanOrEqual, 2, 1) \ 632 F(Int32x4GreaterThanOrEqual, 2, 1) \
629 F(Int32x4Equal, 2, 1) \ 633 F(Int32x4Equal, 2, 1) \
630 F(Int32x4NotEqual, 2, 1) \ 634 F(Int32x4NotEqual, 2, 1) \
631 F(Int32x4Select, 3, 1) \ 635 F(Int32x4Select, 3, 1) \
632 F(Int32x4Swizzle, 5, 1) \ 636 F(Int32x4Swizzle, 5, 1) \
633 F(Int32x4Shuffle, 6, 1) \ 637 F(Int32x4Shuffle, 6, 1) \
634 F(Int32x4FromFloat32x4, 1, 1) \ 638 F(Int32x4FromFloat32x4, 1, 1) \
635 F(Int32x4FromFloat32x4Bits, 1, 1) \ 639 F(Int32x4FromFloat32x4Bits, 1, 1) \
636 F(Int32x4FromInt16x8Bits, 1, 1) \ 640 F(Int32x4FromInt16x8Bits, 1, 1) \
637 F(Int32x4FromInt8x16Bits, 1, 1) \ 641 F(Int32x4FromInt8x16Bits, 1, 1) \
642 F(Int32x4Load, 2, 1) \
643 F(Int32x4Load1, 2, 1) \
644 F(Int32x4Load2, 2, 1) \
645 F(Int32x4Load3, 2, 1) \
638 F(Bool32x4Check, 1, 1) \ 646 F(Bool32x4Check, 1, 1) \
639 F(Bool32x4ExtractLane, 2, 1) \ 647 F(Bool32x4ExtractLane, 2, 1) \
640 F(Bool32x4ReplaceLane, 3, 1) \ 648 F(Bool32x4ReplaceLane, 3, 1) \
641 F(Bool32x4And, 2, 1) \ 649 F(Bool32x4And, 2, 1) \
642 F(Bool32x4Or, 2, 1) \ 650 F(Bool32x4Or, 2, 1) \
643 F(Bool32x4Xor, 2, 1) \ 651 F(Bool32x4Xor, 2, 1) \
644 F(Bool32x4Not, 1, 1) \ 652 F(Bool32x4Not, 1, 1) \
645 F(Bool32x4AnyTrue, 1, 1) \ 653 F(Bool32x4AnyTrue, 1, 1) \
646 F(Bool32x4AllTrue, 1, 1) \ 654 F(Bool32x4AllTrue, 1, 1) \
647 F(Bool32x4Equal, 2, 1) \ 655 F(Bool32x4Equal, 2, 1) \
(...skipping 24 matching lines...) Expand all
672 F(Int16x8GreaterThan, 2, 1) \ 680 F(Int16x8GreaterThan, 2, 1) \
673 F(Int16x8GreaterThanOrEqual, 2, 1) \ 681 F(Int16x8GreaterThanOrEqual, 2, 1) \
674 F(Int16x8Equal, 2, 1) \ 682 F(Int16x8Equal, 2, 1) \
675 F(Int16x8NotEqual, 2, 1) \ 683 F(Int16x8NotEqual, 2, 1) \
676 F(Int16x8Select, 3, 1) \ 684 F(Int16x8Select, 3, 1) \
677 F(Int16x8Swizzle, 9, 1) \ 685 F(Int16x8Swizzle, 9, 1) \
678 F(Int16x8Shuffle, 10, 1) \ 686 F(Int16x8Shuffle, 10, 1) \
679 F(Int16x8FromFloat32x4Bits, 1, 1) \ 687 F(Int16x8FromFloat32x4Bits, 1, 1) \
680 F(Int16x8FromInt32x4Bits, 1, 1) \ 688 F(Int16x8FromInt32x4Bits, 1, 1) \
681 F(Int16x8FromInt8x16Bits, 1, 1) \ 689 F(Int16x8FromInt8x16Bits, 1, 1) \
690 F(Int16x8Load, 2, 1) \
691 F(Int16x8Load1, 2, 1) \
692 F(Int16x8Load2, 2, 1) \
693 F(Int16x8Load3, 2, 1) \
bbudge 2015/08/20 18:23:34 The spec no longer defines the LoadN / StoreN func
gdeepti 2015/08/20 22:09:24 Done.
682 F(Bool16x8Check, 1, 1) \ 694 F(Bool16x8Check, 1, 1) \
683 F(Bool16x8ExtractLane, 2, 1) \ 695 F(Bool16x8ExtractLane, 2, 1) \
684 F(Bool16x8ReplaceLane, 3, 1) \ 696 F(Bool16x8ReplaceLane, 3, 1) \
685 F(Bool16x8And, 2, 1) \ 697 F(Bool16x8And, 2, 1) \
686 F(Bool16x8Or, 2, 1) \ 698 F(Bool16x8Or, 2, 1) \
687 F(Bool16x8Xor, 2, 1) \ 699 F(Bool16x8Xor, 2, 1) \
688 F(Bool16x8Not, 1, 1) \ 700 F(Bool16x8Not, 1, 1) \
689 F(Bool16x8AnyTrue, 1, 1) \ 701 F(Bool16x8AnyTrue, 1, 1) \
690 F(Bool16x8AllTrue, 1, 1) \ 702 F(Bool16x8AllTrue, 1, 1) \
691 F(Bool16x8Equal, 2, 1) \ 703 F(Bool16x8Equal, 2, 1) \
(...skipping 24 matching lines...) Expand all
716 F(Int8x16GreaterThan, 2, 1) \ 728 F(Int8x16GreaterThan, 2, 1) \
717 F(Int8x16GreaterThanOrEqual, 2, 1) \ 729 F(Int8x16GreaterThanOrEqual, 2, 1) \
718 F(Int8x16Equal, 2, 1) \ 730 F(Int8x16Equal, 2, 1) \
719 F(Int8x16NotEqual, 2, 1) \ 731 F(Int8x16NotEqual, 2, 1) \
720 F(Int8x16Select, 3, 1) \ 732 F(Int8x16Select, 3, 1) \
721 F(Int8x16Swizzle, 17, 1) \ 733 F(Int8x16Swizzle, 17, 1) \
722 F(Int8x16Shuffle, 18, 1) \ 734 F(Int8x16Shuffle, 18, 1) \
723 F(Int8x16FromFloat32x4Bits, 1, 1) \ 735 F(Int8x16FromFloat32x4Bits, 1, 1) \
724 F(Int8x16FromInt32x4Bits, 1, 1) \ 736 F(Int8x16FromInt32x4Bits, 1, 1) \
725 F(Int8x16FromInt16x8Bits, 1, 1) \ 737 F(Int8x16FromInt16x8Bits, 1, 1) \
738 F(Int8x16Load, 2, 1) \
739 F(Int8x16Load1, 2, 1) \
740 F(Int8x16Load2, 2, 1) \
741 F(Int8x16Load3, 2, 1) \
726 F(Bool8x16Check, 1, 1) \ 742 F(Bool8x16Check, 1, 1) \
727 F(Bool8x16ExtractLane, 2, 1) \ 743 F(Bool8x16ExtractLane, 2, 1) \
728 F(Bool8x16ReplaceLane, 3, 1) \ 744 F(Bool8x16ReplaceLane, 3, 1) \
729 F(Bool8x16And, 2, 1) \ 745 F(Bool8x16And, 2, 1) \
730 F(Bool8x16Or, 2, 1) \ 746 F(Bool8x16Or, 2, 1) \
731 F(Bool8x16Xor, 2, 1) \ 747 F(Bool8x16Xor, 2, 1) \
732 F(Bool8x16Not, 1, 1) \ 748 F(Bool8x16Not, 1, 1) \
733 F(Bool8x16AnyTrue, 1, 1) \ 749 F(Bool8x16AnyTrue, 1, 1) \
734 F(Bool8x16AllTrue, 1, 1) \ 750 F(Bool8x16AllTrue, 1, 1) \
735 F(Bool8x16Equal, 2, 1) \ 751 F(Bool8x16Equal, 2, 1) \
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 inline bool Runtime::AtomicIsLockFree(uint32_t size) { 1155 inline bool Runtime::AtomicIsLockFree(uint32_t size) {
1140 return size == 1 || size == 2 || size == 4; 1156 return size == 1 || size == 2 || size == 4;
1141 } 1157 }
1142 1158
1143 #endif 1159 #endif
1144 1160
1145 } // namespace internal 1161 } // namespace internal
1146 } // namespace v8 1162 } // namespace v8
1147 1163
1148 #endif // V8_RUNTIME_RUNTIME_H_ 1164 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698