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 5929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5940 } | 5940 } |
5941 | 5941 |
5942 | 5942 |
5943 DebugInfo* SharedFunctionInfo::GetDebugInfo() { | 5943 DebugInfo* SharedFunctionInfo::GetDebugInfo() { |
5944 DCHECK(HasDebugInfo()); | 5944 DCHECK(HasDebugInfo()); |
5945 return DebugInfo::cast(debug_info()); | 5945 return DebugInfo::cast(debug_info()); |
5946 } | 5946 } |
5947 | 5947 |
5948 | 5948 |
5949 bool SharedFunctionInfo::HasDebugCode() { | 5949 bool SharedFunctionInfo::HasDebugCode() { |
5950 return code()->kind() == Code::FUNCTION && code()->has_debug_break_slots(); | 5950 return HasBytecodeArray() || |
| 5951 (code()->kind() == Code::FUNCTION && code()->has_debug_break_slots()); |
5951 } | 5952 } |
5952 | 5953 |
5953 | 5954 |
5954 bool SharedFunctionInfo::IsApiFunction() { | 5955 bool SharedFunctionInfo::IsApiFunction() { |
5955 return function_data()->IsFunctionTemplateInfo(); | 5956 return function_data()->IsFunctionTemplateInfo(); |
5956 } | 5957 } |
5957 | 5958 |
5958 | 5959 |
5959 FunctionTemplateInfo* SharedFunctionInfo::get_api_func_data() { | 5960 FunctionTemplateInfo* SharedFunctionInfo::get_api_func_data() { |
5960 DCHECK(IsApiFunction()); | 5961 DCHECK(IsApiFunction()); |
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7836 #undef WRITE_INT64_FIELD | 7837 #undef WRITE_INT64_FIELD |
7837 #undef READ_BYTE_FIELD | 7838 #undef READ_BYTE_FIELD |
7838 #undef WRITE_BYTE_FIELD | 7839 #undef WRITE_BYTE_FIELD |
7839 #undef NOBARRIER_READ_BYTE_FIELD | 7840 #undef NOBARRIER_READ_BYTE_FIELD |
7840 #undef NOBARRIER_WRITE_BYTE_FIELD | 7841 #undef NOBARRIER_WRITE_BYTE_FIELD |
7841 | 7842 |
7842 } // namespace internal | 7843 } // namespace internal |
7843 } // namespace v8 | 7844 } // namespace v8 |
7844 | 7845 |
7845 #endif // V8_OBJECTS_INL_H_ | 7846 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |