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

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: 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
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_concurrent_crankshaft)
572 result->CompileConcurrently();
573 else
574 result->MarkForLazyRecompilation();
572 } 575 }
573 return result; 576 return result;
574 } 577 }
575 578
576 579
577 Handle<Object> Factory::NewNumber(double value, 580 Handle<Object> Factory::NewNumber(double value,
578 PretenureFlag pretenure) { 581 PretenureFlag pretenure) {
579 CALL_HEAP_FUNCTION( 582 CALL_HEAP_FUNCTION(
580 isolate(), 583 isolate(),
581 isolate()->heap()->NumberFromDouble(value, pretenure), Object); 584 isolate()->heap()->NumberFromDouble(value, pretenure), Object);
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 1443
1441 1444
1442 Handle<Object> Factory::ToBoolean(bool value) { 1445 Handle<Object> Factory::ToBoolean(bool value) {
1443 return Handle<Object>(value 1446 return Handle<Object>(value
1444 ? isolate()->heap()->true_value() 1447 ? isolate()->heap()->true_value()
1445 : isolate()->heap()->false_value()); 1448 : isolate()->heap()->false_value());
1446 } 1449 }
1447 1450
1448 1451
1449 } } // namespace v8::internal 1452 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698