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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ | 287 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ |
288 F(AllocateInNewSpace, 1, 1) \ | 288 F(AllocateInNewSpace, 1, 1) \ |
289 F(AllocateInTargetSpace, 2, 1) \ | 289 F(AllocateInTargetSpace, 2, 1) \ |
290 F(AllocateSeqOneByteString, 1, 1) \ | 290 F(AllocateSeqOneByteString, 1, 1) \ |
291 F(AllocateSeqTwoByteString, 1, 1) \ | 291 F(AllocateSeqTwoByteString, 1, 1) \ |
292 F(CheckIsBootstrapping, 0, 1) \ | 292 F(CheckIsBootstrapping, 0, 1) \ |
293 F(CreateListFromArrayLike, 1, 1) \ | 293 F(CreateListFromArrayLike, 1, 1) \ |
294 F(CreateResolvingFunctions, 1, 1) \ | 294 F(CreateResolvingFunctions, 1, 1) \ |
295 F(EnqueueMicrotask, 1, 1) \ | 295 F(EnqueueMicrotask, 1, 1) \ |
296 F(EnqueuePromiseReactionJob, 4, 1) \ | 296 F(EnqueuePromiseReactionJob, 5, 1) \ |
297 F(EnqueuePromiseResolveThenableJob, 3, 1) \ | 297 F(EnqueuePromiseResolveThenableJob, 3, 1) \ |
298 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ | 298 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ |
299 F(ExportExperimentalFromRuntime, 1, 1) \ | 299 F(ExportExperimentalFromRuntime, 1, 1) \ |
300 F(ExportFromRuntime, 1, 1) \ | 300 F(ExportFromRuntime, 1, 1) \ |
301 F(IncrementUseCounter, 1, 1) \ | 301 F(IncrementUseCounter, 1, 1) \ |
302 F(InstallToContext, 1, 1) \ | 302 F(InstallToContext, 1, 1) \ |
303 F(Interrupt, 0, 1) \ | 303 F(Interrupt, 0, 1) \ |
304 F(IS_VAR, 1, 1) \ | 304 F(IS_VAR, 1, 1) \ |
305 F(NewReferenceError, 2, 1) \ | 305 F(NewReferenceError, 2, 1) \ |
306 F(NewSyntaxError, 2, 1) \ | 306 F(NewSyntaxError, 2, 1) \ |
307 F(NewTypeError, 2, 1) \ | 307 F(NewTypeError, 2, 1) \ |
308 F(OrdinaryHasInstance, 2, 1) \ | 308 F(OrdinaryHasInstance, 2, 1) \ |
309 F(PromiseDeferred, 1, 1) \ | 309 F(PromiseDeferred, 1, 1) \ |
310 F(PromiseReject, 3, 1) \ | 310 F(PromiseReject, 3, 1) \ |
311 F(PromiseFulfill, 3, 1) \ | 311 F(PromiseFulfill, 3, 1) \ |
| 312 F(PromiseHookInit, 2, 1) \ |
| 313 F(PromiseHookResolve, 1, 1) \ |
| 314 F(PromiseHookBefore, 1, 1) \ |
| 315 F(PromiseHookAfter, 1, 1) \ |
312 F(PromiseMarkAsHandled, 1, 1) \ | 316 F(PromiseMarkAsHandled, 1, 1) \ |
313 F(PromiseRejectEventFromStack, 2, 1) \ | 317 F(PromiseRejectEventFromStack, 2, 1) \ |
314 F(PromiseRejectReactions, 1, 1) \ | 318 F(PromiseRejectReactions, 1, 1) \ |
315 F(PromiseRevokeReject, 1, 1) \ | 319 F(PromiseRevokeReject, 1, 1) \ |
316 F(PromiseResult, 1, 1) \ | 320 F(PromiseResult, 1, 1) \ |
317 F(PromiseStatus, 1, 1) \ | 321 F(PromiseStatus, 1, 1) \ |
318 F(PromoteScheduledException, 0, 1) \ | 322 F(PromoteScheduledException, 0, 1) \ |
319 F(ReThrow, 1, 1) \ | 323 F(ReThrow, 1, 1) \ |
320 F(RunMicrotasks, 0, 1) \ | 324 F(RunMicrotasks, 0, 1) \ |
321 F(StackGuard, 0, 1) \ | 325 F(StackGuard, 0, 1) \ |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 | 1149 |
1146 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1150 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1147 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1151 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1148 STATIC_ASSERT(LANGUAGE_END == 2); | 1152 STATIC_ASSERT(LANGUAGE_END == 2); |
1149 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; | 1153 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; |
1150 | 1154 |
1151 } // namespace internal | 1155 } // namespace internal |
1152 } // namespace v8 | 1156 } // namespace v8 |
1153 | 1157 |
1154 #endif // V8_RUNTIME_RUNTIME_H_ | 1158 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |