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

Side by Side Diff: src/objects.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, 3 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4854 matching lines...) Expand 10 before | Expand all | Expand 10 after
4865 // Used during GC to code a list of code objects to deoptimize. 4865 // Used during GC to code a list of code objects to deoptimize.
4866 inline Object* code_to_deoptimize_link(); 4866 inline Object* code_to_deoptimize_link();
4867 inline void set_code_to_deoptimize_link(Object* value); 4867 inline void set_code_to_deoptimize_link(Object* value);
4868 inline Object** code_to_deoptimize_link_slot(); 4868 inline Object** code_to_deoptimize_link_slot();
4869 4869
4870 // [gc_metadata]: Field used to hold GC related metadata. The contents of this 4870 // [gc_metadata]: Field used to hold GC related metadata. The contents of this
4871 // field does not have to be traced during garbage collection since 4871 // field does not have to be traced during garbage collection since
4872 // it is only used by the garbage collector itself. 4872 // it is only used by the garbage collector itself.
4873 DECL_ACCESSORS(gc_metadata, Object) 4873 DECL_ACCESSORS(gc_metadata, Object)
4874 4874
4875 // Profiling budget counter to govern when to invoke the runtime profiler.
4876 DECL_ACCESSORS(profiling_budget, Cell)
4877
4878 inline void ResetProfilingBudget(int value);
4879
4875 // [ic_age]: Inline caching age: the value of the Heap::global_ic_age 4880 // [ic_age]: Inline caching age: the value of the Heap::global_ic_age
4876 // at the moment when this object was created. 4881 // at the moment when this object was created.
4877 inline void set_ic_age(int count); 4882 inline void set_ic_age(int count);
4878 inline int ic_age(); 4883 inline int ic_age();
4879 4884
4880 // [prologue_offset]: Offset of the function prologue, used for aging 4885 // [prologue_offset]: Offset of the function prologue, used for aging
4881 // FUNCTIONs and OPTIMIZED_FUNCTIONs. 4886 // FUNCTIONs and OPTIMIZED_FUNCTIONs.
4882 inline int prologue_offset(); 4887 inline int prologue_offset();
4883 inline void set_prologue_offset(int offset); 4888 inline void set_prologue_offset(int offset);
4884 4889
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
5178 5183
5179 // Layout description. 5184 // Layout description.
5180 static const int kInstructionSizeOffset = HeapObject::kHeaderSize; 5185 static const int kInstructionSizeOffset = HeapObject::kHeaderSize;
5181 static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize; 5186 static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize;
5182 static const int kHandlerTableOffset = kRelocationInfoOffset + kPointerSize; 5187 static const int kHandlerTableOffset = kRelocationInfoOffset + kPointerSize;
5183 static const int kDeoptimizationDataOffset = 5188 static const int kDeoptimizationDataOffset =
5184 kHandlerTableOffset + kPointerSize; 5189 kHandlerTableOffset + kPointerSize;
5185 static const int kTypeFeedbackInfoOffset = 5190 static const int kTypeFeedbackInfoOffset =
5186 kDeoptimizationDataOffset + kPointerSize; 5191 kDeoptimizationDataOffset + kPointerSize;
5187 static const int kGCMetadataOffset = kTypeFeedbackInfoOffset + kPointerSize; 5192 static const int kGCMetadataOffset = kTypeFeedbackInfoOffset + kPointerSize;
5188 static const int kICAgeOffset = 5193 static const int kProfilingBudgetOffset = kGCMetadataOffset + kPointerSize;
5189 kGCMetadataOffset + kPointerSize; 5194 static const int kICAgeOffset = kProfilingBudgetOffset + kPointerSize;
5190 static const int kFlagsOffset = kICAgeOffset + kIntSize; 5195 static const int kFlagsOffset = kICAgeOffset + kIntSize;
5191 static const int kKindSpecificFlags1Offset = kFlagsOffset + kIntSize; 5196 static const int kKindSpecificFlags1Offset = kFlagsOffset + kIntSize;
5192 static const int kKindSpecificFlags2Offset = 5197 static const int kKindSpecificFlags2Offset =
5193 kKindSpecificFlags1Offset + kIntSize; 5198 kKindSpecificFlags1Offset + kIntSize;
5194 // Note: We might be able to squeeze this into the flags above. 5199 // Note: We might be able to squeeze this into the flags above.
5195 static const int kPrologueOffset = kKindSpecificFlags2Offset + kIntSize; 5200 static const int kPrologueOffset = kKindSpecificFlags2Offset + kIntSize;
5196 5201
5197 static const int kHeaderPaddingStart = kPrologueOffset + kIntSize; 5202 static const int kHeaderPaddingStart = kPrologueOffset + kIntSize;
5198 5203
5199 // Add padding to align the instruction start following right after 5204 // Add padding to align the instruction start following right after
(...skipping 5076 matching lines...) Expand 10 before | Expand all | Expand 10 after
10276 } else { 10281 } else {
10277 value &= ~(1 << bit_position); 10282 value &= ~(1 << bit_position);
10278 } 10283 }
10279 return value; 10284 return value;
10280 } 10285 }
10281 }; 10286 };
10282 10287
10283 } } // namespace v8::internal 10288 } } // namespace v8::internal
10284 10289
10285 #endif // V8_OBJECTS_H_ 10290 #endif // V8_OBJECTS_H_
OLDNEW
« src/full-codegen.cc ('K') | « src/mips/full-codegen-mips.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698