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

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

Issue 2254803002: [wasm] Throw a type error if an I64 is exported to JS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 F(DataViewGetFloat64, 3, 1) \ 913 F(DataViewGetFloat64, 3, 1) \
914 F(DataViewSetUint8, 4, 1) \ 914 F(DataViewSetUint8, 4, 1) \
915 F(DataViewSetInt8, 4, 1) \ 915 F(DataViewSetInt8, 4, 1) \
916 F(DataViewSetUint16, 4, 1) \ 916 F(DataViewSetUint16, 4, 1) \
917 F(DataViewSetInt16, 4, 1) \ 917 F(DataViewSetInt16, 4, 1) \
918 F(DataViewSetUint32, 4, 1) \ 918 F(DataViewSetUint32, 4, 1) \
919 F(DataViewSetInt32, 4, 1) \ 919 F(DataViewSetInt32, 4, 1) \
920 F(DataViewSetFloat32, 4, 1) \ 920 F(DataViewSetFloat32, 4, 1) \
921 F(DataViewSetFloat64, 4, 1) 921 F(DataViewSetFloat64, 4, 1)
922 922
923 #define FOR_EACH_INTRINSIC_WASM(F) F(WasmGrowMemory, 1, 1) 923 #define FOR_EACH_INTRINSIC_WASM(F) \
924 F(WasmGrowMemory, 1, 1) \
925 F(WasmThrowTypeError, 0, 1)
924 926
925 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ 927 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
926 F(LoadLookupSlotForCall, 1, 2) 928 F(LoadLookupSlotForCall, 1, 2)
927 929
928 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ 930 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \
929 F(ForInPrepare, 1, 3) 931 F(ForInPrepare, 1, 3)
930 932
931 // Most intrinsics are implemented in the runtime/ directory, but ICs are 933 // Most intrinsics are implemented in the runtime/ directory, but ICs are
932 // implemented in ic.cc for now. 934 // implemented in ic.cc for now.
933 #define FOR_EACH_INTRINSIC_IC(F) \ 935 #define FOR_EACH_INTRINSIC_IC(F) \
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 1136
1135 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1137 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1136 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1138 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1137 STATIC_ASSERT(LANGUAGE_END == 3); 1139 STATIC_ASSERT(LANGUAGE_END == 3);
1138 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1140 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1139 1141
1140 } // namespace internal 1142 } // namespace internal
1141 } // namespace v8 1143 } // namespace v8
1142 1144
1143 #endif // V8_RUNTIME_RUNTIME_H_ 1145 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« src/compiler/wasm-compiler.cc ('K') | « src/messages.h ('k') | src/runtime/runtime-wasm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698