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

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

Issue 1670143002: Visit the Optimized Code Map on first call rather than closure creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed overly-restrictive assert. Created 4 years, 8 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
« no previous file with comments | « src/objects.h ('k') | src/x64/builtins-x64.cc » ('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 5729 matching lines...) Expand 10 before | Expand all | Expand 10 after
5740 } 5740 }
5741 5741
5742 5742
5743 void SharedFunctionInfo::set_kind(FunctionKind kind) { 5743 void SharedFunctionInfo::set_kind(FunctionKind kind) {
5744 DCHECK(IsValidFunctionKind(kind)); 5744 DCHECK(IsValidFunctionKind(kind));
5745 int hints = compiler_hints(); 5745 int hints = compiler_hints();
5746 hints = FunctionKindBits::update(hints, kind); 5746 hints = FunctionKindBits::update(hints, kind);
5747 set_compiler_hints(hints); 5747 set_compiler_hints(hints);
5748 } 5748 }
5749 5749
5750
5751 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, needs_home_object, 5750 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, needs_home_object,
5752 kNeedsHomeObject) 5751 kNeedsHomeObject)
5753 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) 5752 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative)
5754 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline) 5753 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline)
5755 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, 5754 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
5756 name_should_print_as_anonymous, 5755 name_should_print_as_anonymous,
5757 kNameShouldPrintAsAnonymous) 5756 kNameShouldPrintAsAnonymous)
5758 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression, 5757 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression,
5759 kIsAnonymousExpression) 5758 kIsAnonymousExpression)
5760 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 5759 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
(...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after
7802 #undef WRITE_INT64_FIELD 7801 #undef WRITE_INT64_FIELD
7803 #undef READ_BYTE_FIELD 7802 #undef READ_BYTE_FIELD
7804 #undef WRITE_BYTE_FIELD 7803 #undef WRITE_BYTE_FIELD
7805 #undef NOBARRIER_READ_BYTE_FIELD 7804 #undef NOBARRIER_READ_BYTE_FIELD
7806 #undef NOBARRIER_WRITE_BYTE_FIELD 7805 #undef NOBARRIER_WRITE_BYTE_FIELD
7807 7806
7808 } // namespace internal 7807 } // namespace internal
7809 } // namespace v8 7808 } // namespace v8
7810 7809
7811 #endif // V8_OBJECTS_INL_H_ 7810 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698