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

Side by Side Diff: src/runtime.h

Issue 139653003: Throw a TypeError when calling "next" method of a newly created generator with a value (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 6 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 F(MaterializeRegExpLiteral, 4, 1)\ 297 F(MaterializeRegExpLiteral, 4, 1)\
298 F(CreateObjectLiteral, 4, 1) \ 298 F(CreateObjectLiteral, 4, 1) \
299 F(CreateArrayLiteral, 4, 1) \ 299 F(CreateArrayLiteral, 4, 1) \
300 F(CreateArrayLiteralStubBailout, 3, 1) \ 300 F(CreateArrayLiteralStubBailout, 3, 1) \
301 \ 301 \
302 /* Harmony generators */ \ 302 /* Harmony generators */ \
303 F(CreateJSGeneratorObject, 0, 1) \ 303 F(CreateJSGeneratorObject, 0, 1) \
304 F(SuspendJSGeneratorObject, 1, 1) \ 304 F(SuspendJSGeneratorObject, 1, 1) \
305 F(ResumeJSGeneratorObject, 3, 1) \ 305 F(ResumeJSGeneratorObject, 3, 1) \
306 F(ThrowGeneratorStateError, 1, 1) \ 306 F(ThrowGeneratorStateError, 1, 1) \
307 F(ThrowGeneratorStartError, 0, 1) \
307 \ 308 \
308 /* ES5 */ \ 309 /* ES5 */ \
309 F(ObjectFreeze, 1, 1) \ 310 F(ObjectFreeze, 1, 1) \
310 \ 311 \
311 /* Harmony modules */ \ 312 /* Harmony modules */ \
312 F(IsJSModule, 1, 1) \ 313 F(IsJSModule, 1, 1) \
313 \ 314 \
314 /* Harmony symbols */ \ 315 /* Harmony symbols */ \
315 F(CreateSymbol, 1, 1) \ 316 F(CreateSymbol, 1, 1) \
316 F(CreatePrivateSymbol, 1, 1) \ 317 F(CreatePrivateSymbol, 1, 1) \
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 863 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
863 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 864 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
864 865
865 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 866 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
866 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 867 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
867 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 868 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
868 869
869 } } // namespace v8::internal 870 } } // namespace v8::internal
870 871
871 #endif // V8_RUNTIME_H_ 872 #endif // V8_RUNTIME_H_
OLDNEW
« src/ia32/full-codegen-ia32.cc ('K') | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698