| 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 4887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4898 bool Map::IsJSProxyMap() { | 4898 bool Map::IsJSProxyMap() { |
| 4899 InstanceType type = instance_type(); | 4899 InstanceType type = instance_type(); |
| 4900 return FIRST_JS_PROXY_TYPE <= type && type <= LAST_JS_PROXY_TYPE; | 4900 return FIRST_JS_PROXY_TYPE <= type && type <= LAST_JS_PROXY_TYPE; |
| 4901 } | 4901 } |
| 4902 bool Map::IsJSGlobalProxyMap() { | 4902 bool Map::IsJSGlobalProxyMap() { |
| 4903 return instance_type() == JS_GLOBAL_PROXY_TYPE; | 4903 return instance_type() == JS_GLOBAL_PROXY_TYPE; |
| 4904 } | 4904 } |
| 4905 bool Map::IsJSGlobalObjectMap() { | 4905 bool Map::IsJSGlobalObjectMap() { |
| 4906 return instance_type() == JS_GLOBAL_OBJECT_TYPE; | 4906 return instance_type() == JS_GLOBAL_OBJECT_TYPE; |
| 4907 } | 4907 } |
| 4908 bool Map::IsJSTypedArrayMap() { return instance_type() == JS_TYPED_ARRAY_TYPE; } |
| 4908 bool Map::IsGlobalObjectMap() { | 4909 bool Map::IsGlobalObjectMap() { |
| 4909 const InstanceType type = instance_type(); | 4910 const InstanceType type = instance_type(); |
| 4910 return type == JS_GLOBAL_OBJECT_TYPE || type == JS_BUILTINS_OBJECT_TYPE; | 4911 return type == JS_GLOBAL_OBJECT_TYPE || type == JS_BUILTINS_OBJECT_TYPE; |
| 4911 } | 4912 } |
| 4912 | 4913 |
| 4913 | 4914 |
| 4914 bool Map::CanOmitMapChecks() { | 4915 bool Map::CanOmitMapChecks() { |
| 4915 return is_stable() && FLAG_omit_map_checks_for_leaf_maps; | 4916 return is_stable() && FLAG_omit_map_checks_for_leaf_maps; |
| 4916 } | 4917 } |
| 4917 | 4918 |
| (...skipping 3193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8111 #undef WRITE_INT64_FIELD | 8112 #undef WRITE_INT64_FIELD |
| 8112 #undef READ_BYTE_FIELD | 8113 #undef READ_BYTE_FIELD |
| 8113 #undef WRITE_BYTE_FIELD | 8114 #undef WRITE_BYTE_FIELD |
| 8114 #undef NOBARRIER_READ_BYTE_FIELD | 8115 #undef NOBARRIER_READ_BYTE_FIELD |
| 8115 #undef NOBARRIER_WRITE_BYTE_FIELD | 8116 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8116 | 8117 |
| 8117 } // namespace internal | 8118 } // namespace internal |
| 8118 } // namespace v8 | 8119 } // namespace v8 |
| 8119 | 8120 |
| 8120 #endif // V8_OBJECTS_INL_H_ | 8121 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |