Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: src/objects-inl.h

Issue 1682853004: [interpreter, debugger] implement bytecode break location iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix build Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/source-position-table.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/interpreter/source-position-table.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698