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 4015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4026 } | 4026 } |
4027 } | 4027 } |
4028 | 4028 |
4029 | 4029 |
4030 bool Map::has_non_instance_prototype() { | 4030 bool Map::has_non_instance_prototype() { |
4031 return ((1 << kHasNonInstancePrototype) & bit_field()) != 0; | 4031 return ((1 << kHasNonInstancePrototype) & bit_field()) != 0; |
4032 } | 4032 } |
4033 | 4033 |
4034 | 4034 |
4035 void Map::set_function_with_prototype(bool value) { | 4035 void Map::set_function_with_prototype(bool value) { |
4036 set_bit_field3(FunctionWithPrototype::update(bit_field3(), value)); | 4036 set_bit_field(FunctionWithPrototype::update(bit_field(), value)); |
4037 } | 4037 } |
4038 | 4038 |
4039 | 4039 |
4040 bool Map::function_with_prototype() { | 4040 bool Map::function_with_prototype() { |
4041 return FunctionWithPrototype::decode(bit_field3()); | 4041 return FunctionWithPrototype::decode(bit_field()); |
4042 } | 4042 } |
4043 | 4043 |
4044 | 4044 |
4045 void Map::set_is_access_check_needed(bool access_check_needed) { | 4045 void Map::set_is_access_check_needed(bool access_check_needed) { |
4046 if (access_check_needed) { | 4046 if (access_check_needed) { |
4047 set_bit_field(bit_field() | (1 << kIsAccessCheckNeeded)); | 4047 set_bit_field(bit_field() | (1 << kIsAccessCheckNeeded)); |
4048 } else { | 4048 } else { |
4049 set_bit_field(bit_field() & ~(1 << kIsAccessCheckNeeded)); | 4049 set_bit_field(bit_field() & ~(1 << kIsAccessCheckNeeded)); |
4050 } | 4050 } |
4051 } | 4051 } |
(...skipping 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6855 #undef READ_SHORT_FIELD | 6855 #undef READ_SHORT_FIELD |
6856 #undef WRITE_SHORT_FIELD | 6856 #undef WRITE_SHORT_FIELD |
6857 #undef READ_BYTE_FIELD | 6857 #undef READ_BYTE_FIELD |
6858 #undef WRITE_BYTE_FIELD | 6858 #undef WRITE_BYTE_FIELD |
6859 #undef NOBARRIER_READ_BYTE_FIELD | 6859 #undef NOBARRIER_READ_BYTE_FIELD |
6860 #undef NOBARRIER_WRITE_BYTE_FIELD | 6860 #undef NOBARRIER_WRITE_BYTE_FIELD |
6861 | 6861 |
6862 } } // namespace v8::internal | 6862 } } // namespace v8::internal |
6863 | 6863 |
6864 #endif // V8_OBJECTS_INL_H_ | 6864 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |