| 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 result->MarkForLazyRecompilation(); | 676 if (FLAG_parallel_recompilation) { |
| 677 result->MarkForParallelRecompilation(); |
| 678 } else { |
| 679 result->MarkForLazyRecompilation(); |
| 680 } |
| 677 } | 681 } |
| 678 return result; | 682 return result; |
| 679 } | 683 } |
| 680 | 684 |
| 681 | 685 |
| 682 Handle<Object> Factory::NewNumber(double value, | 686 Handle<Object> Factory::NewNumber(double value, |
| 683 PretenureFlag pretenure) { | 687 PretenureFlag pretenure) { |
| 684 CALL_HEAP_FUNCTION( | 688 CALL_HEAP_FUNCTION( |
| 685 isolate(), | 689 isolate(), |
| 686 isolate()->heap()->NumberFromDouble(value, pretenure), Object); | 690 isolate()->heap()->NumberFromDouble(value, pretenure), Object); |
| (...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 return Handle<Object>::null(); | 1615 return Handle<Object>::null(); |
| 1612 } | 1616 } |
| 1613 | 1617 |
| 1614 | 1618 |
| 1615 Handle<Object> Factory::ToBoolean(bool value) { | 1619 Handle<Object> Factory::ToBoolean(bool value) { |
| 1616 return value ? true_value() : false_value(); | 1620 return value ? true_value() : false_value(); |
| 1617 } | 1621 } |
| 1618 | 1622 |
| 1619 | 1623 |
| 1620 } } // namespace v8::internal | 1624 } } // namespace v8::internal |
| OLD | NEW |