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

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: 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
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 5557 matching lines...) Expand 10 before | Expand all | Expand 10 after
5568 kInlineBuiltin) 5568 kInlineBuiltin)
5569 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, 5569 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
5570 name_should_print_as_anonymous, 5570 name_should_print_as_anonymous,
5571 kNameShouldPrintAsAnonymous) 5571 kNameShouldPrintAsAnonymous)
5572 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 5572 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
5573 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 5573 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
5574 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 5574 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
5575 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 5575 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
5576 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) 5576 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush)
5577 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) 5577 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
5578 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow)
5578 5579
5579 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) 5580 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
5580 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) 5581 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
5581 5582
5582 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) 5583 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset)
5583 5584
5584 bool Script::HasValidSource() { 5585 bool Script::HasValidSource() {
5585 Object* src = this->source(); 5586 Object* src = this->source();
5586 if (!src->IsString()) return true; 5587 if (!src->IsString()) return true;
5587 String* src_str = String::cast(src); 5588 String* src_str = String::cast(src);
(...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after
7170 #undef READ_SHORT_FIELD 7171 #undef READ_SHORT_FIELD
7171 #undef WRITE_SHORT_FIELD 7172 #undef WRITE_SHORT_FIELD
7172 #undef READ_BYTE_FIELD 7173 #undef READ_BYTE_FIELD
7173 #undef WRITE_BYTE_FIELD 7174 #undef WRITE_BYTE_FIELD
7174 #undef NOBARRIER_READ_BYTE_FIELD 7175 #undef NOBARRIER_READ_BYTE_FIELD
7175 #undef NOBARRIER_WRITE_BYTE_FIELD 7176 #undef NOBARRIER_WRITE_BYTE_FIELD
7176 7177
7177 } } // namespace v8::internal 7178 } } // namespace v8::internal
7178 7179
7179 #endif // V8_OBJECTS_INL_H_ 7180 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698