Remove unused context parameter from AddIncrementCounter().

R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/23622033

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16728 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
bmeurer@chromium.org 2013-09-16 11:30:10 +00:00
parent 39f0ccc2b3
commit 8588b74491
3 changed files with 5 additions and 8 deletions

View File

@ -923,8 +923,7 @@ void CodeStubGraphBuilderBase::BuildInstallOptimizedCode(
HValue* native_context,
HValue* code_object) {
Counters* counters = isolate()->counters();
AddIncrementCounter(counters->fast_new_closure_install_optimized(),
context());
AddIncrementCounter(counters->fast_new_closure_install_optimized());
// TODO(fschneider): Idea: store proper code pointers in the optimized code
// map and either unmangle them on marking or do nothing as the whole map is
@ -972,7 +971,7 @@ void CodeStubGraphBuilderBase::BuildInstallFromOptimizedCodeMap(
}
is_optimized.Else();
{
AddIncrementCounter(counters->fast_new_closure_try_optimized(), context());
AddIncrementCounter(counters->fast_new_closure_try_optimized());
// optimized_map points to fixed array of 3-element entries
// (native context, optimized code, literals).
// Map must never be empty, so check the first elements.
@ -1061,7 +1060,7 @@ HValue* CodeStubGraphBuilder<FastNewClosureStub>::BuildCodeStub() {
HValue* size = Add<HConstant>(JSFunction::kSize);
HInstruction* js_function = Add<HAllocate>(size, HType::JSObject(),
NOT_TENURED, JS_FUNCTION_TYPE);
AddIncrementCounter(counters->fast_new_closure_total(), context());
AddIncrementCounter(counters->fast_new_closure_total());
int map_index = Context::FunctionMapIndex(casted_stub()->language_mode(),
casted_stub()->is_generator());

View File

@ -1032,8 +1032,7 @@ HInstruction* HGraphBuilder::AddInstruction(HInstruction* instr) {
}
void HGraphBuilder::AddIncrementCounter(StatsCounter* counter,
HValue* context) {
void HGraphBuilder::AddIncrementCounter(StatsCounter* counter) {
if (FLAG_native_code_counters && counter->Enabled()) {
HValue* reference = Add<HConstant>(ExternalReference(counter));
HValue* old_value = Add<HLoadNamedField>(reference,

View File

@ -1271,8 +1271,7 @@ class HGraphBuilder {
void FinishExitWithHardDeoptimization(const char* reason,
HBasicBlock* continuation);
void AddIncrementCounter(StatsCounter* counter,
HValue* context);
void AddIncrementCounter(StatsCounter* counter);
class IfBuilder V8_FINAL {
public: