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

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

Issue 2541633003: [wasm] Move wasm runtime functions to runtime-wasm.cc (Closed)
Patch Set: Created 4 years 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 | « no previous file | src/runtime/runtime-internal.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 <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 F(EnqueueMicrotask, 1, 1) \ 291 F(EnqueueMicrotask, 1, 1) \
292 F(EnqueuePromiseReactionJob, 4, 1) \ 292 F(EnqueuePromiseReactionJob, 4, 1) \
293 F(EnqueuePromiseResolveThenableJob, 3, 1) \ 293 F(EnqueuePromiseResolveThenableJob, 3, 1) \
294 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ 294 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \
295 F(ExportExperimentalFromRuntime, 1, 1) \ 295 F(ExportExperimentalFromRuntime, 1, 1) \
296 F(ExportFromRuntime, 1, 1) \ 296 F(ExportFromRuntime, 1, 1) \
297 F(IncrementUseCounter, 1, 1) \ 297 F(IncrementUseCounter, 1, 1) \
298 F(InstallToContext, 1, 1) \ 298 F(InstallToContext, 1, 1) \
299 F(Interrupt, 0, 1) \ 299 F(Interrupt, 0, 1) \
300 F(IS_VAR, 1, 1) \ 300 F(IS_VAR, 1, 1) \
301 F(IsWasmInstance, 1, 1) \
302 F(NewReferenceError, 2, 1) \ 301 F(NewReferenceError, 2, 1) \
303 F(NewSyntaxError, 2, 1) \ 302 F(NewSyntaxError, 2, 1) \
304 F(NewTypeError, 2, 1) \ 303 F(NewTypeError, 2, 1) \
305 F(OrdinaryHasInstance, 2, 1) \ 304 F(OrdinaryHasInstance, 2, 1) \
306 F(PromiseReject, 3, 1) \ 305 F(PromiseReject, 3, 1) \
307 F(PromiseFulfill, 4, 1) \ 306 F(PromiseFulfill, 4, 1) \
308 F(PromiseRejectEventFromStack, 2, 1) \ 307 F(PromiseRejectEventFromStack, 2, 1) \
309 F(PromiseRevokeReject, 1, 1) \ 308 F(PromiseRevokeReject, 1, 1) \
310 F(PromoteScheduledException, 0, 1) \ 309 F(PromoteScheduledException, 0, 1) \
311 F(ReThrow, 1, 1) \ 310 F(ReThrow, 1, 1) \
312 F(RunMicrotasks, 0, 1) \ 311 F(RunMicrotasks, 0, 1) \
313 F(StackGuard, 0, 1) \ 312 F(StackGuard, 0, 1) \
314 F(Throw, 1, 1) \ 313 F(Throw, 1, 1) \
315 F(ThrowApplyNonFunction, 1, 1) \ 314 F(ThrowApplyNonFunction, 1, 1) \
316 F(ThrowCannotConvertToPrimitive, 0, 1) \ 315 F(ThrowCannotConvertToPrimitive, 0, 1) \
317 F(ThrowCalledNonCallable, 1, 1) \ 316 F(ThrowCalledNonCallable, 1, 1) \
318 F(ThrowCalledOnNullOrUndefined, 1, 1) \ 317 F(ThrowCalledOnNullOrUndefined, 1, 1) \
319 F(ThrowConstructedNonConstructable, 1, 1) \ 318 F(ThrowConstructedNonConstructable, 1, 1) \
320 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ 319 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \
321 F(ThrowGeneratorRunning, 0, 1) \ 320 F(ThrowGeneratorRunning, 0, 1) \
322 F(ThrowIllegalInvocation, 0, 1) \ 321 F(ThrowIllegalInvocation, 0, 1) \
323 F(ThrowIncompatibleMethodReceiver, 2, 1) \ 322 F(ThrowIncompatibleMethodReceiver, 2, 1) \
324 F(ThrowInvalidStringLength, 0, 1) \ 323 F(ThrowInvalidStringLength, 0, 1) \
325 F(ThrowIteratorResultNotAnObject, 1, 1) \ 324 F(ThrowIteratorResultNotAnObject, 1, 1) \
326 F(ThrowNotGeneric, 1, 1) \ 325 F(ThrowNotGeneric, 1, 1) \
327 F(ThrowReferenceError, 1, 1) \ 326 F(ThrowReferenceError, 1, 1) \
328 F(ThrowStackOverflow, 0, 1) \ 327 F(ThrowStackOverflow, 0, 1) \
329 F(ThrowTypeError, -1 /* >= 1 */, 1) \ 328 F(ThrowTypeError, -1 /* >= 1 */, 1) \
330 F(ThrowWasmError, 2, 1) \
331 F(ThrowUndefinedOrNullToObject, 1, 1) \ 329 F(ThrowUndefinedOrNullToObject, 1, 1) \
332 F(Typeof, 1, 1) \ 330 F(Typeof, 1, 1) \
333 F(UnwindAndFindExceptionHandler, 0, 1) 331 F(UnwindAndFindExceptionHandler, 0, 1)
334 332
335 #define FOR_EACH_INTRINSIC_LITERALS(F) \ 333 #define FOR_EACH_INTRINSIC_LITERALS(F) \
336 F(CreateRegExpLiteral, 4, 1) \ 334 F(CreateRegExpLiteral, 4, 1) \
337 F(CreateObjectLiteral, 4, 1) \ 335 F(CreateObjectLiteral, 4, 1) \
338 F(CreateArrayLiteral, 4, 1) \ 336 F(CreateArrayLiteral, 4, 1) \
339 F(CreateArrayLiteralStubBailout, 3, 1) 337 F(CreateArrayLiteralStubBailout, 3, 1)
340 338
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 F(TypedArraySetFastCases, 3, 1) \ 911 F(TypedArraySetFastCases, 3, 1) \
914 F(TypedArrayMaxSizeInHeap, 0, 1) \ 912 F(TypedArrayMaxSizeInHeap, 0, 1) \
915 F(IsTypedArray, 1, 1) \ 913 F(IsTypedArray, 1, 1) \
916 F(IsSharedTypedArray, 1, 1) \ 914 F(IsSharedTypedArray, 1, 1) \
917 F(IsSharedIntegerTypedArray, 1, 1) \ 915 F(IsSharedIntegerTypedArray, 1, 1) \
918 F(IsSharedInteger32TypedArray, 1, 1) 916 F(IsSharedInteger32TypedArray, 1, 1)
919 917
920 #define FOR_EACH_INTRINSIC_WASM(F) \ 918 #define FOR_EACH_INTRINSIC_WASM(F) \
921 F(WasmGrowMemory, 1, 1) \ 919 F(WasmGrowMemory, 1, 1) \
922 F(WasmMemorySize, 0, 1) \ 920 F(WasmMemorySize, 0, 1) \
921 F(ThrowWasmError, 2, 1) \
923 F(WasmThrowTypeError, 0, 1) \ 922 F(WasmThrowTypeError, 0, 1) \
924 F(WasmThrow, 2, 1) \ 923 F(WasmThrow, 2, 1) \
925 F(WasmGetCaughtExceptionValue, 1, 1) 924 F(WasmGetCaughtExceptionValue, 1, 1)
926 925
927 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ 926 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
928 F(LoadLookupSlotForCall, 1, 2) 927 F(LoadLookupSlotForCall, 1, 2)
929 928
930 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ 929 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \
931 F(ForInPrepare, 1, 3) 930 F(ForInPrepare, 1, 3)
932 931
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 1126
1128 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1127 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1129 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1128 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1130 STATIC_ASSERT(LANGUAGE_END == 2); 1129 STATIC_ASSERT(LANGUAGE_END == 2);
1131 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; 1130 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {};
1132 1131
1133 } // namespace internal 1132 } // namespace internal
1134 } // namespace v8 1133 } // namespace v8
1135 1134
1136 #endif // V8_RUNTIME_RUNTIME_H_ 1135 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « no previous file | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698