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

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

Issue 382893003: Implement basic code generation for arrow functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Test failures fixed, some minor corrections Created 6 years, 5 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') | 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 // 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 5561 matching lines...) Expand 10 before | Expand all | Expand 10 after
5572 kInlineBuiltin) 5572 kInlineBuiltin)
5573 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, 5573 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
5574 name_should_print_as_anonymous, 5574 name_should_print_as_anonymous,
5575 kNameShouldPrintAsAnonymous) 5575 kNameShouldPrintAsAnonymous)
5576 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 5576 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
5577 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 5577 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
5578 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 5578 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
5579 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 5579 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
5580 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) 5580 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush)
5581 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) 5581 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
5582 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow)
5582 5583
5583 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) 5584 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
5584 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) 5585 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
5585 5586
5586 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) 5587 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset)
5587 5588
5588 bool Script::HasValidSource() { 5589 bool Script::HasValidSource() {
5589 Object* src = this->source(); 5590 Object* src = this->source();
5590 if (!src->IsString()) return true; 5591 if (!src->IsString()) return true;
5591 String* src_str = String::cast(src); 5592 String* src_str = String::cast(src);
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
7200 #undef READ_SHORT_FIELD 7201 #undef READ_SHORT_FIELD
7201 #undef WRITE_SHORT_FIELD 7202 #undef WRITE_SHORT_FIELD
7202 #undef READ_BYTE_FIELD 7203 #undef READ_BYTE_FIELD
7203 #undef WRITE_BYTE_FIELD 7204 #undef WRITE_BYTE_FIELD
7204 #undef NOBARRIER_READ_BYTE_FIELD 7205 #undef NOBARRIER_READ_BYTE_FIELD
7205 #undef NOBARRIER_WRITE_BYTE_FIELD 7206 #undef NOBARRIER_WRITE_BYTE_FIELD
7206 7207
7207 } } // namespace v8::internal 7208 } } // namespace v8::internal
7208 7209
7209 #endif // V8_OBJECTS_INL_H_ 7210 #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