 Chromium Code Reviews
 Chromium Code Reviews Issue 2622833002:
  WIP [esnext] implement async iteration proposal  (Closed)
    
  
    Issue 2622833002:
  WIP [esnext] implement async iteration proposal  (Closed) 
  | 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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(GeneratorGetAwaitInput, 1, 1) \ | |
| 251 F(GeneratorSaveInputForAwait, 1, 1) \ | |
| 250 F(GeneratorGetContinuation, 1, 1) \ | 252 F(GeneratorGetContinuation, 1, 1) \ | 
| 251 F(GeneratorGetSourcePosition, 1, 1) \ | 253 F(GeneratorGetSourcePosition, 1, 1) \ | 
| 252 F(GeneratorGetResumeMode, 1, 1) | 254 F(GeneratorGetResumeMode, 1, 1) | 
| 253 | 255 | 
| 254 #ifdef V8_I18N_SUPPORT | 256 #ifdef V8_I18N_SUPPORT | 
| 255 #define FOR_EACH_INTRINSIC_I18N(F) \ | 257 #define FOR_EACH_INTRINSIC_I18N(F) \ | 
| 256 F(CanonicalizeLanguageTag, 1, 1) \ | 258 F(CanonicalizeLanguageTag, 1, 1) \ | 
| 257 F(AvailableLocalesOf, 1, 1) \ | 259 F(AvailableLocalesOf, 1, 1) \ | 
| 258 F(GetDefaultICULocale, 0, 1) \ | 260 F(GetDefaultICULocale, 0, 1) \ | 
| 259 F(GetLanguageTagVariants, 1, 1) \ | 261 F(GetLanguageTagVariants, 1, 1) \ | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 326 F(ThrowCalledOnNullOrUndefined, 1, 1) \ | 328 F(ThrowCalledOnNullOrUndefined, 1, 1) \ | 
| 327 F(ThrowConstructedNonConstructable, 1, 1) \ | 329 F(ThrowConstructedNonConstructable, 1, 1) \ | 
| 328 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ | 330 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ | 
| 329 F(ThrowGeneratorRunning, 0, 1) \ | 331 F(ThrowGeneratorRunning, 0, 1) \ | 
| 330 F(ThrowIllegalInvocation, 0, 1) \ | 332 F(ThrowIllegalInvocation, 0, 1) \ | 
| 331 F(ThrowIncompatibleMethodReceiver, 2, 1) \ | 333 F(ThrowIncompatibleMethodReceiver, 2, 1) \ | 
| 332 F(ThrowInvalidHint, 1, 1) \ | 334 F(ThrowInvalidHint, 1, 1) \ | 
| 333 F(ThrowInvalidStringLength, 0, 1) \ | 335 F(ThrowInvalidStringLength, 0, 1) \ | 
| 334 F(ThrowIteratorResultNotAnObject, 1, 1) \ | 336 F(ThrowIteratorResultNotAnObject, 1, 1) \ | 
| 335 F(ThrowSymbolIteratorInvalid, 0, 1) \ | 337 F(ThrowSymbolIteratorInvalid, 0, 1) \ | 
| 338 F(ThrowSymbolAsyncIteratorInvalid, 0, 1) \ | |
| 336 F(ThrowNotGeneric, 1, 1) \ | 339 F(ThrowNotGeneric, 1, 1) \ | 
| 337 F(ThrowReferenceError, 1, 1) \ | 340 F(ThrowReferenceError, 1, 1) \ | 
| 338 F(ThrowStackOverflow, 0, 1) \ | 341 F(ThrowStackOverflow, 0, 1) \ | 
| 339 F(ThrowTypeError, -1 /* >= 1 */, 1) \ | 342 F(ThrowTypeError, -1 /* >= 1 */, 1) \ | 
| 340 F(ThrowUndefinedOrNullToObject, 1, 1) \ | 343 F(ThrowUndefinedOrNullToObject, 1, 1) \ | 
| 341 F(Typeof, 1, 1) \ | 344 F(Typeof, 1, 1) \ | 
| 342 F(UnwindAndFindExceptionHandler, 0, 1) | 345 F(UnwindAndFindExceptionHandler, 0, 1) \ | 
| 346 F(CreateAsyncFromSyncIterator, 1, 1) | |
| 343 | 347 | 
| 344 #define FOR_EACH_INTRINSIC_LITERALS(F) \ | 348 #define FOR_EACH_INTRINSIC_LITERALS(F) \ | 
| 345 F(CreateRegExpLiteral, 4, 1) \ | 349 F(CreateRegExpLiteral, 4, 1) \ | 
| 346 F(CreateObjectLiteral, 4, 1) \ | 350 F(CreateObjectLiteral, 4, 1) \ | 
| 347 F(CreateArrayLiteral, 4, 1) \ | 351 F(CreateArrayLiteral, 4, 1) \ | 
| 348 F(CreateArrayLiteralStubBailout, 3, 1) | 352 F(CreateArrayLiteralStubBailout, 3, 1) | 
| 349 | 353 | 
| 350 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 354 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 
| 351 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ | 355 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ | 
| 352 F(LiveEditGatherCompileInfo, 2, 1) \ | 356 F(LiveEditGatherCompileInfo, 2, 1) \ | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 401 F(GetOwnPropertyKeys, 2, 1) \ | 405 F(GetOwnPropertyKeys, 2, 1) \ | 
| 402 F(GetInterceptorInfo, 1, 1) \ | 406 F(GetInterceptorInfo, 1, 1) \ | 
| 403 F(ToFastProperties, 1, 1) \ | 407 F(ToFastProperties, 1, 1) \ | 
| 404 F(AllocateHeapNumber, 0, 1) \ | 408 F(AllocateHeapNumber, 0, 1) \ | 
| 405 F(NewObject, 2, 1) \ | 409 F(NewObject, 2, 1) \ | 
| 406 F(FinalizeInstanceSize, 1, 1) \ | 410 F(FinalizeInstanceSize, 1, 1) \ | 
| 407 F(LoadMutableDouble, 2, 1) \ | 411 F(LoadMutableDouble, 2, 1) \ | 
| 408 F(TryMigrateInstance, 1, 1) \ | 412 F(TryMigrateInstance, 1, 1) \ | 
| 409 F(IsJSGlobalProxy, 1, 1) \ | 413 F(IsJSGlobalProxy, 1, 1) \ | 
| 410 F(DefineAccessorPropertyUnchecked, 5, 1) \ | 414 F(DefineAccessorPropertyUnchecked, 5, 1) \ | 
| 411 F(DefineDataPropertyInLiteral, 6, 1) \ | 415 F(DefineDataPropertyInLiteral, 4, 1) \ | 
| 
Dan Ehrenberg
2017/01/13 19:41:09
This looks like a broken rebase.
 
caitp
2017/01/13 20:11:52
didn't get any merge conflicts here last time I re
 | |
| 412 F(GetDataProperty, 2, 1) \ | 416 F(GetDataProperty, 2, 1) \ | 
| 413 F(GetConstructorName, 1, 1) \ | 417 F(GetConstructorName, 1, 1) \ | 
| 414 F(HasFastPackedElements, 1, 1) \ | 418 F(HasFastPackedElements, 1, 1) \ | 
| 415 F(ValueOf, 1, 1) \ | 419 F(ValueOf, 1, 1) \ | 
| 416 F(IsJSReceiver, 1, 1) \ | 420 F(IsJSReceiver, 1, 1) \ | 
| 417 F(ClassOf, 1, 1) \ | 421 F(ClassOf, 1, 1) \ | 
| 418 F(CopyDataProperties, 2, 1) \ | 422 F(CopyDataProperties, 2, 1) \ | 
| 419 F(DefineGetterPropertyUnchecked, 4, 1) \ | 423 F(DefineGetterPropertyUnchecked, 4, 1) \ | 
| 420 F(DefineSetterPropertyUnchecked, 4, 1) \ | 424 F(DefineSetterPropertyUnchecked, 4, 1) \ | 
| 421 F(ToObject, 1, 1) \ | 425 F(ToObject, 1, 1) \ | 
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1148 | 1152 | 
| 1149 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1153 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 
| 1150 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1154 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 
| 1151 STATIC_ASSERT(LANGUAGE_END == 2); | 1155 STATIC_ASSERT(LANGUAGE_END == 2); | 
| 1152 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; | 1156 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; | 
| 1153 | 1157 | 
| 1154 } // namespace internal | 1158 } // namespace internal | 
| 1155 } // namespace v8 | 1159 } // namespace v8 | 
| 1156 | 1160 | 
| 1157 #endif // V8_RUNTIME_RUNTIME_H_ | 1161 #endif // V8_RUNTIME_RUNTIME_H_ | 
| OLD | NEW |