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

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

Issue 12646003: Add parser support for generators. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: Fix bad initialization list in last preparser commit 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
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 4473 matching lines...) Expand 10 before | Expand all | Expand 10 after
4484 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, 4484 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
4485 name_should_print_as_anonymous, 4485 name_should_print_as_anonymous,
4486 kNameShouldPrintAsAnonymous) 4486 kNameShouldPrintAsAnonymous)
4487 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 4487 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
4488 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 4488 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
4489 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 4489 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
4490 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, 4490 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize,
4491 kDontOptimize) 4491 kDontOptimize)
4492 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) 4492 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline)
4493 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 4493 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
4494 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
4494 4495
4495 void SharedFunctionInfo::BeforeVisitingPointers() { 4496 void SharedFunctionInfo::BeforeVisitingPointers() {
4496 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); 4497 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap();
4497 } 4498 }
4498 4499
4499 4500
4500 void SharedFunctionInfo::ClearOptimizedCodeMap() { 4501 void SharedFunctionInfo::ClearOptimizedCodeMap() {
4501 set_optimized_code_map(Smi::FromInt(0)); 4502 set_optimized_code_map(Smi::FromInt(0));
4502 } 4503 }
4503 4504
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
5984 #undef WRITE_UINT32_FIELD 5985 #undef WRITE_UINT32_FIELD
5985 #undef READ_SHORT_FIELD 5986 #undef READ_SHORT_FIELD
5986 #undef WRITE_SHORT_FIELD 5987 #undef WRITE_SHORT_FIELD
5987 #undef READ_BYTE_FIELD 5988 #undef READ_BYTE_FIELD
5988 #undef WRITE_BYTE_FIELD 5989 #undef WRITE_BYTE_FIELD
5989 5990
5990 5991
5991 } } // namespace v8::internal 5992 } } // namespace v8::internal
5992 5993
5993 #endif // V8_OBJECTS_INL_H_ 5994 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/parser.h » ('j') | test/mjsunit/harmony/generators-parsing.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698