| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 227 |
| 228 compilation_time += (ms_creategraph + ms_optimize + ms_codegen); | 228 compilation_time += (ms_creategraph + ms_optimize + ms_codegen); |
| 229 compiled_functions++; | 229 compiled_functions++; |
| 230 code_size += function->shared()->SourceSize(); | 230 code_size += function->shared()->SourceSize(); |
| 231 PrintF("Compiled: %d functions with %d byte source size in %fms.\n", | 231 PrintF("Compiled: %d functions with %d byte source size in %fms.\n", |
| 232 compiled_functions, | 232 compiled_functions, |
| 233 code_size, | 233 code_size, |
| 234 compilation_time); | 234 compilation_time); |
| 235 } | 235 } |
| 236 if (FLAG_hydrogen_stats) { | 236 if (FLAG_hydrogen_stats) { |
| 237 HStatistics::Instance()->IncrementSubtotals(time_taken_to_create_graph_, | 237 isolate()->GetHStatistics()->IncrementSubtotals(time_taken_to_create_graph_, |
| 238 time_taken_to_optimize_, | 238 time_taken_to_optimize_, |
| 239 time_taken_to_codegen_); | 239 time_taken_to_codegen_); |
| 240 } | 240 } |
| 241 } | 241 } |
| 242 | 242 |
| 243 | 243 |
| 244 // A return value of true indicates the compilation pipeline is still | 244 // A return value of true indicates the compilation pipeline is still |
| 245 // going, not necessarily that we optimized the code. | 245 // going, not necessarily that we optimized the code. |
| 246 static bool MakeCrankshaftCode(CompilationInfo* info) { | 246 static bool MakeCrankshaftCode(CompilationInfo* info) { |
| 247 OptimizingCompiler compiler(info); | 247 OptimizingCompiler compiler(info); |
| 248 OptimizingCompiler::Status status = compiler.CreateGraph(); | 248 OptimizingCompiler::Status status = compiler.CreateGraph(); |
| 249 | 249 |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 } | 1131 } |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1134 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
| 1135 Handle<Script>(info->script()), | 1135 Handle<Script>(info->script()), |
| 1136 Handle<Code>(info->code()), | 1136 Handle<Code>(info->code()), |
| 1137 info)); | 1137 info)); |
| 1138 } | 1138 } |
| 1139 | 1139 |
| 1140 } } // namespace v8::internal | 1140 } } // namespace v8::internal |
| OLD | NEW |