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

Side by Side Diff: src/compiler.cc

Issue 132373011: A64: Synchronize with r17635. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/codegen.cc ('k') | src/d8.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 // 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } 255 }
256 256
257 257
258 static bool AlwaysFullCompiler(Isolate* isolate) { 258 static bool AlwaysFullCompiler(Isolate* isolate) {
259 return FLAG_always_full_compiler || IsDebuggerActive(isolate); 259 return FLAG_always_full_compiler || IsDebuggerActive(isolate);
260 } 260 }
261 261
262 262
263 void RecompileJob::RecordOptimizationStats() { 263 void RecompileJob::RecordOptimizationStats() {
264 Handle<JSFunction> function = info()->closure(); 264 Handle<JSFunction> function = info()->closure();
265 int opt_count = function->shared()->opt_count(); 265 if (!function->IsOptimized()) {
266 function->shared()->set_opt_count(opt_count + 1); 266 // Concurrent recompilation and OSR may race. Increment only once.
267 int opt_count = function->shared()->opt_count();
268 function->shared()->set_opt_count(opt_count + 1);
269 }
267 double ms_creategraph = time_taken_to_create_graph_.InMillisecondsF(); 270 double ms_creategraph = time_taken_to_create_graph_.InMillisecondsF();
268 double ms_optimize = time_taken_to_optimize_.InMillisecondsF(); 271 double ms_optimize = time_taken_to_optimize_.InMillisecondsF();
269 double ms_codegen = time_taken_to_codegen_.InMillisecondsF(); 272 double ms_codegen = time_taken_to_codegen_.InMillisecondsF();
270 if (FLAG_trace_opt) { 273 if (FLAG_trace_opt) {
271 PrintF("[optimizing "); 274 PrintF("[optimizing ");
272 function->ShortPrint(); 275 function->ShortPrint();
273 PrintF(" - took %0.3f, %0.3f, %0.3f ms]\n", ms_creategraph, ms_optimize, 276 PrintF(" - took %0.3f, %0.3f, %0.3f ms]\n", ms_creategraph, ms_optimize,
274 ms_codegen); 277 ms_codegen);
275 } 278 }
276 if (FLAG_trace_opt_stats) { 279 if (FLAG_trace_opt_stats) {
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 AllowHandleDereference allow_deref; 1362 AllowHandleDereference allow_deref;
1360 bool tracing_on = info()->IsStub() 1363 bool tracing_on = info()->IsStub()
1361 ? FLAG_trace_hydrogen_stubs 1364 ? FLAG_trace_hydrogen_stubs
1362 : (FLAG_trace_hydrogen && 1365 : (FLAG_trace_hydrogen &&
1363 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1366 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1364 return (tracing_on && 1367 return (tracing_on &&
1365 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1368 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1366 } 1369 }
1367 1370
1368 } } // namespace v8::internal 1371 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698