OLD | NEW |
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 #define FOR_EACH_INTRINSIC_I18N(F) | 282 #define FOR_EACH_INTRINSIC_I18N(F) |
283 #endif | 283 #endif |
284 | 284 |
285 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ | 285 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ |
286 F(AllocateInNewSpace, 1, 1) \ | 286 F(AllocateInNewSpace, 1, 1) \ |
287 F(AllocateInTargetSpace, 2, 1) \ | 287 F(AllocateInTargetSpace, 2, 1) \ |
288 F(AllocateSeqOneByteString, 1, 1) \ | 288 F(AllocateSeqOneByteString, 1, 1) \ |
289 F(AllocateSeqTwoByteString, 1, 1) \ | 289 F(AllocateSeqTwoByteString, 1, 1) \ |
290 F(CheckIsBootstrapping, 0, 1) \ | 290 F(CheckIsBootstrapping, 0, 1) \ |
291 F(CreateListFromArrayLike, 1, 1) \ | 291 F(CreateListFromArrayLike, 1, 1) \ |
292 F(EnqueueMicrotask, 1, 1) \ | |
293 F(EnqueuePromiseReactionJob, 1, 1) \ | |
294 F(EnqueuePromiseResolveThenableJob, 1, 1) \ | |
295 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ | 292 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ |
296 F(ExportExperimentalFromRuntime, 1, 1) \ | 293 F(ExportExperimentalFromRuntime, 1, 1) \ |
297 F(ExportFromRuntime, 1, 1) \ | 294 F(ExportFromRuntime, 1, 1) \ |
298 F(IncrementUseCounter, 1, 1) \ | 295 F(IncrementUseCounter, 1, 1) \ |
299 F(InstallToContext, 1, 1) \ | 296 F(InstallToContext, 1, 1) \ |
300 F(Interrupt, 0, 1) \ | 297 F(Interrupt, 0, 1) \ |
301 F(IS_VAR, 1, 1) \ | 298 F(IS_VAR, 1, 1) \ |
302 F(NewReferenceError, 2, 1) \ | 299 F(NewReferenceError, 2, 1) \ |
303 F(NewSyntaxError, 2, 1) \ | 300 F(NewSyntaxError, 2, 1) \ |
304 F(NewTypeError, 2, 1) \ | 301 F(NewTypeError, 2, 1) \ |
305 F(OrdinaryHasInstance, 2, 1) \ | 302 F(OrdinaryHasInstance, 2, 1) \ |
306 F(ReportPromiseReject, 2, 1) \ | |
307 F(PromiseHookInit, 2, 1) \ | |
308 F(PromiseHookResolve, 1, 1) \ | |
309 F(PromiseHookBefore, 1, 1) \ | |
310 F(PromiseHookAfter, 1, 1) \ | |
311 F(PromiseMarkAsHandled, 1, 1) \ | |
312 F(PromiseRejectEventFromStack, 2, 1) \ | |
313 F(PromiseRevokeReject, 1, 1) \ | |
314 F(PromiseResult, 1, 1) \ | |
315 F(PromiseStatus, 1, 1) \ | |
316 F(PromoteScheduledException, 0, 1) \ | 303 F(PromoteScheduledException, 0, 1) \ |
317 F(ReThrow, 1, 1) \ | 304 F(ReThrow, 1, 1) \ |
318 F(RunMicrotasks, 0, 1) \ | 305 F(RunMicrotasks, 0, 1) \ |
319 F(StackGuard, 0, 1) \ | 306 F(StackGuard, 0, 1) \ |
320 F(Throw, 1, 1) \ | 307 F(Throw, 1, 1) \ |
321 F(ThrowApplyNonFunction, 1, 1) \ | 308 F(ThrowApplyNonFunction, 1, 1) \ |
322 F(ThrowCannotConvertToPrimitive, 0, 1) \ | 309 F(ThrowCannotConvertToPrimitive, 0, 1) \ |
323 F(ThrowCalledNonCallable, 1, 1) \ | 310 F(ThrowCalledNonCallable, 1, 1) \ |
324 F(ThrowCalledOnNullOrUndefined, 1, 1) \ | 311 F(ThrowCalledOnNullOrUndefined, 1, 1) \ |
325 F(ThrowConstructedNonConstructable, 1, 1) \ | 312 F(ThrowConstructedNonConstructable, 1, 1) \ |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 F(Equal, 2, 1) \ | 437 F(Equal, 2, 1) \ |
451 F(NotEqual, 2, 1) \ | 438 F(NotEqual, 2, 1) \ |
452 F(StrictEqual, 2, 1) \ | 439 F(StrictEqual, 2, 1) \ |
453 F(StrictNotEqual, 2, 1) \ | 440 F(StrictNotEqual, 2, 1) \ |
454 F(LessThan, 2, 1) \ | 441 F(LessThan, 2, 1) \ |
455 F(GreaterThan, 2, 1) \ | 442 F(GreaterThan, 2, 1) \ |
456 F(LessThanOrEqual, 2, 1) \ | 443 F(LessThanOrEqual, 2, 1) \ |
457 F(GreaterThanOrEqual, 2, 1) \ | 444 F(GreaterThanOrEqual, 2, 1) \ |
458 F(InstanceOf, 2, 1) | 445 F(InstanceOf, 2, 1) |
459 | 446 |
| 447 #define FOR_EACH_INTRINSIC_PROMISE(F) \ |
| 448 F(EnqueueMicrotask, 1, 1) \ |
| 449 F(EnqueuePromiseReactionJob, 1, 1) \ |
| 450 F(EnqueuePromiseResolveThenableJob, 1, 1) \ |
| 451 F(PromiseHookInit, 2, 1) \ |
| 452 F(PromiseHookResolve, 1, 1) \ |
| 453 F(PromiseHookBefore, 1, 1) \ |
| 454 F(PromiseHookAfter, 1, 1) \ |
| 455 F(PromiseMarkAsHandled, 1, 1) \ |
| 456 F(PromiseRejectEventFromStack, 2, 1) \ |
| 457 F(PromiseRevokeReject, 1, 1) \ |
| 458 F(PromiseResult, 1, 1) \ |
| 459 F(PromiseStatus, 1, 1) \ |
| 460 F(ReportPromiseReject, 2, 1) |
| 461 |
460 #define FOR_EACH_INTRINSIC_PROXY(F) \ | 462 #define FOR_EACH_INTRINSIC_PROXY(F) \ |
461 F(IsJSProxy, 1, 1) \ | 463 F(IsJSProxy, 1, 1) \ |
462 F(JSProxyCall, -1 /* >= 2 */, 1) \ | 464 F(JSProxyCall, -1 /* >= 2 */, 1) \ |
463 F(JSProxyConstruct, -1 /* >= 3 */, 1) \ | 465 F(JSProxyConstruct, -1 /* >= 3 */, 1) \ |
464 F(JSProxyGetTarget, 1, 1) \ | 466 F(JSProxyGetTarget, 1, 1) \ |
465 F(JSProxyGetHandler, 1, 1) \ | 467 F(JSProxyGetHandler, 1, 1) \ |
466 F(JSProxyRevoke, 1, 1) | 468 F(JSProxyRevoke, 1, 1) |
467 | 469 |
468 #define FOR_EACH_INTRINSIC_REGEXP(F) \ | 470 #define FOR_EACH_INTRINSIC_REGEXP(F) \ |
469 F(IsRegExp, 1, 1) \ | 471 F(IsRegExp, 1, 1) \ |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 FOR_EACH_INTRINSIC_GENERATOR(F) \ | 995 FOR_EACH_INTRINSIC_GENERATOR(F) \ |
994 FOR_EACH_INTRINSIC_I18N(F) \ | 996 FOR_EACH_INTRINSIC_I18N(F) \ |
995 FOR_EACH_INTRINSIC_INTERNAL(F) \ | 997 FOR_EACH_INTRINSIC_INTERNAL(F) \ |
996 FOR_EACH_INTRINSIC_LITERALS(F) \ | 998 FOR_EACH_INTRINSIC_LITERALS(F) \ |
997 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 999 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ |
998 FOR_EACH_INTRINSIC_MATHS(F) \ | 1000 FOR_EACH_INTRINSIC_MATHS(F) \ |
999 FOR_EACH_INTRINSIC_MODULE(F) \ | 1001 FOR_EACH_INTRINSIC_MODULE(F) \ |
1000 FOR_EACH_INTRINSIC_NUMBERS(F) \ | 1002 FOR_EACH_INTRINSIC_NUMBERS(F) \ |
1001 FOR_EACH_INTRINSIC_OBJECT(F) \ | 1003 FOR_EACH_INTRINSIC_OBJECT(F) \ |
1002 FOR_EACH_INTRINSIC_OPERATORS(F) \ | 1004 FOR_EACH_INTRINSIC_OPERATORS(F) \ |
| 1005 FOR_EACH_INTRINSIC_PROMISE(F) \ |
1003 FOR_EACH_INTRINSIC_PROXY(F) \ | 1006 FOR_EACH_INTRINSIC_PROXY(F) \ |
1004 FOR_EACH_INTRINSIC_REGEXP(F) \ | 1007 FOR_EACH_INTRINSIC_REGEXP(F) \ |
1005 FOR_EACH_INTRINSIC_SCOPES(F) \ | 1008 FOR_EACH_INTRINSIC_SCOPES(F) \ |
1006 FOR_EACH_INTRINSIC_SIMD(F) \ | 1009 FOR_EACH_INTRINSIC_SIMD(F) \ |
1007 FOR_EACH_INTRINSIC_STRINGS(F) \ | 1010 FOR_EACH_INTRINSIC_STRINGS(F) \ |
1008 FOR_EACH_INTRINSIC_SYMBOL(F) \ | 1011 FOR_EACH_INTRINSIC_SYMBOL(F) \ |
1009 FOR_EACH_INTRINSIC_TEST(F) \ | 1012 FOR_EACH_INTRINSIC_TEST(F) \ |
1010 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ | 1013 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ |
1011 FOR_EACH_INTRINSIC_WASM(F) | 1014 FOR_EACH_INTRINSIC_WASM(F) |
1012 | 1015 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 kMaybeDeopted = 1 << 3, | 1164 kMaybeDeopted = 1 << 3, |
1162 kOptimized = 1 << 4, | 1165 kOptimized = 1 << 4, |
1163 kTurboFanned = 1 << 5, | 1166 kTurboFanned = 1 << 5, |
1164 kInterpreted = 1 << 6, | 1167 kInterpreted = 1 << 6, |
1165 }; | 1168 }; |
1166 | 1169 |
1167 } // namespace internal | 1170 } // namespace internal |
1168 } // namespace v8 | 1171 } // namespace v8 |
1169 | 1172 |
1170 #endif // V8_RUNTIME_RUNTIME_H_ | 1173 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |