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

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

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: Created 3 years, 11 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 F(FunctionToString, 1, 1) 241 F(FunctionToString, 1, 1)
242 242
243 #define FOR_EACH_INTRINSIC_GENERATOR(F) \ 243 #define FOR_EACH_INTRINSIC_GENERATOR(F) \
244 F(CreateJSGeneratorObject, 2, 1) \ 244 F(CreateJSGeneratorObject, 2, 1) \
245 F(GeneratorClose, 1, 1) \ 245 F(GeneratorClose, 1, 1) \
246 F(GeneratorGetFunction, 1, 1) \ 246 F(GeneratorGetFunction, 1, 1) \
247 F(GeneratorGetReceiver, 1, 1) \ 247 F(GeneratorGetReceiver, 1, 1) \
248 F(GeneratorGetInputOrDebugPos, 1, 1) \ 248 F(GeneratorGetInputOrDebugPos, 1, 1) \
249 F(GeneratorGetContinuation, 1, 1) \ 249 F(GeneratorGetContinuation, 1, 1) \
250 F(GeneratorGetSourcePosition, 1, 1) \ 250 F(GeneratorGetSourcePosition, 1, 1) \
251 F(GeneratorGetResumeMode, 1, 1) 251 F(GeneratorGetResumeMode, 1, 1) \
252 F(AsyncGeneratorResolve, 3, 1)
252 253
253 #ifdef V8_I18N_SUPPORT 254 #ifdef V8_I18N_SUPPORT
254 #define FOR_EACH_INTRINSIC_I18N(F) \ 255 #define FOR_EACH_INTRINSIC_I18N(F) \
255 F(CanonicalizeLanguageTag, 1, 1) \ 256 F(CanonicalizeLanguageTag, 1, 1) \
256 F(AvailableLocalesOf, 1, 1) \ 257 F(AvailableLocalesOf, 1, 1) \
257 F(GetDefaultICULocale, 0, 1) \ 258 F(GetDefaultICULocale, 0, 1) \
258 F(GetLanguageTagVariants, 1, 1) \ 259 F(GetLanguageTagVariants, 1, 1) \
259 F(IsInitializedIntlObject, 1, 1) \ 260 F(IsInitializedIntlObject, 1, 1) \
260 F(IsInitializedIntlObjectOfType, 2, 1) \ 261 F(IsInitializedIntlObjectOfType, 2, 1) \
261 F(MarkAsInitializedIntlObjectOfType, 3, 1) \ 262 F(MarkAsInitializedIntlObjectOfType, 3, 1) \
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 F(ThrowCalledOnNullOrUndefined, 1, 1) \ 326 F(ThrowCalledOnNullOrUndefined, 1, 1) \
326 F(ThrowConstructedNonConstructable, 1, 1) \ 327 F(ThrowConstructedNonConstructable, 1, 1) \
327 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ 328 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \
328 F(ThrowGeneratorRunning, 0, 1) \ 329 F(ThrowGeneratorRunning, 0, 1) \
329 F(ThrowIllegalInvocation, 0, 1) \ 330 F(ThrowIllegalInvocation, 0, 1) \
330 F(ThrowIncompatibleMethodReceiver, 2, 1) \ 331 F(ThrowIncompatibleMethodReceiver, 2, 1) \
331 F(ThrowInvalidHint, 1, 1) \ 332 F(ThrowInvalidHint, 1, 1) \
332 F(ThrowInvalidStringLength, 0, 1) \ 333 F(ThrowInvalidStringLength, 0, 1) \
333 F(ThrowIteratorResultNotAnObject, 1, 1) \ 334 F(ThrowIteratorResultNotAnObject, 1, 1) \
334 F(ThrowSymbolIteratorInvalid, 0, 1) \ 335 F(ThrowSymbolIteratorInvalid, 0, 1) \
336 F(ThrowSymbolAsyncIteratorInvalid, 0, 1) \
335 F(ThrowNotGeneric, 1, 1) \ 337 F(ThrowNotGeneric, 1, 1) \
336 F(ThrowReferenceError, 1, 1) \ 338 F(ThrowReferenceError, 1, 1) \
337 F(ThrowStackOverflow, 0, 1) \ 339 F(ThrowStackOverflow, 0, 1) \
338 F(ThrowTypeError, -1 /* >= 1 */, 1) \ 340 F(ThrowTypeError, -1 /* >= 1 */, 1) \
339 F(ThrowUndefinedOrNullToObject, 1, 1) \ 341 F(ThrowUndefinedOrNullToObject, 1, 1) \
340 F(Typeof, 1, 1) \ 342 F(Typeof, 1, 1) \
341 F(UnwindAndFindExceptionHandler, 0, 1) 343 F(UnwindAndFindExceptionHandler, 0, 1) \
344 F(CreateAsyncFromSyncIterator, 1, 1)
342 345
343 #define FOR_EACH_INTRINSIC_LITERALS(F) \ 346 #define FOR_EACH_INTRINSIC_LITERALS(F) \
344 F(CreateRegExpLiteral, 4, 1) \ 347 F(CreateRegExpLiteral, 4, 1) \
345 F(CreateObjectLiteral, 4, 1) \ 348 F(CreateObjectLiteral, 4, 1) \
346 F(CreateArrayLiteral, 4, 1) \ 349 F(CreateArrayLiteral, 4, 1) \
347 F(CreateArrayLiteralStubBailout, 3, 1) 350 F(CreateArrayLiteralStubBailout, 3, 1)
348 351
349 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ 352 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \
350 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ 353 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \
351 F(LiveEditGatherCompileInfo, 2, 1) \ 354 F(LiveEditGatherCompileInfo, 2, 1) \
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 F(GetOwnPropertyKeys, 2, 1) \ 403 F(GetOwnPropertyKeys, 2, 1) \
401 F(GetInterceptorInfo, 1, 1) \ 404 F(GetInterceptorInfo, 1, 1) \
402 F(ToFastProperties, 1, 1) \ 405 F(ToFastProperties, 1, 1) \
403 F(AllocateHeapNumber, 0, 1) \ 406 F(AllocateHeapNumber, 0, 1) \
404 F(NewObject, 2, 1) \ 407 F(NewObject, 2, 1) \
405 F(FinalizeInstanceSize, 1, 1) \ 408 F(FinalizeInstanceSize, 1, 1) \
406 F(LoadMutableDouble, 2, 1) \ 409 F(LoadMutableDouble, 2, 1) \
407 F(TryMigrateInstance, 1, 1) \ 410 F(TryMigrateInstance, 1, 1) \
408 F(IsJSGlobalProxy, 1, 1) \ 411 F(IsJSGlobalProxy, 1, 1) \
409 F(DefineAccessorPropertyUnchecked, 5, 1) \ 412 F(DefineAccessorPropertyUnchecked, 5, 1) \
410 F(DefineDataPropertyInLiteral, 6, 1) \ 413 F(DefineDataPropertyInLiteral, 4, 1) \
411 F(GetDataProperty, 2, 1) \ 414 F(GetDataProperty, 2, 1) \
412 F(GetConstructorName, 1, 1) \ 415 F(GetConstructorName, 1, 1) \
413 F(HasFastPackedElements, 1, 1) \ 416 F(HasFastPackedElements, 1, 1) \
414 F(ValueOf, 1, 1) \ 417 F(ValueOf, 1, 1) \
415 F(IsJSReceiver, 1, 1) \ 418 F(IsJSReceiver, 1, 1) \
416 F(ClassOf, 1, 1) \ 419 F(ClassOf, 1, 1) \
417 F(CopyDataProperties, 2, 1) \ 420 F(CopyDataProperties, 2, 1) \
418 F(DefineGetterPropertyUnchecked, 4, 1) \ 421 F(DefineGetterPropertyUnchecked, 4, 1) \
419 F(DefineSetterPropertyUnchecked, 4, 1) \ 422 F(DefineSetterPropertyUnchecked, 4, 1) \
420 F(ToObject, 1, 1) \ 423 F(ToObject, 1, 1) \
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 1149
1147 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1150 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1148 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1151 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1149 STATIC_ASSERT(LANGUAGE_END == 2); 1152 STATIC_ASSERT(LANGUAGE_END == 2);
1150 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; 1153 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {};
1151 1154
1152 } // namespace internal 1155 } // namespace internal
1153 } // namespace v8 1156 } // namespace v8
1154 1157
1155 #endif // V8_RUNTIME_RUNTIME_H_ 1158 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698