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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 Handle<JSObject> Factory::NewExternal(void* value) { | 979 Handle<JSObject> Factory::NewExternal(void* value) { |
980 CALL_HEAP_FUNCTION(isolate(), | 980 CALL_HEAP_FUNCTION(isolate(), |
981 isolate()->heap()->AllocateExternal(value), | 981 isolate()->heap()->AllocateExternal(value), |
982 JSObject); | 982 JSObject); |
983 } | 983 } |
984 | 984 |
985 | 985 |
986 Handle<Code> Factory::NewCode(const CodeDesc& desc, | 986 Handle<Code> Factory::NewCode(const CodeDesc& desc, |
987 Code::Flags flags, | 987 Code::Flags flags, |
988 Handle<Object> self_ref, | 988 Handle<Object> self_ref, |
| 989 int prologue_offset, |
989 bool immovable, | 990 bool immovable, |
990 bool crankshafted) { | 991 bool crankshafted) { |
991 CALL_HEAP_FUNCTION(isolate(), | 992 CALL_HEAP_FUNCTION(isolate(), |
992 isolate()->heap()->CreateCode( | 993 isolate()->heap()->CreateCode( |
993 desc, flags, self_ref, immovable, crankshafted), | 994 desc, flags, self_ref, prologue_offset, immovable, |
| 995 crankshafted), |
994 Code); | 996 Code); |
995 } | 997 } |
996 | 998 |
997 | 999 |
998 Handle<Code> Factory::CopyCode(Handle<Code> code) { | 1000 Handle<Code> Factory::CopyCode(Handle<Code> code) { |
999 CALL_HEAP_FUNCTION(isolate(), | 1001 CALL_HEAP_FUNCTION(isolate(), |
1000 isolate()->heap()->CopyCode(*code), | 1002 isolate()->heap()->CopyCode(*code), |
1001 Code); | 1003 Code); |
1002 } | 1004 } |
1003 | 1005 |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 return Handle<Object>::null(); | 1648 return Handle<Object>::null(); |
1647 } | 1649 } |
1648 | 1650 |
1649 | 1651 |
1650 Handle<Object> Factory::ToBoolean(bool value) { | 1652 Handle<Object> Factory::ToBoolean(bool value) { |
1651 return value ? true_value() : false_value(); | 1653 return value ? true_value() : false_value(); |
1652 } | 1654 } |
1653 | 1655 |
1654 | 1656 |
1655 } } // namespace v8::internal | 1657 } } // namespace v8::internal |
OLD | NEW |