| 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 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1790 SetElementNonStrict(result, len, str); | 1790 SetElementNonStrict(result, len, str); |
| 1791 } | 1791 } |
| 1792 return result; | 1792 return result; |
| 1793 } | 1793 } |
| 1794 | 1794 |
| 1795 | 1795 |
| 1796 // Describes a single callframe a target. Not finding this frame | 1796 // Describes a single callframe a target. Not finding this frame |
| 1797 // means an error. | 1797 // means an error. |
| 1798 class SingleFrameTarget { | 1798 class SingleFrameTarget { |
| 1799 public: | 1799 public: |
| 1800 explicit SingleFrameTarget(JavaScriptFrame* frame) : m_frame(frame) {} | 1800 explicit SingleFrameTarget(JavaScriptFrame* frame) |
| 1801 : m_frame(frame), |
| 1802 m_saved_status(LiveEdit::FUNCTION_AVAILABLE_FOR_PATCH) {} |
| 1801 | 1803 |
| 1802 bool MatchActivation(StackFrame* frame, | 1804 bool MatchActivation(StackFrame* frame, |
| 1803 LiveEdit::FunctionPatchabilityStatus status) { | 1805 LiveEdit::FunctionPatchabilityStatus status) { |
| 1804 if (frame->fp() == m_frame->fp()) { | 1806 if (frame->fp() == m_frame->fp()) { |
| 1805 m_saved_status = status; | 1807 m_saved_status = status; |
| 1806 return true; | 1808 return true; |
| 1807 } | 1809 } |
| 1808 return false; | 1810 return false; |
| 1809 } | 1811 } |
| 1810 const char* GetNotFoundMessage() { | 1812 const char* GetNotFoundMessage() { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1896 | 1898 |
| 1897 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 1899 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
| 1898 return false; | 1900 return false; |
| 1899 } | 1901 } |
| 1900 | 1902 |
| 1901 #endif // ENABLE_DEBUGGER_SUPPORT | 1903 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1902 | 1904 |
| 1903 | 1905 |
| 1904 | 1906 |
| 1905 } } // namespace v8::internal | 1907 } } // namespace v8::internal |
| OLD | NEW |