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

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

Issue 160073006: Implement handling of arrow functions in the parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement handling of arrow functions in the parser Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/parser.h » ('j') | src/parser.cc » ('J')
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 5211 matching lines...) Expand 10 before | Expand all | Expand 10 after
5222 kNameShouldPrintAsAnonymous) 5222 kNameShouldPrintAsAnonymous)
5223 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 5223 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
5224 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 5224 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
5225 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 5225 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
5226 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, 5226 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize,
5227 kDontOptimize) 5227 kDontOptimize)
5228 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) 5228 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline)
5229 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 5229 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
5230 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) 5230 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush)
5231 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) 5231 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
5232 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow)
5232 5233
5233 void SharedFunctionInfo::BeforeVisitingPointers() { 5234 void SharedFunctionInfo::BeforeVisitingPointers() {
5234 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); 5235 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap();
5235 } 5236 }
5236 5237
5237 5238
5238 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) 5239 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
5239 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) 5240 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
5240 5241
5241 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) 5242 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset)
(...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after
6815 #undef READ_UINT32_FIELD 6816 #undef READ_UINT32_FIELD
6816 #undef WRITE_UINT32_FIELD 6817 #undef WRITE_UINT32_FIELD
6817 #undef READ_SHORT_FIELD 6818 #undef READ_SHORT_FIELD
6818 #undef WRITE_SHORT_FIELD 6819 #undef WRITE_SHORT_FIELD
6819 #undef READ_BYTE_FIELD 6820 #undef READ_BYTE_FIELD
6820 #undef WRITE_BYTE_FIELD 6821 #undef WRITE_BYTE_FIELD
6821 6822
6822 } } // namespace v8::internal 6823 } } // namespace v8::internal
6823 6824
6824 #endif // V8_OBJECTS_INL_H_ 6825 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/parser.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698