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

Unified Diff: src/assembler.h

Issue 14892: Merge changes from bleeding_edge into experimental toiger branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/SConscript ('k') | src/assembler-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.h
===================================================================
--- src/assembler.h (revision 1012)
+++ src/assembler.h (working copy)
@@ -335,6 +335,22 @@
};
+// A stack-allocated code region logs a name for the code generated
+// while the region is in effect. This information is used by the
+// profiler to categorize ticks within generated code.
+class CodeRegion BASE_EMBEDDED {
+ public:
+ inline CodeRegion(Assembler* assm, const char *name) : assm_(assm) {
+ LOG(BeginCodeRegionEvent(this, assm, name));
+ }
+ inline ~CodeRegion() {
+ LOG(EndCodeRegionEvent(this, assm_));
+ }
+ private:
+ Assembler* assm_;
+};
+
+
//------------------------------------------------------------------------------
// External function
« no previous file with comments | « src/SConscript ('k') | src/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698