| 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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 CALL_HEAP_FUNCTION(isolate(), | 1008 CALL_HEAP_FUNCTION(isolate(), |
| 1009 isolate()->heap()->AllocateExternal(value), | 1009 isolate()->heap()->AllocateExternal(value), |
| 1010 JSObject); | 1010 JSObject); |
| 1011 } | 1011 } |
| 1012 | 1012 |
| 1013 | 1013 |
| 1014 Handle<Code> Factory::NewCode(const CodeDesc& desc, | 1014 Handle<Code> Factory::NewCode(const CodeDesc& desc, |
| 1015 Code::Flags flags, | 1015 Code::Flags flags, |
| 1016 Handle<Object> self_ref, | 1016 Handle<Object> self_ref, |
| 1017 bool immovable, | 1017 bool immovable, |
| 1018 bool crankshafted) { | 1018 bool crankshafted, |
| 1019 int prologue_offset) { |
| 1019 CALL_HEAP_FUNCTION(isolate(), | 1020 CALL_HEAP_FUNCTION(isolate(), |
| 1020 isolate()->heap()->CreateCode( | 1021 isolate()->heap()->CreateCode( |
| 1021 desc, flags, self_ref, immovable, crankshafted), | 1022 desc, flags, self_ref, immovable, crankshafted, |
| 1023 prologue_offset), |
| 1022 Code); | 1024 Code); |
| 1023 } | 1025 } |
| 1024 | 1026 |
| 1025 | 1027 |
| 1026 Handle<Code> Factory::CopyCode(Handle<Code> code) { | 1028 Handle<Code> Factory::CopyCode(Handle<Code> code) { |
| 1027 CALL_HEAP_FUNCTION(isolate(), | 1029 CALL_HEAP_FUNCTION(isolate(), |
| 1028 isolate()->heap()->CopyCode(*code), | 1030 isolate()->heap()->CopyCode(*code), |
| 1029 Code); | 1031 Code); |
| 1030 } | 1032 } |
| 1031 | 1033 |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1739 return Handle<Object>::null(); | 1741 return Handle<Object>::null(); |
| 1740 } | 1742 } |
| 1741 | 1743 |
| 1742 | 1744 |
| 1743 Handle<Object> Factory::ToBoolean(bool value) { | 1745 Handle<Object> Factory::ToBoolean(bool value) { |
| 1744 return value ? true_value() : false_value(); | 1746 return value ? true_value() : false_value(); |
| 1745 } | 1747 } |
| 1746 | 1748 |
| 1747 | 1749 |
| 1748 } } // namespace v8::internal | 1750 } } // namespace v8::internal |
| OLD | NEW |