| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 class LiveEditFunctionTracker { | 66 class LiveEditFunctionTracker { |
| 67 public: | 67 public: |
| 68 explicit LiveEditFunctionTracker(FunctionLiteral* fun); | 68 explicit LiveEditFunctionTracker(FunctionLiteral* fun); |
| 69 ~LiveEditFunctionTracker(); | 69 ~LiveEditFunctionTracker(); |
| 70 void RecordFunctionCode(Handle<Code> code); | 70 void RecordFunctionCode(Handle<Code> code); |
| 71 void RecordFunctionScope(Scope* scope); | 71 void RecordFunctionScope(Scope* scope); |
| 72 | 72 |
| 73 static bool IsActive(); | 73 static bool IsActive(); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 77 |
| 78 class LiveEdit : AllStatic { |
| 79 public: |
| 80 static JSArray* GatherCompileInfo(Handle<Script> script, |
| 81 Handle<String> source); |
| 82 |
| 83 static void WrapSharedFunctionInfos(Handle<JSArray> array); |
| 84 |
| 85 static void ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, |
| 86 Handle<JSArray> shared_info_array); |
| 87 |
| 88 static void RelinkFunctionToScript(Handle<JSArray> shared_info_array, |
| 89 Handle<Script> script_handle); |
| 90 |
| 91 static void PatchFunctionPositions(Handle<JSArray> shared_info_array, |
| 92 Handle<JSArray> position_change_array); |
| 93 }; |
| 94 |
| 95 #endif // ENABLE_DEBUGGER_SUPPORT |
| 96 |
| 97 |
| 76 } } // namespace v8::internal | 98 } } // namespace v8::internal |
| 77 | 99 |
| 78 #endif /* V*_LIVEEDIT_H_ */ | 100 #endif /* V*_LIVEEDIT_H_ */ |
| OLD | NEW |