| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 static void LogCodeCreateEvent(Logger::LogEventsAndTags tag, | 218 static void LogCodeCreateEvent(Logger::LogEventsAndTags tag, |
| 219 Handle<String> name, | 219 Handle<String> name, |
| 220 Handle<String> inferred_name, | 220 Handle<String> inferred_name, |
| 221 int start_position, | 221 int start_position, |
| 222 Handle<Script> script, | 222 Handle<Script> script, |
| 223 Handle<Code> code); | 223 Handle<Code> code); |
| 224 #endif | 224 #endif |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 | 227 |
| 228 Handle<Code> MakeCodeForLiveEdit(Handle<Context> context, |
| 229 CompilationInfo* info); |
| 230 |
| 231 |
| 228 // During compilation we need a global list of handles to constants | 232 // During compilation we need a global list of handles to constants |
| 229 // for frame elements. When the zone gets deleted, we make sure to | 233 // for frame elements. When the zone gets deleted, we make sure to |
| 230 // clear this list of handles as well. | 234 // clear this list of handles as well. |
| 231 class CompilationZoneScope : public ZoneScope { | 235 class CompilationZoneScope : public ZoneScope { |
| 232 public: | 236 public: |
| 233 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { } | 237 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { } |
| 234 virtual ~CompilationZoneScope() { | 238 virtual ~CompilationZoneScope() { |
| 235 if (ShouldDeleteOnExit()) { | 239 if (ShouldDeleteOnExit()) { |
| 236 FrameElement::ClearConstantList(); | 240 FrameElement::ClearConstantList(); |
| 237 Result::ClearConstantList(); | 241 Result::ClearConstantList(); |
| 238 } | 242 } |
| 239 } | 243 } |
| 240 }; | 244 }; |
| 241 | 245 |
| 242 | 246 |
| 243 } } // namespace v8::internal | 247 } } // namespace v8::internal |
| 244 | 248 |
| 245 #endif // V8_COMPILER_H_ | 249 #endif // V8_COMPILER_H_ |
| OLD | NEW |