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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 F(BreakIteratorBreakType, 1, 1) \ | 274 F(BreakIteratorBreakType, 1, 1) \ |
275 F(StringToLowerCaseI18N, 1, 1) \ | 275 F(StringToLowerCaseI18N, 1, 1) \ |
276 F(StringToUpperCaseI18N, 1, 1) \ | 276 F(StringToUpperCaseI18N, 1, 1) \ |
277 F(StringLocaleConvertCase, 3, 1) \ | 277 F(StringLocaleConvertCase, 3, 1) \ |
278 F(DateCacheVersion, 0, 1) | 278 F(DateCacheVersion, 0, 1) |
279 #else | 279 #else |
280 #define FOR_EACH_INTRINSIC_I18N(F) | 280 #define FOR_EACH_INTRINSIC_I18N(F) |
281 #endif | 281 #endif |
282 | 282 |
283 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ | 283 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ |
| 284 F(AllocateInNewSpace, 1, 1) \ |
| 285 F(AllocateInTargetSpace, 2, 1) \ |
| 286 F(AllocateSeqOneByteString, 1, 1) \ |
| 287 F(AllocateSeqTwoByteString, 1, 1) \ |
284 F(CheckIsBootstrapping, 0, 1) \ | 288 F(CheckIsBootstrapping, 0, 1) \ |
| 289 F(CreateListFromArrayLike, 1, 1) \ |
| 290 F(EnqueueMicrotask, 1, 1) \ |
| 291 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ |
| 292 F(ExportExperimentalFromRuntime, 1, 1) \ |
285 F(ExportFromRuntime, 1, 1) \ | 293 F(ExportFromRuntime, 1, 1) \ |
286 F(ExportExperimentalFromRuntime, 1, 1) \ | 294 F(IncrementUseCounter, 1, 1) \ |
287 F(InstallToContext, 1, 1) \ | 295 F(InstallToContext, 1, 1) \ |
| 296 F(Interrupt, 0, 1) \ |
| 297 F(IS_VAR, 1, 1) \ |
| 298 F(IsWasmObject, 1, 1) \ |
| 299 F(MessageGetScript, 1, 1) \ |
| 300 F(MessageGetStartPosition, 1, 1) \ |
| 301 F(NewReferenceError, 2, 1) \ |
| 302 F(NewSyntaxError, 2, 1) \ |
| 303 F(NewTypeError, 2, 1) \ |
| 304 F(OrdinaryHasInstance, 2, 1) \ |
| 305 F(PromiseRejectEvent, 3, 1) \ |
| 306 F(PromiseRevokeReject, 1, 1) \ |
| 307 F(PromoteScheduledException, 0, 1) \ |
| 308 F(ReThrow, 1, 1) \ |
| 309 F(RunMicrotasks, 0, 1) \ |
| 310 F(StackGuard, 0, 1) \ |
288 F(Throw, 1, 1) \ | 311 F(Throw, 1, 1) \ |
289 F(ReThrow, 1, 1) \ | |
290 F(UnwindAndFindExceptionHandler, 0, 1) \ | |
291 F(PromoteScheduledException, 0, 1) \ | |
292 F(ThrowReferenceError, 1, 1) \ | |
293 F(ThrowApplyNonFunction, 1, 1) \ | 312 F(ThrowApplyNonFunction, 1, 1) \ |
294 F(NewTypeError, 2, 1) \ | |
295 F(NewSyntaxError, 2, 1) \ | |
296 F(NewReferenceError, 2, 1) \ | |
297 F(ThrowCannotConvertToPrimitive, 0, 1) \ | 313 F(ThrowCannotConvertToPrimitive, 0, 1) \ |
| 314 F(ThrowCalledNonCallable, 1, 1) \ |
| 315 F(ThrowCalledOnNullOrUndefined, 1, 1) \ |
| 316 F(ThrowConstructedNonConstructable, 1, 1) \ |
| 317 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ |
| 318 F(ThrowGeneratorRunning, 0, 1) \ |
298 F(ThrowIllegalInvocation, 0, 1) \ | 319 F(ThrowIllegalInvocation, 0, 1) \ |
299 F(ThrowIncompatibleMethodReceiver, 2, 1) \ | 320 F(ThrowIncompatibleMethodReceiver, 2, 1) \ |
300 F(ThrowInvalidStringLength, 0, 1) \ | 321 F(ThrowInvalidStringLength, 0, 1) \ |
301 F(ThrowIteratorResultNotAnObject, 1, 1) \ | 322 F(ThrowIteratorResultNotAnObject, 1, 1) \ |
302 F(ThrowNotGeneric, 1, 1) \ | 323 F(ThrowNotGeneric, 1, 1) \ |
303 F(ThrowGeneratorRunning, 0, 1) \ | 324 F(ThrowReferenceError, 1, 1) \ |
304 F(ThrowStackOverflow, 0, 1) \ | 325 F(ThrowStackOverflow, 0, 1) \ |
305 F(ThrowWasmError, 2, 1) \ | 326 F(ThrowWasmError, 2, 1) \ |
306 F(PromiseRejectEvent, 3, 1) \ | 327 F(ThrowUndefinedOrNullToObject, 1, 1) \ |
307 F(PromiseRevokeReject, 1, 1) \ | 328 F(Typeof, 1, 1) \ |
308 F(StackGuard, 0, 1) \ | 329 F(UnwindAndFindExceptionHandler, 0, 1) |
309 F(Interrupt, 0, 1) \ | |
310 F(AllocateInNewSpace, 1, 1) \ | |
311 F(AllocateInTargetSpace, 2, 1) \ | |
312 F(AllocateSeqOneByteString, 1, 1) \ | |
313 F(AllocateSeqTwoByteString, 1, 1) \ | |
314 F(MessageGetStartPosition, 1, 1) \ | |
315 F(MessageGetScript, 1, 1) \ | |
316 F(IS_VAR, 1, 1) \ | |
317 F(ThrowConstructedNonConstructable, 1, 1) \ | |
318 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ | |
319 F(ThrowCalledNonCallable, 1, 1) \ | |
320 F(ThrowCalledOnNullOrUndefined, 1, 1) \ | |
321 F(CreateListFromArrayLike, 1, 1) \ | |
322 F(IncrementUseCounter, 1, 1) \ | |
323 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ | |
324 F(EnqueueMicrotask, 1, 1) \ | |
325 F(RunMicrotasks, 0, 1) \ | |
326 F(OrdinaryHasInstance, 2, 1) \ | |
327 F(IsWasmObject, 1, 1) \ | |
328 F(Typeof, 1, 1) | |
329 | 330 |
330 #define FOR_EACH_INTRINSIC_LITERALS(F) \ | 331 #define FOR_EACH_INTRINSIC_LITERALS(F) \ |
331 F(CreateRegExpLiteral, 4, 1) \ | 332 F(CreateRegExpLiteral, 4, 1) \ |
332 F(CreateObjectLiteral, 4, 1) \ | 333 F(CreateObjectLiteral, 4, 1) \ |
333 F(CreateArrayLiteral, 4, 1) \ | 334 F(CreateArrayLiteral, 4, 1) \ |
334 F(CreateArrayLiteralStubBailout, 3, 1) | 335 F(CreateArrayLiteralStubBailout, 3, 1) |
335 | 336 |
336 | 337 |
337 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 338 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ |
338 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ | 339 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 | 1129 |
1129 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1130 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1130 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1131 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1131 STATIC_ASSERT(LANGUAGE_END == 3); | 1132 STATIC_ASSERT(LANGUAGE_END == 3); |
1132 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1133 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1133 | 1134 |
1134 } // namespace internal | 1135 } // namespace internal |
1135 } // namespace v8 | 1136 } // namespace v8 |
1136 | 1137 |
1137 #endif // V8_RUNTIME_RUNTIME_H_ | 1138 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |