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

Side by Side Diff: src/full-codegen.cc

Issue 388783004: Do not expose all timer events to the API callback. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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
« no previous file with comments | « src/compiler.cc ('k') | src/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/full-codegen.h" 10 #include "src/full-codegen.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { 284 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) {
285 } 285 }
286 286
287 287
288 #define __ ACCESS_MASM(masm()) 288 #define __ ACCESS_MASM(masm())
289 289
290 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 290 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
291 Isolate* isolate = info->isolate(); 291 Isolate* isolate = info->isolate();
292 292
293 Logger::TimerEventScope timer( 293 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
294 isolate, Logger::TimerEventScope::v8_compile_full_code);
295 294
296 Handle<Script> script = info->script(); 295 Handle<Script> script = info->script();
297 if (!script->IsUndefined() && !script->source()->IsUndefined()) { 296 if (!script->IsUndefined() && !script->source()->IsUndefined()) {
298 int len = String::cast(script->source())->length(); 297 int len = String::cast(script->source())->length();
299 isolate->counters()->total_full_codegen_source_size()->Increment(len); 298 isolate->counters()->total_full_codegen_source_size()->Increment(len);
300 } 299 }
301 CodeGenerator::MakeCodePrologue(info, "full"); 300 CodeGenerator::MakeCodePrologue(info, "full");
302 const int kInitialBufferSize = 4 * KB; 301 const int kInitialBufferSize = 4 * KB;
303 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize); 302 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize);
304 if (info->will_serialize()) masm.enable_serializer(); 303 if (info->will_serialize()) masm.enable_serializer();
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 } 1681 }
1683 return true; 1682 return true;
1684 } 1683 }
1685 #endif // DEBUG 1684 #endif // DEBUG
1686 1685
1687 1686
1688 #undef __ 1687 #undef __
1689 1688
1690 1689
1691 } } // namespace v8::internal 1690 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698