Index: src/full-codegen.cc |
=================================================================== |
--- src/full-codegen.cc (revision 3712) |
+++ src/full-codegen.cc (working copy) |
@@ -488,6 +488,10 @@ |
Handle<Code> FullCodeGenerator::MakeCode(FunctionLiteral* fun, |
Handle<Script> script, |
bool is_eval) { |
+ if (!script->IsUndefined() && !script->source()->IsUndefined()) { |
+ int len = String::cast(script->source())->length(); |
+ Counters::total_full_codegen_source_size.Increment(len); |
+ } |
CodeGenerator::MakeCodePrologue(fun); |
const int kInitialBufferSize = 4 * KB; |
MacroAssembler masm(NULL, kInitialBufferSize); |