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

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

Issue 1160443009: Add SIMD.Float32x4 functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tests working. Created 5 years, 5 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/runtime.js ('k') | src/runtime/runtime-simd.cc » ('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 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/zone.h" 10 #include "src/zone.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 F(IsJSModule, 1, 1) \ 544 F(IsJSModule, 1, 1) \
545 F(PushModuleContext, 2, 1) \ 545 F(PushModuleContext, 2, 1) \
546 F(DeclareModules, 1, 1) \ 546 F(DeclareModules, 1, 1) \
547 F(DeleteLookupSlot, 2, 1) \ 547 F(DeleteLookupSlot, 2, 1) \
548 F(StoreLookupSlot, 4, 1) \ 548 F(StoreLookupSlot, 4, 1) \
549 F(GetArgumentsProperty, 1, 1) \ 549 F(GetArgumentsProperty, 1, 1) \
550 F(ArgumentsLength, 0, 1) \ 550 F(ArgumentsLength, 0, 1) \
551 F(Arguments, 1, 1) 551 F(Arguments, 1, 1)
552 552
553 553
554 #define FOR_EACH_INTRINSIC_SIMD(F) \
555 F(CreateFloat32x4, 4, 1) \
556 F(NewFloat32x4Wrapper, 1, 1) \
557 F(Float32x4Check, 1, 1) \
558 F(Float32x4ExtractLane, 2, 1) \
559 F(Float32x4ReplaceLane, 3, 1) \
560 F(Float32x4Abs, 1, 1) \
561 F(Float32x4Neg, 1, 1) \
562 F(Float32x4Sqrt, 1, 1) \
563 F(Float32x4RecipApprox, 1, 1) \
564 F(Float32x4RecipSqrtApprox, 1, 1) \
565 F(Float32x4Add, 2, 1) \
566 F(Float32x4Sub, 2, 1) \
567 F(Float32x4Mul, 2, 1) \
568 F(Float32x4Div, 2, 1) \
569 F(Float32x4Min, 2, 1) \
570 F(Float32x4Max, 2, 1) \
571 F(Float32x4MinNum, 2, 1) \
572 F(Float32x4MaxNum, 2, 1) \
573 F(Float32x4Swizzle, 5, 1) \
574 F(Float32x4Shuffle, 6, 1)
575
576
554 #define FOR_EACH_INTRINSIC_STRINGS(F) \ 577 #define FOR_EACH_INTRINSIC_STRINGS(F) \
555 F(StringReplaceOneCharWithString, 3, 1) \ 578 F(StringReplaceOneCharWithString, 3, 1) \
556 F(StringIndexOf, 3, 1) \ 579 F(StringIndexOf, 3, 1) \
557 F(StringLastIndexOf, 3, 1) \ 580 F(StringLastIndexOf, 3, 1) \
558 F(StringLocaleCompare, 2, 1) \ 581 F(StringLocaleCompare, 2, 1) \
559 F(SubStringRT, 3, 1) \ 582 F(SubStringRT, 3, 1) \
560 F(SubString, 3, 1) \ 583 F(SubString, 3, 1) \
561 F(StringAddRT, 2, 1) \ 584 F(StringAddRT, 2, 1) \
562 F(StringAdd, 2, 1) \ 585 F(StringAdd, 2, 1) \
563 F(InternalizeString, 1, 1) \ 586 F(InternalizeString, 1, 1) \
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 FOR_EACH_INTRINSIC_JSON(F) \ 742 FOR_EACH_INTRINSIC_JSON(F) \
720 FOR_EACH_INTRINSIC_LITERALS(F) \ 743 FOR_EACH_INTRINSIC_LITERALS(F) \
721 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ 744 FOR_EACH_INTRINSIC_LIVEEDIT(F) \
722 FOR_EACH_INTRINSIC_MATHS(F) \ 745 FOR_EACH_INTRINSIC_MATHS(F) \
723 FOR_EACH_INTRINSIC_NUMBERS(F) \ 746 FOR_EACH_INTRINSIC_NUMBERS(F) \
724 FOR_EACH_INTRINSIC_OBJECT(F) \ 747 FOR_EACH_INTRINSIC_OBJECT(F) \
725 FOR_EACH_INTRINSIC_OBSERVE(F) \ 748 FOR_EACH_INTRINSIC_OBSERVE(F) \
726 FOR_EACH_INTRINSIC_PROXY(F) \ 749 FOR_EACH_INTRINSIC_PROXY(F) \
727 FOR_EACH_INTRINSIC_REGEXP(F) \ 750 FOR_EACH_INTRINSIC_REGEXP(F) \
728 FOR_EACH_INTRINSIC_SCOPES(F) \ 751 FOR_EACH_INTRINSIC_SCOPES(F) \
752 FOR_EACH_INTRINSIC_SIMD(F) \
729 FOR_EACH_INTRINSIC_STRINGS(F) \ 753 FOR_EACH_INTRINSIC_STRINGS(F) \
730 FOR_EACH_INTRINSIC_SYMBOL(F) \ 754 FOR_EACH_INTRINSIC_SYMBOL(F) \
731 FOR_EACH_INTRINSIC_TEST(F) \ 755 FOR_EACH_INTRINSIC_TEST(F) \
732 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ 756 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \
733 FOR_EACH_INTRINSIC_URI(F) 757 FOR_EACH_INTRINSIC_URI(F)
734 758
735 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, 759 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors,
736 // either returning an object or a pair. 760 // either returning an object or a pair.
737 #define FOR_EACH_INTRINSIC(F) \ 761 #define FOR_EACH_INTRINSIC(F) \
738 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ 762 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 inline bool Runtime::AtomicIsLockFree(uint32_t size) { 953 inline bool Runtime::AtomicIsLockFree(uint32_t size) {
930 return size == 1 || size == 2 || size == 4; 954 return size == 1 || size == 2 || size == 4;
931 } 955 }
932 956
933 #endif 957 #endif
934 958
935 } // namespace internal 959 } // namespace internal
936 } // namespace v8 960 } // namespace v8
937 961
938 #endif // V8_RUNTIME_RUNTIME_H_ 962 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/runtime.js ('k') | src/runtime/runtime-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698