| 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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 Handle<Object> self_ref) { | 546 Handle<Object> self_ref) { |
| 547 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); | 547 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); |
| 548 } | 548 } |
| 549 | 549 |
| 550 | 550 |
| 551 Handle<Code> Factory::CopyCode(Handle<Code> code) { | 551 Handle<Code> Factory::CopyCode(Handle<Code> code) { |
| 552 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); | 552 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); |
| 553 } | 553 } |
| 554 | 554 |
| 555 | 555 |
| 556 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { | 556 Handle<Code> Factory::AddPatchToCode(Handle<Code> code, Handle<Code> patch) { |
| 557 CALL_HEAP_FUNCTION(Heap::CopyCode(*code, reloc_info), Code); | 557 CALL_HEAP_FUNCTION(Heap::AddPatchToCode(*code, *patch), Code); |
| 558 } | 558 } |
| 559 | 559 |
| 560 | 560 |
| 561 |
| 561 static inline Object* DoCopyInsert(DescriptorArray* array, | 562 static inline Object* DoCopyInsert(DescriptorArray* array, |
| 562 String* key, | 563 String* key, |
| 563 Object* value, | 564 Object* value, |
| 564 PropertyAttributes attributes) { | 565 PropertyAttributes attributes) { |
| 565 CallbacksDescriptor desc(key, value, attributes); | 566 CallbacksDescriptor desc(key, value, attributes); |
| 566 Object* obj = array->CopyInsert(&desc, REMOVE_TRANSITIONS); | 567 Object* obj = array->CopyInsert(&desc, REMOVE_TRANSITIONS); |
| 567 return obj; | 568 return obj; |
| 568 } | 569 } |
| 569 | 570 |
| 570 | 571 |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 Execution::ConfigureInstance(instance, | 990 Execution::ConfigureInstance(instance, |
| 990 instance_template, | 991 instance_template, |
| 991 pending_exception); | 992 pending_exception); |
| 992 } else { | 993 } else { |
| 993 *pending_exception = false; | 994 *pending_exception = false; |
| 994 } | 995 } |
| 995 } | 996 } |
| 996 | 997 |
| 997 | 998 |
| 998 } } // namespace v8::internal | 999 } } // namespace v8::internal |
| OLD | NEW |