OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 static void LogCodeCreateEvent(Logger::LogEventsAndTags tag, | 269 static void LogCodeCreateEvent(Logger::LogEventsAndTags tag, |
270 Handle<String> name, | 270 Handle<String> name, |
271 Handle<String> inferred_name, | 271 Handle<String> inferred_name, |
272 int start_position, | 272 int start_position, |
273 Handle<Script> script, | 273 Handle<Script> script, |
274 Handle<Code> code); | 274 Handle<Code> code); |
275 #endif | 275 #endif |
276 }; | 276 }; |
277 | 277 |
278 | 278 |
| 279 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 280 |
| 281 Handle<Code> MakeCodeForLiveEdit(CompilationInfo* info); |
| 282 |
| 283 #endif |
| 284 |
| 285 |
279 // During compilation we need a global list of handles to constants | 286 // During compilation we need a global list of handles to constants |
280 // for frame elements. When the zone gets deleted, we make sure to | 287 // for frame elements. When the zone gets deleted, we make sure to |
281 // clear this list of handles as well. | 288 // clear this list of handles as well. |
282 class CompilationZoneScope : public ZoneScope { | 289 class CompilationZoneScope : public ZoneScope { |
283 public: | 290 public: |
284 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { } | 291 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { } |
285 virtual ~CompilationZoneScope() { | 292 virtual ~CompilationZoneScope() { |
286 if (ShouldDeleteOnExit()) { | 293 if (ShouldDeleteOnExit()) { |
287 FrameElement::ClearConstantList(); | 294 FrameElement::ClearConstantList(); |
288 Result::ClearConstantList(); | 295 Result::ClearConstantList(); |
289 } | 296 } |
290 } | 297 } |
291 }; | 298 }; |
292 | 299 |
293 | 300 |
294 } } // namespace v8::internal | 301 } } // namespace v8::internal |
295 | 302 |
296 #endif // V8_COMPILER_H_ | 303 #endif // V8_COMPILER_H_ |
OLD | NEW |