OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 return result; | 666 return result; |
667 } | 667 } |
668 | 668 |
669 if (V8::UseCrankshaft() && | 669 if (V8::UseCrankshaft() && |
670 FLAG_always_opt && | 670 FLAG_always_opt && |
671 result->is_compiled() && | 671 result->is_compiled() && |
672 !function_info->is_toplevel() && | 672 !function_info->is_toplevel() && |
673 function_info->allows_lazy_compilation() && | 673 function_info->allows_lazy_compilation() && |
674 !function_info->optimization_disabled() && | 674 !function_info->optimization_disabled() && |
675 !isolate()->DebuggerHasBreakPoints()) { | 675 !isolate()->DebuggerHasBreakPoints()) { |
676 if (FLAG_parallel_recompilation) { | 676 result->MarkForLazyRecompilation(); |
677 result->MarkForParallelRecompilation(); | |
678 } else { | |
679 result->MarkForLazyRecompilation(); | |
680 } | |
681 } | 677 } |
682 return result; | 678 return result; |
683 } | 679 } |
684 | 680 |
685 | 681 |
686 Handle<Object> Factory::NewNumber(double value, | 682 Handle<Object> Factory::NewNumber(double value, |
687 PretenureFlag pretenure) { | 683 PretenureFlag pretenure) { |
688 CALL_HEAP_FUNCTION( | 684 CALL_HEAP_FUNCTION( |
689 isolate(), | 685 isolate(), |
690 isolate()->heap()->NumberFromDouble(value, pretenure), Object); | 686 isolate()->heap()->NumberFromDouble(value, pretenure), Object); |
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 return Handle<Object>::null(); | 1611 return Handle<Object>::null(); |
1616 } | 1612 } |
1617 | 1613 |
1618 | 1614 |
1619 Handle<Object> Factory::ToBoolean(bool value) { | 1615 Handle<Object> Factory::ToBoolean(bool value) { |
1620 return value ? true_value() : false_value(); | 1616 return value ? true_value() : false_value(); |
1621 } | 1617 } |
1622 | 1618 |
1623 | 1619 |
1624 } } // namespace v8::internal | 1620 } } // namespace v8::internal |
OLD | NEW |