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

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

Issue 1199413009: Make helper functions compatible with larger ToBooleanStub types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/type-info.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 4665 matching lines...) Expand 10 before | Expand all | Expand 10 after
4676 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); 4676 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated);
4677 } 4677 }
4678 4678
4679 4679
4680 bool Code::back_edges_patched_for_osr() { 4680 bool Code::back_edges_patched_for_osr() {
4681 DCHECK_EQ(FUNCTION, kind()); 4681 DCHECK_EQ(FUNCTION, kind());
4682 return allow_osr_at_loop_nesting_level() > 0; 4682 return allow_osr_at_loop_nesting_level() > 0;
4683 } 4683 }
4684 4684
4685 4685
4686 byte Code::to_boolean_state() { 4686 uint16_t Code::to_boolean_state() { return extra_ic_state(); }
4687 return extra_ic_state();
4688 }
4689 4687
4690 4688
4691 bool Code::has_function_cache() { 4689 bool Code::has_function_cache() {
4692 DCHECK(kind() == STUB); 4690 DCHECK(kind() == STUB);
4693 return HasFunctionCacheField::decode( 4691 return HasFunctionCacheField::decode(
4694 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); 4692 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset));
4695 } 4693 }
4696 4694
4697 4695
4698 void Code::set_has_function_cache(bool flag) { 4696 void Code::set_has_function_cache(bool flag) {
(...skipping 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after
7294 #undef READ_SHORT_FIELD 7292 #undef READ_SHORT_FIELD
7295 #undef WRITE_SHORT_FIELD 7293 #undef WRITE_SHORT_FIELD
7296 #undef READ_BYTE_FIELD 7294 #undef READ_BYTE_FIELD
7297 #undef WRITE_BYTE_FIELD 7295 #undef WRITE_BYTE_FIELD
7298 #undef NOBARRIER_READ_BYTE_FIELD 7296 #undef NOBARRIER_READ_BYTE_FIELD
7299 #undef NOBARRIER_WRITE_BYTE_FIELD 7297 #undef NOBARRIER_WRITE_BYTE_FIELD
7300 7298
7301 } } // namespace v8::internal 7299 } } // namespace v8::internal
7302 7300
7303 #endif // V8_OBJECTS_INL_H_ 7301 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698