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

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

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: simplify AsyncIteratorValueUnwrap 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
« no previous file with comments | « src/parsing/preparser.h ('k') | src/runtime/runtime-generator.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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 F(ConvertReceiver, 1, 1) \ 240 F(ConvertReceiver, 1, 1) \
241 F(IsFunction, 1, 1) \ 241 F(IsFunction, 1, 1) \
242 F(FunctionToString, 1, 1) 242 F(FunctionToString, 1, 1)
243 243
244 #define FOR_EACH_INTRINSIC_GENERATOR(F) \ 244 #define FOR_EACH_INTRINSIC_GENERATOR(F) \
245 F(CreateJSGeneratorObject, 2, 1) \ 245 F(CreateJSGeneratorObject, 2, 1) \
246 F(GeneratorClose, 1, 1) \ 246 F(GeneratorClose, 1, 1) \
247 F(GeneratorGetFunction, 1, 1) \ 247 F(GeneratorGetFunction, 1, 1) \
248 F(GeneratorGetReceiver, 1, 1) \ 248 F(GeneratorGetReceiver, 1, 1) \
249 F(GeneratorGetInputOrDebugPos, 1, 1) \ 249 F(GeneratorGetInputOrDebugPos, 1, 1) \
250 F(AsyncGeneratorGetAwaitInput, 1, 1) \
250 F(GeneratorGetContinuation, 1, 1) \ 251 F(GeneratorGetContinuation, 1, 1) \
251 F(GeneratorGetSourcePosition, 1, 1) \ 252 F(GeneratorGetSourcePosition, 1, 1) \
252 F(GeneratorGetResumeMode, 1, 1) 253 F(GeneratorGetResumeMode, 1, 1)
253 254
254 #ifdef V8_I18N_SUPPORT 255 #ifdef V8_I18N_SUPPORT
255 #define FOR_EACH_INTRINSIC_I18N(F) \ 256 #define FOR_EACH_INTRINSIC_I18N(F) \
256 F(CanonicalizeLanguageTag, 1, 1) \ 257 F(CanonicalizeLanguageTag, 1, 1) \
257 F(AvailableLocalesOf, 1, 1) \ 258 F(AvailableLocalesOf, 1, 1) \
258 F(GetDefaultICULocale, 0, 1) \ 259 F(GetDefaultICULocale, 0, 1) \
259 F(GetLanguageTagVariants, 1, 1) \ 260 F(GetLanguageTagVariants, 1, 1) \
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 F(ThrowCalledOnNullOrUndefined, 1, 1) \ 327 F(ThrowCalledOnNullOrUndefined, 1, 1) \
327 F(ThrowConstructedNonConstructable, 1, 1) \ 328 F(ThrowConstructedNonConstructable, 1, 1) \
328 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ 329 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \
329 F(ThrowGeneratorRunning, 0, 1) \ 330 F(ThrowGeneratorRunning, 0, 1) \
330 F(ThrowIllegalInvocation, 0, 1) \ 331 F(ThrowIllegalInvocation, 0, 1) \
331 F(ThrowIncompatibleMethodReceiver, 2, 1) \ 332 F(ThrowIncompatibleMethodReceiver, 2, 1) \
332 F(ThrowInvalidHint, 1, 1) \ 333 F(ThrowInvalidHint, 1, 1) \
333 F(ThrowInvalidStringLength, 0, 1) \ 334 F(ThrowInvalidStringLength, 0, 1) \
334 F(ThrowIteratorResultNotAnObject, 1, 1) \ 335 F(ThrowIteratorResultNotAnObject, 1, 1) \
335 F(ThrowSymbolIteratorInvalid, 0, 1) \ 336 F(ThrowSymbolIteratorInvalid, 0, 1) \
337 F(ThrowSymbolAsyncIteratorInvalid, 0, 1) \
336 F(ThrowNotGeneric, 1, 1) \ 338 F(ThrowNotGeneric, 1, 1) \
337 F(ThrowReferenceError, 1, 1) \ 339 F(ThrowReferenceError, 1, 1) \
338 F(ThrowStackOverflow, 0, 1) \ 340 F(ThrowStackOverflow, 0, 1) \
339 F(ThrowTypeError, -1 /* >= 1 */, 1) \ 341 F(ThrowTypeError, -1 /* >= 1 */, 1) \
340 F(ThrowUndefinedOrNullToObject, 1, 1) \ 342 F(ThrowUndefinedOrNullToObject, 1, 1) \
341 F(Typeof, 1, 1) \ 343 F(Typeof, 1, 1) \
342 F(UnwindAndFindExceptionHandler, 0, 1) 344 F(UnwindAndFindExceptionHandler, 0, 1) \
345 F(CreateAsyncFromSyncIterator, 1, 1)
343 346
344 #define FOR_EACH_INTRINSIC_LITERALS(F) \ 347 #define FOR_EACH_INTRINSIC_LITERALS(F) \
345 F(CreateRegExpLiteral, 4, 1) \ 348 F(CreateRegExpLiteral, 4, 1) \
346 F(CreateObjectLiteral, 4, 1) \ 349 F(CreateObjectLiteral, 4, 1) \
347 F(CreateArrayLiteral, 4, 1) \ 350 F(CreateArrayLiteral, 4, 1) \
348 F(CreateArrayLiteralStubBailout, 3, 1) 351 F(CreateArrayLiteralStubBailout, 3, 1)
349 352
350 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ 353 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \
351 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ 354 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \
352 F(LiveEditGatherCompileInfo, 2, 1) \ 355 F(LiveEditGatherCompileInfo, 2, 1) \
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 1151
1149 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1152 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1150 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1153 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1151 STATIC_ASSERT(LANGUAGE_END == 2); 1154 STATIC_ASSERT(LANGUAGE_END == 2);
1152 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; 1155 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {};
1153 1156
1154 } // namespace internal 1157 } // namespace internal
1155 } // namespace v8 1158 } // namespace v8
1156 1159
1157 #endif // V8_RUNTIME_RUNTIME_H_ 1160 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/parsing/preparser.h ('k') | src/runtime/runtime-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698