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 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4906 Code::Kind Code::kind() { | 4906 Code::Kind Code::kind() { |
4907 return ExtractKindFromFlags(flags()); | 4907 return ExtractKindFromFlags(flags()); |
4908 } | 4908 } |
4909 | 4909 |
4910 | 4910 |
4911 bool Code::IsCodeStubOrIC() { | 4911 bool Code::IsCodeStubOrIC() { |
4912 return kind() == STUB || kind() == HANDLER || kind() == LOAD_IC || | 4912 return kind() == STUB || kind() == HANDLER || kind() == LOAD_IC || |
4913 kind() == KEYED_LOAD_IC || kind() == CALL_IC || kind() == STORE_IC || | 4913 kind() == KEYED_LOAD_IC || kind() == CALL_IC || kind() == STORE_IC || |
4914 kind() == KEYED_STORE_IC || kind() == BINARY_OP_IC || | 4914 kind() == KEYED_STORE_IC || kind() == BINARY_OP_IC || |
4915 kind() == COMPARE_IC || kind() == COMPARE_NIL_IC || | 4915 kind() == COMPARE_IC || kind() == COMPARE_NIL_IC || |
4916 kind() == TO_BOOLEAN_IC; | 4916 kind() == CONSTRUCT_IC || kind() == TO_BOOLEAN_IC; |
4917 } | 4917 } |
4918 | 4918 |
4919 | 4919 |
4920 bool Code::IsJavaScriptCode() { | 4920 bool Code::IsJavaScriptCode() { |
4921 return kind() == FUNCTION || kind() == OPTIMIZED_FUNCTION || | 4921 return kind() == FUNCTION || kind() == OPTIMIZED_FUNCTION || |
4922 is_interpreter_entry_trampoline(); | 4922 is_interpreter_entry_trampoline(); |
4923 } | 4923 } |
4924 | 4924 |
4925 | 4925 |
4926 InlineCacheState Code::ic_state() { | 4926 InlineCacheState Code::ic_state() { |
(...skipping 2929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7856 #undef WRITE_INT64_FIELD | 7856 #undef WRITE_INT64_FIELD |
7857 #undef READ_BYTE_FIELD | 7857 #undef READ_BYTE_FIELD |
7858 #undef WRITE_BYTE_FIELD | 7858 #undef WRITE_BYTE_FIELD |
7859 #undef NOBARRIER_READ_BYTE_FIELD | 7859 #undef NOBARRIER_READ_BYTE_FIELD |
7860 #undef NOBARRIER_WRITE_BYTE_FIELD | 7860 #undef NOBARRIER_WRITE_BYTE_FIELD |
7861 | 7861 |
7862 } // namespace internal | 7862 } // namespace internal |
7863 } // namespace v8 | 7863 } // namespace v8 |
7864 | 7864 |
7865 #endif // V8_OBJECTS_INL_H_ | 7865 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |