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

Unified Diff: src/objects-inl.h

Issue 23747003: Wire up profiling budget to the Code object. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 77b4e3816cd064e3004cedf13f244580c912a5b6..dd6eede22a34cd36bfcbae838a343e26b2a87b10 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5355,9 +5355,15 @@ Object** Code::code_to_deoptimize_link_slot() {
ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset)
+ACCESSORS(Code, profiling_budget, Cell, kProfilingBudgetOffset)
INT_ACCESSORS(Code, ic_age, kICAgeOffset)
+void Code::ResetProfilingBudget(int value) {
+ profiling_budget()->set_value(Smi::FromInt(value));
+}
+
+
byte* Code::instruction_start() {
return FIELD_ADDR(this, kHeaderSize);
}
« src/full-codegen.cc ('K') | « src/objects.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698