OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 Handle<Object> self_ref) { | 553 Handle<Object> self_ref) { |
554 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); | 554 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); |
555 } | 555 } |
556 | 556 |
557 | 557 |
558 Handle<Code> Factory::CopyCode(Handle<Code> code) { | 558 Handle<Code> Factory::CopyCode(Handle<Code> code) { |
559 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); | 559 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); |
560 } | 560 } |
561 | 561 |
562 | 562 |
| 563 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { |
| 564 CALL_HEAP_FUNCTION(Heap::CopyCode(*code, reloc_info), Code); |
| 565 } |
| 566 |
| 567 |
563 static inline Object* DoCopyInsert(DescriptorArray* array, | 568 static inline Object* DoCopyInsert(DescriptorArray* array, |
564 String* key, | 569 String* key, |
565 Object* value, | 570 Object* value, |
566 PropertyAttributes attributes) { | 571 PropertyAttributes attributes) { |
567 CallbacksDescriptor desc(key, value, attributes); | 572 CallbacksDescriptor desc(key, value, attributes); |
568 Object* obj = array->CopyInsert(&desc, REMOVE_TRANSITIONS); | 573 Object* obj = array->CopyInsert(&desc, REMOVE_TRANSITIONS); |
569 return obj; | 574 return obj; |
570 } | 575 } |
571 | 576 |
572 | 577 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 Execution::ConfigureInstance(instance, | 962 Execution::ConfigureInstance(instance, |
958 instance_template, | 963 instance_template, |
959 pending_exception); | 964 pending_exception); |
960 } else { | 965 } else { |
961 *pending_exception = false; | 966 *pending_exception = false; |
962 } | 967 } |
963 } | 968 } |
964 | 969 |
965 | 970 |
966 } } // namespace v8::internal | 971 } } // namespace v8::internal |
OLD | NEW |