| 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 // Set function.prototype and give the prototype a constructor | 480 // Set function.prototype and give the prototype a constructor |
| 481 // property that refers to the function. | 481 // property that refers to the function. |
| 482 SetPrototypeProperty(function, prototype); | 482 SetPrototypeProperty(function, prototype); |
| 483 SetProperty(prototype, Factory::constructor_symbol(), function, DONT_ENUM); | 483 SetProperty(prototype, Factory::constructor_symbol(), function, DONT_ENUM); |
| 484 return function; | 484 return function; |
| 485 } | 485 } |
| 486 | 486 |
| 487 | 487 |
| 488 Handle<Code> Factory::NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, | 488 Handle<Code> Factory::NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, |
| 489 Code::Flags flags, Handle<Object> self_ref) { | 489 Code::Flags flags, Handle<Object> self_ref) { |
| 490 CALL_HEAP_FUNCTION(Heap::CreateCode( | 490 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); |
| 491 desc, sinfo, flags, reinterpret_cast<Code**>(self_ref.location())), Code); | |
| 492 } | |
| 493 | |
| 494 Handle<Code> Factory::NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, | |
| 495 Code::Flags flags) { | |
| 496 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, NULL), Code); | |
| 497 } | 491 } |
| 498 | 492 |
| 499 | 493 |
| 500 Handle<Code> Factory::CopyCode(Handle<Code> code) { | 494 Handle<Code> Factory::CopyCode(Handle<Code> code) { |
| 501 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); | 495 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); |
| 502 } | 496 } |
| 503 | 497 |
| 504 | 498 |
| 505 static inline Object* DoCopyInsert(DescriptorArray* array, | 499 static inline Object* DoCopyInsert(DescriptorArray* array, |
| 506 String* key, | 500 String* key, |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 Execution::ConfigureInstance(instance, | 850 Execution::ConfigureInstance(instance, |
| 857 instance_template, | 851 instance_template, |
| 858 pending_exception); | 852 pending_exception); |
| 859 } else { | 853 } else { |
| 860 *pending_exception = false; | 854 *pending_exception = false; |
| 861 } | 855 } |
| 862 } | 856 } |
| 863 | 857 |
| 864 | 858 |
| 865 } } // namespace v8::internal | 859 } } // namespace v8::internal |
| OLD | NEW |