| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 function->shared()->set_code(*code); | 598 function->shared()->set_code(*code); |
| 599 function->set_code(*code); | 599 function->set_code(*code); |
| 600 ASSERT(!function->has_initial_map()); | 600 ASSERT(!function->has_initial_map()); |
| 601 ASSERT(!function->has_prototype()); | 601 ASSERT(!function->has_prototype()); |
| 602 return function; | 602 return function; |
| 603 } | 603 } |
| 604 | 604 |
| 605 | 605 |
| 606 Handle<Code> Factory::NewCode(const CodeDesc& desc, | 606 Handle<Code> Factory::NewCode(const CodeDesc& desc, |
| 607 Code::Flags flags, | 607 Code::Flags flags, |
| 608 Handle<Object> self_ref) { | 608 Handle<Object> self_ref, |
| 609 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, flags, self_ref), Code); | 609 bool immovable) { |
| 610 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, flags, self_ref, immovable), Code); |
| 610 } | 611 } |
| 611 | 612 |
| 612 | 613 |
| 613 Handle<Code> Factory::CopyCode(Handle<Code> code) { | 614 Handle<Code> Factory::CopyCode(Handle<Code> code) { |
| 614 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); | 615 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); |
| 615 } | 616 } |
| 616 | 617 |
| 617 | 618 |
| 618 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { | 619 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { |
| 619 CALL_HEAP_FUNCTION(Heap::CopyCode(*code, reloc_info), Code); | 620 CALL_HEAP_FUNCTION(Heap::CopyCode(*code, reloc_info), Code); |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 Execution::ConfigureInstance(instance, | 1079 Execution::ConfigureInstance(instance, |
| 1079 instance_template, | 1080 instance_template, |
| 1080 pending_exception); | 1081 pending_exception); |
| 1081 } else { | 1082 } else { |
| 1082 *pending_exception = false; | 1083 *pending_exception = false; |
| 1083 } | 1084 } |
| 1084 } | 1085 } |
| 1085 | 1086 |
| 1086 | 1087 |
| 1087 } } // namespace v8::internal | 1088 } } // namespace v8::internal |
| OLD | NEW |