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

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: Extra parens in parameter lists now recognized, no longer segfaults on "()" Created 6 years, 7 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.h » ('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 // 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 5212 matching lines...) Expand 10 before | Expand all | Expand 10 after
5223 kNameShouldPrintAsAnonymous) 5223 kNameShouldPrintAsAnonymous)
5224 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 5224 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
5225 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 5225 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
5226 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 5226 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
5227 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, 5227 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize,
5228 kDontOptimize) 5228 kDontOptimize)
5229 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) 5229 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline)
5230 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 5230 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
5231 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) 5231 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush)
5232 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) 5232 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
5233 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow)
5233 5234
5234 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) 5235 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
5235 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) 5236 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
5236 5237
5237 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) 5238 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset)
5238 5239
5239 bool Script::HasValidSource() { 5240 bool Script::HasValidSource() {
5240 Object* src = this->source(); 5241 Object* src = this->source();
5241 if (!src->IsString()) return true; 5242 if (!src->IsString()) return true;
5242 String* src_str = String::cast(src); 5243 String* src_str = String::cast(src);
(...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
6845 #undef READ_SHORT_FIELD 6846 #undef READ_SHORT_FIELD
6846 #undef WRITE_SHORT_FIELD 6847 #undef WRITE_SHORT_FIELD
6847 #undef READ_BYTE_FIELD 6848 #undef READ_BYTE_FIELD
6848 #undef WRITE_BYTE_FIELD 6849 #undef WRITE_BYTE_FIELD
6849 #undef NOBARRIER_READ_BYTE_FIELD 6850 #undef NOBARRIER_READ_BYTE_FIELD
6850 #undef NOBARRIER_WRITE_BYTE_FIELD 6851 #undef NOBARRIER_WRITE_BYTE_FIELD
6851 6852
6852 } } // namespace v8::internal 6853 } } // namespace v8::internal
6853 6854
6854 #endif // V8_OBJECTS_INL_H_ 6855 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/parser.h » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698