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 4216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4227 // enumeration type has correct value range (see Issue 830 for more details). | 4227 // enumeration type has correct value range (see Issue 830 for more details). |
4228 enum Flags { | 4228 enum Flags { |
4229 FLAGS_MIN_VALUE = kMinInt, | 4229 FLAGS_MIN_VALUE = kMinInt, |
4230 FLAGS_MAX_VALUE = kMaxInt | 4230 FLAGS_MAX_VALUE = kMaxInt |
4231 }; | 4231 }; |
4232 | 4232 |
4233 #define CODE_KIND_LIST(V) \ | 4233 #define CODE_KIND_LIST(V) \ |
4234 V(FUNCTION) \ | 4234 V(FUNCTION) \ |
4235 V(OPTIMIZED_FUNCTION) \ | 4235 V(OPTIMIZED_FUNCTION) \ |
4236 V(STUB) \ | 4236 V(STUB) \ |
| 4237 V(COMPILED_STUB) \ |
4237 V(BUILTIN) \ | 4238 V(BUILTIN) \ |
4238 V(LOAD_IC) \ | 4239 V(LOAD_IC) \ |
4239 V(KEYED_LOAD_IC) \ | 4240 V(KEYED_LOAD_IC) \ |
4240 V(CALL_IC) \ | 4241 V(CALL_IC) \ |
4241 V(KEYED_CALL_IC) \ | 4242 V(KEYED_CALL_IC) \ |
4242 V(STORE_IC) \ | 4243 V(STORE_IC) \ |
4243 V(KEYED_STORE_IC) \ | 4244 V(KEYED_STORE_IC) \ |
4244 V(UNARY_OP_IC) \ | 4245 V(UNARY_OP_IC) \ |
4245 V(BINARY_OP_IC) \ | 4246 V(BINARY_OP_IC) \ |
4246 V(COMPARE_IC) \ | 4247 V(COMPARE_IC) \ |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4837 } | 4838 } |
4838 | 4839 |
4839 inline bool has_fast_smi_or_object_elements() { | 4840 inline bool has_fast_smi_or_object_elements() { |
4840 return IsFastSmiOrObjectElementsKind(elements_kind()); | 4841 return IsFastSmiOrObjectElementsKind(elements_kind()); |
4841 } | 4842 } |
4842 | 4843 |
4843 inline bool has_fast_double_elements() { | 4844 inline bool has_fast_double_elements() { |
4844 return IsFastDoubleElementsKind(elements_kind()); | 4845 return IsFastDoubleElementsKind(elements_kind()); |
4845 } | 4846 } |
4846 | 4847 |
| 4848 inline bool has_fast_elements() { |
| 4849 return IsFastElementsKind(elements_kind()); |
| 4850 } |
| 4851 |
4847 inline bool has_non_strict_arguments_elements() { | 4852 inline bool has_non_strict_arguments_elements() { |
4848 return elements_kind() == NON_STRICT_ARGUMENTS_ELEMENTS; | 4853 return elements_kind() == NON_STRICT_ARGUMENTS_ELEMENTS; |
4849 } | 4854 } |
4850 | 4855 |
4851 inline bool has_external_array_elements() { | 4856 inline bool has_external_array_elements() { |
4852 return IsExternalArrayElementsKind(elements_kind()); | 4857 return IsExternalArrayElementsKind(elements_kind()); |
4853 } | 4858 } |
4854 | 4859 |
4855 inline bool has_dictionary_elements() { | 4860 inline bool has_dictionary_elements() { |
4856 return IsDictionaryElementsKind(elements_kind()); | 4861 return IsDictionaryElementsKind(elements_kind()); |
(...skipping 4146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9003 } else { | 9008 } else { |
9004 value &= ~(1 << bit_position); | 9009 value &= ~(1 << bit_position); |
9005 } | 9010 } |
9006 return value; | 9011 return value; |
9007 } | 9012 } |
9008 }; | 9013 }; |
9009 | 9014 |
9010 } } // namespace v8::internal | 9015 } } // namespace v8::internal |
9011 | 9016 |
9012 #endif // V8_OBJECTS_H_ | 9017 #endif // V8_OBJECTS_H_ |
OLD | NEW |