Revision: 16728
Author: bmeu...@chromium.org
Date: Mon Sep 16 11:30:10 2013 UTC
Log: Remove unused context parameter from AddIncrementCounter().
R=mvstan...@chromium.org
Review URL: https://codereview.chromium.org/23622033
http://code.google.com/p/v8/source/detail?r=16728
Modified:
/branches/bleeding_edge/src/code-stubs-hydrogen.cc
/branches/bleeding_edge/src/hydrogen.cc
/branches/bleeding_edge/src/hydrogen.h
=======================================
--- /branches/bleeding_edge/src/code-stubs-hydrogen.cc Fri Sep 13 13:50:16
2013 UTC
+++ /branches/bleeding_edge/src/code-stubs-hydrogen.cc Mon Sep 16 11:30:10
2013 UTC
@@ -923,8 +923,7 @@
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 @@
}
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* 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());
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Fri Sep 13 13:50:16 2013 UTC
+++ /branches/bleeding_edge/src/hydrogen.cc Mon Sep 16 11:30:10 2013 UTC
@@ -1032,8 +1032,7 @@
}
-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,
=======================================
--- /branches/bleeding_edge/src/hydrogen.h Thu Sep 12 22:04:04 2013 UTC
+++ /branches/bleeding_edge/src/hydrogen.h Mon Sep 16 11:30:10 2013 UTC
@@ -1271,8 +1271,7 @@
void FinishExitWithHardDeoptimization(const char* reason,
HBasicBlock* continuation);
- void AddIncrementCounter(StatsCounter* counter,
- HValue* context);
+ void AddIncrementCounter(StatsCounter* counter);
class IfBuilder V8_FINAL {
public:
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.