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

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

Issue 477263002: ES6: Add support for method shorthand in object literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add strict formal param checking Created 6 years, 4 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 5585 matching lines...) Expand 10 before | Expand all | Expand 10 after
5596 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, 5596 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
5597 name_should_print_as_anonymous, 5597 name_should_print_as_anonymous,
5598 kNameShouldPrintAsAnonymous) 5598 kNameShouldPrintAsAnonymous)
5599 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 5599 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
5600 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 5600 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
5601 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 5601 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
5602 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 5602 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
5603 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) 5603 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush)
5604 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) 5604 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
5605 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) 5605 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow)
5606 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method,
5607 kIsConciseMethod)
5606 5608
5607 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) 5609 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
5608 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) 5610 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
5609 5611
5610 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) 5612 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset)
5611 5613
5612 bool Script::HasValidSource() { 5614 bool Script::HasValidSource() {
5613 Object* src = this->source(); 5615 Object* src = this->source();
5614 if (!src->IsString()) return true; 5616 if (!src->IsString()) return true;
5615 String* src_str = String::cast(src); 5617 String* src_str = String::cast(src);
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after
7269 #undef READ_SHORT_FIELD 7271 #undef READ_SHORT_FIELD
7270 #undef WRITE_SHORT_FIELD 7272 #undef WRITE_SHORT_FIELD
7271 #undef READ_BYTE_FIELD 7273 #undef READ_BYTE_FIELD
7272 #undef WRITE_BYTE_FIELD 7274 #undef WRITE_BYTE_FIELD
7273 #undef NOBARRIER_READ_BYTE_FIELD 7275 #undef NOBARRIER_READ_BYTE_FIELD
7274 #undef NOBARRIER_WRITE_BYTE_FIELD 7276 #undef NOBARRIER_WRITE_BYTE_FIELD
7275 7277
7276 } } // namespace v8::internal 7278 } } // namespace v8::internal
7277 7279
7278 #endif // V8_OBJECTS_INL_H_ 7280 #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