OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |