Index: src/parser.cc |
=================================================================== |
--- src/parser.cc (revision 3427) |
+++ src/parser.cc (working copy) |
@@ -1166,7 +1166,7 @@ |
bool Parser::PreParseProgram(Handle<String> source, |
unibrow::CharacterStream* stream) { |
- HistogramTimerScope timer(&Counters::pre_parse); |
+ HistogramTimerScope timer(&COUNTER(pre_parse)); |
AssertNoZoneAllocation assert_no_zone_allocation; |
AssertNoAllocation assert_no_allocation; |
NoHandleAllocation no_handle_allocation; |
@@ -1188,8 +1188,8 @@ |
bool in_global_context) { |
CompilationZoneScope zone_scope(DONT_DELETE_ON_EXIT); |
- HistogramTimerScope timer(&Counters::parse); |
- Counters::total_parse_size.Increment(source->length()); |
+ HistogramTimerScope timer(&COUNTER(parse)); |
+ INCREMENT_COUNTER(total_parse_size, source->length()); |
// Initialize parser state. |
source->TryFlattenIfNotFlat(); |
@@ -1246,9 +1246,9 @@ |
int start_position, |
bool is_expression) { |
CompilationZoneScope zone_scope(DONT_DELETE_ON_EXIT); |
- HistogramTimerScope timer(&Counters::parse_lazy); |
+ HistogramTimerScope timer(&COUNTER(parse_lazy)); |
source->TryFlattenIfNotFlat(); |
- Counters::total_parse_size.Increment(source->length()); |
+ INCREMENT_COUNTER(total_parse_size, source->length()); |
SafeStringInputBuffer buffer(source.location()); |
// Initialize parser state. |
@@ -3610,7 +3610,7 @@ |
if (is_lazily_compiled && pre_data() != NULL) { |
FunctionEntry entry = pre_data()->GetFunctionEnd(start_pos); |
int end_pos = entry.end_pos(); |
- Counters::total_preparse_skipped.Increment(end_pos - start_pos); |
+ INCREMENT_COUNTER(total_preparse_skipped, end_pos - start_pos); |
scanner_.SeekForward(end_pos); |
materialized_literal_count = entry.literal_count(); |
expected_property_count = entry.property_count(); |