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

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

Issue 2051043002: Implement Wasm GrowMemory opcode as a wasm runtime call (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test Created 4 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/base/platform/time.h" 9 #include "src/base/platform/time.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 F(DataViewGetFloat64, 3, 1) \ 925 F(DataViewGetFloat64, 3, 1) \
926 F(DataViewSetUint8, 4, 1) \ 926 F(DataViewSetUint8, 4, 1) \
927 F(DataViewSetInt8, 4, 1) \ 927 F(DataViewSetInt8, 4, 1) \
928 F(DataViewSetUint16, 4, 1) \ 928 F(DataViewSetUint16, 4, 1) \
929 F(DataViewSetInt16, 4, 1) \ 929 F(DataViewSetInt16, 4, 1) \
930 F(DataViewSetUint32, 4, 1) \ 930 F(DataViewSetUint32, 4, 1) \
931 F(DataViewSetInt32, 4, 1) \ 931 F(DataViewSetInt32, 4, 1) \
932 F(DataViewSetFloat32, 4, 1) \ 932 F(DataViewSetFloat32, 4, 1) \
933 F(DataViewSetFloat64, 4, 1) 933 F(DataViewSetFloat64, 4, 1)
934 934
935 #define FOR_EACH_INTRINSIC_WASM(F) F(WasmGrowMemory, 1, 1)
935 936
936 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ 937 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
937 F(LoadLookupSlotForCall, 1, 2) 938 F(LoadLookupSlotForCall, 1, 2)
938 939
939 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ 940 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \
940 F(ForInPrepare, 1, 3) 941 F(ForInPrepare, 1, 3)
941 942
942 // Most intrinsics are implemented in the runtime/ directory, but ICs are 943 // Most intrinsics are implemented in the runtime/ directory, but ICs are
943 // implemented in ic.cc for now. 944 // implemented in ic.cc for now.
944 #define FOR_EACH_INTRINSIC_IC(F) \ 945 #define FOR_EACH_INTRINSIC_IC(F) \
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 FOR_EACH_INTRINSIC_NUMBERS(F) \ 989 FOR_EACH_INTRINSIC_NUMBERS(F) \
989 FOR_EACH_INTRINSIC_OBJECT(F) \ 990 FOR_EACH_INTRINSIC_OBJECT(F) \
990 FOR_EACH_INTRINSIC_OPERATORS(F) \ 991 FOR_EACH_INTRINSIC_OPERATORS(F) \
991 FOR_EACH_INTRINSIC_PROXY(F) \ 992 FOR_EACH_INTRINSIC_PROXY(F) \
992 FOR_EACH_INTRINSIC_REGEXP(F) \ 993 FOR_EACH_INTRINSIC_REGEXP(F) \
993 FOR_EACH_INTRINSIC_SCOPES(F) \ 994 FOR_EACH_INTRINSIC_SCOPES(F) \
994 FOR_EACH_INTRINSIC_SIMD(F) \ 995 FOR_EACH_INTRINSIC_SIMD(F) \
995 FOR_EACH_INTRINSIC_STRINGS(F) \ 996 FOR_EACH_INTRINSIC_STRINGS(F) \
996 FOR_EACH_INTRINSIC_SYMBOL(F) \ 997 FOR_EACH_INTRINSIC_SYMBOL(F) \
997 FOR_EACH_INTRINSIC_TEST(F) \ 998 FOR_EACH_INTRINSIC_TEST(F) \
998 FOR_EACH_INTRINSIC_TYPEDARRAY(F) 999 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \
1000 FOR_EACH_INTRINSIC_WASM(F)
999 1001
1000 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, 1002 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors,
1001 // either returning an object or a pair. 1003 // either returning an object or a pair.
1002 #define FOR_EACH_INTRINSIC(F) \ 1004 #define FOR_EACH_INTRINSIC(F) \
1003 FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ 1005 FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \
1004 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ 1006 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
1005 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) 1007 FOR_EACH_INTRINSIC_RETURN_OBJECT(F)
1006 1008
1007 1009
1008 #define F(name, nargs, ressize) \ 1010 #define F(name, nargs, ressize) \
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 1146
1145 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1147 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1146 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1148 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1147 STATIC_ASSERT(LANGUAGE_END == 3); 1149 STATIC_ASSERT(LANGUAGE_END == 3);
1148 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1150 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1149 1151
1150 } // namespace internal 1152 } // namespace internal
1151 } // namespace v8 1153 } // namespace v8
1152 1154
1153 #endif // V8_RUNTIME_RUNTIME_H_ 1155 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime-wasm.cc » ('j') | src/wasm/wasm-module.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698