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

Side by Side Diff: src/factory.cc

Issue 10417010: Run Crankshaft on a separate thread. (Closed) Base URL: https://chromiumcodereview.appspot.com/10387157
Patch Set: Set optimize_in_parallel to false by default. Created 8 years, 7 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
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 context->global_context()); 561 context->global_context());
562 } 562 }
563 result->set_literals(*literals); 563 result->set_literals(*literals);
564 } 564 }
565 if (V8::UseCrankshaft() && 565 if (V8::UseCrankshaft() &&
566 FLAG_always_opt && 566 FLAG_always_opt &&
567 result->is_compiled() && 567 result->is_compiled() &&
568 !function_info->is_toplevel() && 568 !function_info->is_toplevel() &&
569 function_info->allows_lazy_compilation() && 569 function_info->allows_lazy_compilation() &&
570 !function_info->optimization_disabled()) { 570 !function_info->optimization_disabled()) {
571 result->MarkForLazyRecompilation(); 571 if (FLAG_optimize_in_parallel) {
572 result->RecompileInParallel();
573 } else {
574 result->MarkForLazyRecompilation();
575 }
572 } 576 }
573 return result; 577 return result;
574 } 578 }
575 579
576 580
577 Handle<Object> Factory::NewNumber(double value, 581 Handle<Object> Factory::NewNumber(double value,
578 PretenureFlag pretenure) { 582 PretenureFlag pretenure) {
579 CALL_HEAP_FUNCTION( 583 CALL_HEAP_FUNCTION(
580 isolate(), 584 isolate(),
581 isolate()->heap()->NumberFromDouble(value, pretenure), Object); 585 isolate()->heap()->NumberFromDouble(value, pretenure), Object);
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 } 1443 }
1440 1444
1441 1445
1442 Handle<Object> Factory::ToBoolean(bool value) { 1446 Handle<Object> Factory::ToBoolean(bool value) {
1443 return Handle<Object>(value 1447 return Handle<Object>(value
1444 ? isolate()->heap()->true_value() 1448 ? isolate()->heap()->true_value()
1445 : isolate()->heap()->false_value()); 1449 : isolate()->heap()->false_value());
1446 } 1450 }
1447 1451
1448 1452
1453 void Factory::CompileJSFunction(Handle<JSFunction> function) {
1454 CALL_HEAP_FUNCTION_VOID(isolate(),
1455 Runtime::CompileJSFunction(isolate(), function));
1456 }
1457
1458
1449 } } // namespace v8::internal 1459 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698