| 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |