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

Side by Side Diff: src/compiler.h

Issue 1317003: Align OProfile agent invocations style with logging. (Closed)
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
« no previous file with comments | « src/code-stubs.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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 Handle<Script> script, 259 Handle<Script> script,
260 AstVisitor* caller); 260 AstVisitor* caller);
261 261
262 // Set the function info for a newly compiled function. 262 // Set the function info for a newly compiled function.
263 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, 263 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info,
264 FunctionLiteral* lit, 264 FunctionLiteral* lit,
265 bool is_toplevel, 265 bool is_toplevel,
266 Handle<Script> script); 266 Handle<Script> script);
267 267
268 private: 268 private:
269 269 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag,
270 #if defined ENABLE_LOGGING_AND_PROFILING || defined ENABLE_OPROFILE_AGENT 270 Handle<String> name,
271 static void LogCodeCreateEvent(Logger::LogEventsAndTags tag, 271 Handle<String> inferred_name,
272 Handle<String> name, 272 int start_position,
273 Handle<String> inferred_name, 273 Handle<Script> script,
274 int start_position, 274 Handle<Code> code);
275 Handle<Script> script,
276 Handle<Code> code);
277 #endif
278 }; 275 };
279 276
280 277
281 #ifdef ENABLE_DEBUGGER_SUPPORT 278 #ifdef ENABLE_DEBUGGER_SUPPORT
282 279
283 Handle<Code> MakeCodeForLiveEdit(CompilationInfo* info); 280 Handle<Code> MakeCodeForLiveEdit(CompilationInfo* info);
284 281
285 #endif 282 #endif
286 283
287 284
288 // During compilation we need a global list of handles to constants 285 // During compilation we need a global list of handles to constants
289 // for frame elements. When the zone gets deleted, we make sure to 286 // for frame elements. When the zone gets deleted, we make sure to
290 // clear this list of handles as well. 287 // clear this list of handles as well.
291 class CompilationZoneScope : public ZoneScope { 288 class CompilationZoneScope : public ZoneScope {
292 public: 289 public:
293 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { } 290 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { }
294 virtual ~CompilationZoneScope() { 291 virtual ~CompilationZoneScope() {
295 if (ShouldDeleteOnExit()) { 292 if (ShouldDeleteOnExit()) {
296 FrameElement::ClearConstantList(); 293 FrameElement::ClearConstantList();
297 Result::ClearConstantList(); 294 Result::ClearConstantList();
298 } 295 }
299 } 296 }
300 }; 297 };
301 298
302 299
303 } } // namespace v8::internal 300 } } // namespace v8::internal
304 301
305 #endif // V8_COMPILER_H_ 302 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698