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

Unified Diff: src/parser.cc

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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
« no previous file with comments | « src/objects.cc ('k') | src/platform-freebsd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « src/objects.cc ('k') | src/platform-freebsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698