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

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

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 F(IsJSModule, 1, 1) \ 547 F(IsJSModule, 1, 1) \
548 F(PushModuleContext, 2, 1) \ 548 F(PushModuleContext, 2, 1) \
549 F(DeclareModules, 1, 1) \ 549 F(DeclareModules, 1, 1) \
550 F(DeleteLookupSlot, 2, 1) \ 550 F(DeleteLookupSlot, 2, 1) \
551 F(StoreLookupSlot, 4, 1) \ 551 F(StoreLookupSlot, 4, 1) \
552 F(GetArgumentsProperty, 1, 1) \ 552 F(GetArgumentsProperty, 1, 1) \
553 F(ArgumentsLength, 0, 1) \ 553 F(ArgumentsLength, 0, 1) \
554 F(Arguments, 1, 1) 554 F(Arguments, 1, 1)
555 555
556 556
557 #define FOR_EACH_INTRINSIC_SIMD(F) \
558 F(CreateFloat32x4, 4, 1) \
559 F(NewFloat32x4Wrapper, 1, 1) \
560 F(Float32x4Check, 1, 1) \
561 F(Float32x4ExtractLane, 2, 1)
562
563
557 #define FOR_EACH_INTRINSIC_STRINGS(F) \ 564 #define FOR_EACH_INTRINSIC_STRINGS(F) \
558 F(StringReplaceOneCharWithString, 3, 1) \ 565 F(StringReplaceOneCharWithString, 3, 1) \
559 F(StringIndexOf, 3, 1) \ 566 F(StringIndexOf, 3, 1) \
560 F(StringLastIndexOf, 3, 1) \ 567 F(StringLastIndexOf, 3, 1) \
561 F(StringLocaleCompare, 2, 1) \ 568 F(StringLocaleCompare, 2, 1) \
562 F(SubStringRT, 3, 1) \ 569 F(SubStringRT, 3, 1) \
563 F(SubString, 3, 1) \ 570 F(SubString, 3, 1) \
564 F(StringAddRT, 2, 1) \ 571 F(StringAddRT, 2, 1) \
565 F(StringAdd, 2, 1) \ 572 F(StringAdd, 2, 1) \
566 F(InternalizeString, 1, 1) \ 573 F(InternalizeString, 1, 1) \
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 FOR_EACH_INTRINSIC_JSON(F) \ 729 FOR_EACH_INTRINSIC_JSON(F) \
723 FOR_EACH_INTRINSIC_LITERALS(F) \ 730 FOR_EACH_INTRINSIC_LITERALS(F) \
724 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ 731 FOR_EACH_INTRINSIC_LIVEEDIT(F) \
725 FOR_EACH_INTRINSIC_MATHS(F) \ 732 FOR_EACH_INTRINSIC_MATHS(F) \
726 FOR_EACH_INTRINSIC_NUMBERS(F) \ 733 FOR_EACH_INTRINSIC_NUMBERS(F) \
727 FOR_EACH_INTRINSIC_OBJECT(F) \ 734 FOR_EACH_INTRINSIC_OBJECT(F) \
728 FOR_EACH_INTRINSIC_OBSERVE(F) \ 735 FOR_EACH_INTRINSIC_OBSERVE(F) \
729 FOR_EACH_INTRINSIC_PROXY(F) \ 736 FOR_EACH_INTRINSIC_PROXY(F) \
730 FOR_EACH_INTRINSIC_REGEXP(F) \ 737 FOR_EACH_INTRINSIC_REGEXP(F) \
731 FOR_EACH_INTRINSIC_SCOPES(F) \ 738 FOR_EACH_INTRINSIC_SCOPES(F) \
739 FOR_EACH_INTRINSIC_SIMD(F) \
732 FOR_EACH_INTRINSIC_STRINGS(F) \ 740 FOR_EACH_INTRINSIC_STRINGS(F) \
733 FOR_EACH_INTRINSIC_SYMBOL(F) \ 741 FOR_EACH_INTRINSIC_SYMBOL(F) \
734 FOR_EACH_INTRINSIC_TEST(F) \ 742 FOR_EACH_INTRINSIC_TEST(F) \
735 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ 743 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \
736 FOR_EACH_INTRINSIC_URI(F) 744 FOR_EACH_INTRINSIC_URI(F)
737 745
738 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, 746 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors,
739 // either returning an object or a pair. 747 // either returning an object or a pair.
740 #define FOR_EACH_INTRINSIC(F) \ 748 #define FOR_EACH_INTRINSIC(F) \
741 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ 749 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 inline bool Runtime::AtomicIsLockFree(uint32_t size) { 946 inline bool Runtime::AtomicIsLockFree(uint32_t size) {
939 return size == 1 || size == 2 || size == 4; 947 return size == 1 || size == 2 || size == 4;
940 } 948 }
941 949
942 #endif 950 #endif
943 951
944 } // namespace internal 952 } // namespace internal
945 } // namespace v8 953 } // namespace v8
946 954
947 #endif // V8_RUNTIME_RUNTIME_H_ 955 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698