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

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

Issue 766663003: harmony-classes: Implement 'super(...)' call syntactic restriction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Patch for landing Created 6 years 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
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 5774 matching lines...) Expand 10 before | Expand all | Expand 10 after
5785 5785
5786 5786
5787 void SharedFunctionInfo::set_kind(FunctionKind kind) { 5787 void SharedFunctionInfo::set_kind(FunctionKind kind) {
5788 DCHECK(IsValidFunctionKind(kind)); 5788 DCHECK(IsValidFunctionKind(kind));
5789 int hints = compiler_hints(); 5789 int hints = compiler_hints();
5790 hints = FunctionKindBits::update(hints, kind); 5790 hints = FunctionKindBits::update(hints, kind);
5791 set_compiler_hints(hints); 5791 set_compiler_hints(hints);
5792 } 5792 }
5793 5793
5794 5794
5795 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super, kUsesSuper) 5795 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_property,
5796 kUsesSuperProperty)
5797 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_constructor_call,
5798 kUsesSuperConstructorCall)
5796 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) 5799 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative)
5797 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin, 5800 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin,
5798 kInlineBuiltin) 5801 kInlineBuiltin)
5799 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, 5802 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
5800 name_should_print_as_anonymous, 5803 name_should_print_as_anonymous,
5801 kNameShouldPrintAsAnonymous) 5804 kNameShouldPrintAsAnonymous)
5802 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 5805 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
5803 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 5806 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
5804 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 5807 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
5805 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 5808 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
7512 #undef READ_SHORT_FIELD 7515 #undef READ_SHORT_FIELD
7513 #undef WRITE_SHORT_FIELD 7516 #undef WRITE_SHORT_FIELD
7514 #undef READ_BYTE_FIELD 7517 #undef READ_BYTE_FIELD
7515 #undef WRITE_BYTE_FIELD 7518 #undef WRITE_BYTE_FIELD
7516 #undef NOBARRIER_READ_BYTE_FIELD 7519 #undef NOBARRIER_READ_BYTE_FIELD
7517 #undef NOBARRIER_WRITE_BYTE_FIELD 7520 #undef NOBARRIER_WRITE_BYTE_FIELD
7518 7521
7519 } } // namespace v8::internal 7522 } } // namespace v8::internal
7520 7523
7521 #endif // V8_OBJECTS_INL_H_ 7524 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698