| 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 4846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4857 InstanceType type = instance_type(); | 4857 InstanceType type = instance_type(); |
| 4858 return FIRST_JS_PROXY_TYPE <= type && type <= LAST_JS_PROXY_TYPE; | 4858 return FIRST_JS_PROXY_TYPE <= type && type <= LAST_JS_PROXY_TYPE; |
| 4859 } | 4859 } |
| 4860 bool Map::IsJSGlobalProxyMap() { | 4860 bool Map::IsJSGlobalProxyMap() { |
| 4861 return instance_type() == JS_GLOBAL_PROXY_TYPE; | 4861 return instance_type() == JS_GLOBAL_PROXY_TYPE; |
| 4862 } | 4862 } |
| 4863 bool Map::IsJSGlobalObjectMap() { | 4863 bool Map::IsJSGlobalObjectMap() { |
| 4864 return instance_type() == JS_GLOBAL_OBJECT_TYPE; | 4864 return instance_type() == JS_GLOBAL_OBJECT_TYPE; |
| 4865 } | 4865 } |
| 4866 bool Map::IsJSTypedArrayMap() { return instance_type() == JS_TYPED_ARRAY_TYPE; } | 4866 bool Map::IsJSTypedArrayMap() { return instance_type() == JS_TYPED_ARRAY_TYPE; } |
| 4867 bool Map::IsJSDataViewMap() { return instance_type() == JS_DATA_VIEW_TYPE; } |
| 4867 | 4868 |
| 4868 | 4869 |
| 4869 bool Map::CanOmitMapChecks() { | 4870 bool Map::CanOmitMapChecks() { |
| 4870 return is_stable() && FLAG_omit_map_checks_for_leaf_maps; | 4871 return is_stable() && FLAG_omit_map_checks_for_leaf_maps; |
| 4871 } | 4872 } |
| 4872 | 4873 |
| 4873 | 4874 |
| 4874 int DependentCode::number_of_entries(DependencyGroup group) { | 4875 int DependentCode::number_of_entries(DependencyGroup group) { |
| 4875 if (length() == 0) return 0; | 4876 if (length() == 0) return 0; |
| 4876 return Smi::cast(get(group))->value(); | 4877 return Smi::cast(get(group))->value(); |
| (...skipping 3004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7881 #undef WRITE_INT64_FIELD | 7882 #undef WRITE_INT64_FIELD |
| 7882 #undef READ_BYTE_FIELD | 7883 #undef READ_BYTE_FIELD |
| 7883 #undef WRITE_BYTE_FIELD | 7884 #undef WRITE_BYTE_FIELD |
| 7884 #undef NOBARRIER_READ_BYTE_FIELD | 7885 #undef NOBARRIER_READ_BYTE_FIELD |
| 7885 #undef NOBARRIER_WRITE_BYTE_FIELD | 7886 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7886 | 7887 |
| 7887 } // namespace internal | 7888 } // namespace internal |
| 7888 } // namespace v8 | 7889 } // namespace v8 |
| 7889 | 7890 |
| 7890 #endif // V8_OBJECTS_INL_H_ | 7891 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |