| 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 | 903 |
| 904 Handle<JSArray> result_; | 904 Handle<JSArray> result_; |
| 905 int len_; | 905 int len_; |
| 906 int current_parent_index_; | 906 int current_parent_index_; |
| 907 }; | 907 }; |
| 908 | 908 |
| 909 | 909 |
| 910 JSArray* LiveEdit::GatherCompileInfo(Handle<Script> script, | 910 JSArray* LiveEdit::GatherCompileInfo(Handle<Script> script, |
| 911 Handle<String> source) { | 911 Handle<String> source) { |
| 912 Isolate* isolate = Isolate::Current(); | 912 Isolate* isolate = Isolate::Current(); |
| 913 CompilationZoneScope zone_scope(isolate, DELETE_ON_EXIT); | 913 ZoneScope zone_scope(isolate, DELETE_ON_EXIT); |
| 914 | 914 |
| 915 FunctionInfoListener listener; | 915 FunctionInfoListener listener; |
| 916 Handle<Object> original_source = Handle<Object>(script->source()); | 916 Handle<Object> original_source = Handle<Object>(script->source()); |
| 917 script->set_source(*source); | 917 script->set_source(*source); |
| 918 isolate->set_active_function_info_listener(&listener); | 918 isolate->set_active_function_info_listener(&listener); |
| 919 CompileScriptForTracker(isolate, script); | 919 CompileScriptForTracker(isolate, script); |
| 920 isolate->set_active_function_info_listener(NULL); | 920 isolate->set_active_function_info_listener(NULL); |
| 921 script->set_source(*original_source); | 921 script->set_source(*original_source); |
| 922 | 922 |
| 923 return *(listener.GetResult()); | 923 return *(listener.GetResult()); |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 | 1778 |
| 1779 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 1779 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
| 1780 return false; | 1780 return false; |
| 1781 } | 1781 } |
| 1782 | 1782 |
| 1783 #endif // ENABLE_DEBUGGER_SUPPORT | 1783 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1784 | 1784 |
| 1785 | 1785 |
| 1786 | 1786 |
| 1787 } } // namespace v8::internal | 1787 } } // namespace v8::internal |
| OLD | NEW |