| OLD | NEW |
| 1 // Copyright 2012 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 Handle<JSObject> Factory::NewExternal(void* value) { | 909 Handle<JSObject> Factory::NewExternal(void* value) { |
| 910 CALL_HEAP_FUNCTION(isolate(), | 910 CALL_HEAP_FUNCTION(isolate(), |
| 911 isolate()->heap()->AllocateExternal(value), | 911 isolate()->heap()->AllocateExternal(value), |
| 912 JSObject); | 912 JSObject); |
| 913 } | 913 } |
| 914 | 914 |
| 915 | 915 |
| 916 Handle<Code> Factory::NewCode(const CodeDesc& desc, | 916 Handle<Code> Factory::NewCode(const CodeDesc& desc, |
| 917 Code::Flags flags, | 917 Code::Flags flags, |
| 918 Handle<Object> self_ref, | 918 Handle<Object> self_ref, |
| 919 bool immovable) { | 919 bool immovable, |
| 920 bool crankshafted) { |
| 920 CALL_HEAP_FUNCTION(isolate(), | 921 CALL_HEAP_FUNCTION(isolate(), |
| 921 isolate()->heap()->CreateCode( | 922 isolate()->heap()->CreateCode( |
| 922 desc, flags, self_ref, immovable), | 923 desc, flags, self_ref, immovable, crankshafted), |
| 923 Code); | 924 Code); |
| 924 } | 925 } |
| 925 | 926 |
| 926 | 927 |
| 927 Handle<Code> Factory::CopyCode(Handle<Code> code) { | 928 Handle<Code> Factory::CopyCode(Handle<Code> code) { |
| 928 CALL_HEAP_FUNCTION(isolate(), | 929 CALL_HEAP_FUNCTION(isolate(), |
| 929 isolate()->heap()->CopyCode(*code), | 930 isolate()->heap()->CopyCode(*code), |
| 930 Code); | 931 Code); |
| 931 } | 932 } |
| 932 | 933 |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1483 return Handle<Object>::null(); | 1484 return Handle<Object>::null(); |
| 1484 } | 1485 } |
| 1485 | 1486 |
| 1486 | 1487 |
| 1487 Handle<Object> Factory::ToBoolean(bool value) { | 1488 Handle<Object> Factory::ToBoolean(bool value) { |
| 1488 return value ? true_value() : false_value(); | 1489 return value ? true_value() : false_value(); |
| 1489 } | 1490 } |
| 1490 | 1491 |
| 1491 | 1492 |
| 1492 } } // namespace v8::internal | 1493 } } // namespace v8::internal |
| OLD | NEW |