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

Side by Side Diff: src/objects-inl.h

Issue 13179002: Add parser support for generators. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: added additional syntax tests Created 7 years, 8 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/objects.h ('k') | src/parser.h » ('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 // 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 4501 matching lines...) Expand 10 before | Expand all | Expand 10 after
4512 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, 4512 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
4513 name_should_print_as_anonymous, 4513 name_should_print_as_anonymous,
4514 kNameShouldPrintAsAnonymous) 4514 kNameShouldPrintAsAnonymous)
4515 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 4515 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
4516 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 4516 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
4517 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 4517 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
4518 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, 4518 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize,
4519 kDontOptimize) 4519 kDontOptimize)
4520 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) 4520 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline)
4521 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 4521 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
4522 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
4522 4523
4523 void SharedFunctionInfo::BeforeVisitingPointers() { 4524 void SharedFunctionInfo::BeforeVisitingPointers() {
4524 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); 4525 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap();
4525 } 4526 }
4526 4527
4527 4528
4528 void SharedFunctionInfo::ClearOptimizedCodeMap() { 4529 void SharedFunctionInfo::ClearOptimizedCodeMap() {
4529 set_optimized_code_map(Smi::FromInt(0)); 4530 set_optimized_code_map(Smi::FromInt(0));
4530 } 4531 }
4531 4532
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
6041 #undef WRITE_UINT32_FIELD 6042 #undef WRITE_UINT32_FIELD
6042 #undef READ_SHORT_FIELD 6043 #undef READ_SHORT_FIELD
6043 #undef WRITE_SHORT_FIELD 6044 #undef WRITE_SHORT_FIELD
6044 #undef READ_BYTE_FIELD 6045 #undef READ_BYTE_FIELD
6045 #undef WRITE_BYTE_FIELD 6046 #undef WRITE_BYTE_FIELD
6046 6047
6047 6048
6048 } } // namespace v8::internal 6049 } } // namespace v8::internal
6049 6050
6050 #endif // V8_OBJECTS_INL_H_ 6051 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698