OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 FunctionInfoListener() { | 790 FunctionInfoListener() { |
791 current_parent_index_ = -1; | 791 current_parent_index_ = -1; |
792 len_ = 0; | 792 len_ = 0; |
793 result_ = FACTORY->NewJSArray(10); | 793 result_ = FACTORY->NewJSArray(10); |
794 } | 794 } |
795 | 795 |
796 void FunctionStarted(FunctionLiteral* fun) { | 796 void FunctionStarted(FunctionLiteral* fun) { |
797 HandleScope scope; | 797 HandleScope scope; |
798 FunctionInfoWrapper info = FunctionInfoWrapper::Create(); | 798 FunctionInfoWrapper info = FunctionInfoWrapper::Create(); |
799 info.SetInitialProperties(fun->name(), fun->start_position(), | 799 info.SetInitialProperties(fun->name(), fun->start_position(), |
800 fun->end_position(), fun->num_parameters(), | 800 fun->end_position(), fun->parameter_count(), |
801 current_parent_index_); | 801 current_parent_index_); |
802 current_parent_index_ = len_; | 802 current_parent_index_ = len_; |
803 SetElementNonStrict(result_, len_, info.GetJSArray()); | 803 SetElementNonStrict(result_, len_, info.GetJSArray()); |
804 len_++; | 804 len_++; |
805 } | 805 } |
806 | 806 |
807 void FunctionDone() { | 807 void FunctionDone() { |
808 HandleScope scope; | 808 HandleScope scope; |
809 FunctionInfoWrapper info = | 809 FunctionInfoWrapper info = |
810 FunctionInfoWrapper::cast( | 810 FunctionInfoWrapper::cast( |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 | 1764 |
1765 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 1765 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
1766 return false; | 1766 return false; |
1767 } | 1767 } |
1768 | 1768 |
1769 #endif // ENABLE_DEBUGGER_SUPPORT | 1769 #endif // ENABLE_DEBUGGER_SUPPORT |
1770 | 1770 |
1771 | 1771 |
1772 | 1772 |
1773 } } // namespace v8::internal | 1773 } } // namespace v8::internal |
OLD | NEW |