OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 4214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4225 // enumeration type has correct value range (see Issue 830 for more details). | 4225 // enumeration type has correct value range (see Issue 830 for more details). |
4226 enum Flags { | 4226 enum Flags { |
4227 FLAGS_MIN_VALUE = kMinInt, | 4227 FLAGS_MIN_VALUE = kMinInt, |
4228 FLAGS_MAX_VALUE = kMaxInt | 4228 FLAGS_MAX_VALUE = kMaxInt |
4229 }; | 4229 }; |
4230 | 4230 |
4231 #define CODE_KIND_LIST(V) \ | 4231 #define CODE_KIND_LIST(V) \ |
4232 V(FUNCTION) \ | 4232 V(FUNCTION) \ |
4233 V(OPTIMIZED_FUNCTION) \ | 4233 V(OPTIMIZED_FUNCTION) \ |
4234 V(STUB) \ | 4234 V(STUB) \ |
| 4235 V(COMPILED_STUB) \ |
4235 V(BUILTIN) \ | 4236 V(BUILTIN) \ |
4236 V(LOAD_IC) \ | 4237 V(LOAD_IC) \ |
4237 V(KEYED_LOAD_IC) \ | 4238 V(KEYED_LOAD_IC) \ |
4238 V(CALL_IC) \ | 4239 V(CALL_IC) \ |
4239 V(KEYED_CALL_IC) \ | 4240 V(KEYED_CALL_IC) \ |
4240 V(STORE_IC) \ | 4241 V(STORE_IC) \ |
4241 V(KEYED_STORE_IC) \ | 4242 V(KEYED_STORE_IC) \ |
4242 V(UNARY_OP_IC) \ | 4243 V(UNARY_OP_IC) \ |
4243 V(BINARY_OP_IC) \ | 4244 V(BINARY_OP_IC) \ |
4244 V(COMPARE_IC) \ | 4245 V(COMPARE_IC) \ |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4871 } | 4872 } |
4872 | 4873 |
4873 inline bool has_fast_smi_or_object_elements() { | 4874 inline bool has_fast_smi_or_object_elements() { |
4874 return IsFastSmiOrObjectElementsKind(elements_kind()); | 4875 return IsFastSmiOrObjectElementsKind(elements_kind()); |
4875 } | 4876 } |
4876 | 4877 |
4877 inline bool has_fast_double_elements() { | 4878 inline bool has_fast_double_elements() { |
4878 return IsFastDoubleElementsKind(elements_kind()); | 4879 return IsFastDoubleElementsKind(elements_kind()); |
4879 } | 4880 } |
4880 | 4881 |
| 4882 inline bool has_fast_elements() { |
| 4883 return IsFastElementsKind(elements_kind()); |
| 4884 } |
| 4885 |
4881 inline bool has_non_strict_arguments_elements() { | 4886 inline bool has_non_strict_arguments_elements() { |
4882 return elements_kind() == NON_STRICT_ARGUMENTS_ELEMENTS; | 4887 return elements_kind() == NON_STRICT_ARGUMENTS_ELEMENTS; |
4883 } | 4888 } |
4884 | 4889 |
4885 inline bool has_external_array_elements() { | 4890 inline bool has_external_array_elements() { |
4886 return IsExternalArrayElementsKind(elements_kind()); | 4891 return IsExternalArrayElementsKind(elements_kind()); |
4887 } | 4892 } |
4888 | 4893 |
4889 inline bool has_dictionary_elements() { | 4894 inline bool has_dictionary_elements() { |
4890 return IsDictionaryElementsKind(elements_kind()); | 4895 return IsDictionaryElementsKind(elements_kind()); |
(...skipping 4145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9036 } else { | 9041 } else { |
9037 value &= ~(1 << bit_position); | 9042 value &= ~(1 << bit_position); |
9038 } | 9043 } |
9039 return value; | 9044 return value; |
9040 } | 9045 } |
9041 }; | 9046 }; |
9042 | 9047 |
9043 } } // namespace v8::internal | 9048 } } // namespace v8::internal |
9044 | 9049 |
9045 #endif // V8_OBJECTS_H_ | 9050 #endif // V8_OBJECTS_H_ |
OLD | NEW |