Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: src/compiler.h

Issue 844006: Merge changes up to V8 version 2.1.3 into the partial snapshots (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compilation-cache.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 static void LogCodeCreateEvent(Logger::LogEventsAndTags tag, 270 static void LogCodeCreateEvent(Logger::LogEventsAndTags tag,
271 Handle<String> name, 271 Handle<String> name,
272 Handle<String> inferred_name, 272 Handle<String> inferred_name,
273 int start_position, 273 int start_position,
274 Handle<Script> script, 274 Handle<Script> script,
275 Handle<Code> code); 275 Handle<Code> code);
276 #endif 276 #endif
277 }; 277 };
278 278
279 279
280 #ifdef ENABLE_DEBUGGER_SUPPORT
281
282 Handle<Code> MakeCodeForLiveEdit(CompilationInfo* info);
283
284 #endif
285
286
280 // During compilation we need a global list of handles to constants 287 // During compilation we need a global list of handles to constants
281 // for frame elements. When the zone gets deleted, we make sure to 288 // for frame elements. When the zone gets deleted, we make sure to
282 // clear this list of handles as well. 289 // clear this list of handles as well.
283 class CompilationZoneScope : public ZoneScope { 290 class CompilationZoneScope : public ZoneScope {
284 public: 291 public:
285 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { } 292 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { }
286 virtual ~CompilationZoneScope() { 293 virtual ~CompilationZoneScope() {
287 if (ShouldDeleteOnExit()) { 294 if (ShouldDeleteOnExit()) {
288 FrameElement::ClearConstantList(); 295 FrameElement::ClearConstantList();
289 Result::ClearConstantList(); 296 Result::ClearConstantList();
290 } 297 }
291 } 298 }
292 }; 299 };
293 300
294 301
295 } } // namespace v8::internal 302 } } // namespace v8::internal
296 303
297 #endif // V8_COMPILER_H_ 304 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/compilation-cache.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698