| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 } | 502 } |
| 503 | 503 |
| 504 // Set function.prototype and give the prototype a constructor | 504 // Set function.prototype and give the prototype a constructor |
| 505 // property that refers to the function. | 505 // property that refers to the function. |
| 506 SetPrototypeProperty(function, prototype); | 506 SetPrototypeProperty(function, prototype); |
| 507 SetProperty(prototype, Factory::constructor_symbol(), function, DONT_ENUM); | 507 SetProperty(prototype, Factory::constructor_symbol(), function, DONT_ENUM); |
| 508 return function; | 508 return function; |
| 509 } | 509 } |
| 510 | 510 |
| 511 | 511 |
| 512 Handle<Code> Factory::NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, | 512 Handle<Code> Factory::NewCode(const CodeDesc& desc, |
| 513 Code::Flags flags, Handle<Object> self_ref) { | 513 ZoneScopeInfo* sinfo, |
| 514 Code::Flags flags, |
| 515 Handle<Object> self_ref) { |
| 514 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); | 516 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); |
| 515 } | 517 } |
| 516 | 518 |
| 517 | 519 |
| 518 Handle<Code> Factory::CopyCode(Handle<Code> code) { | 520 Handle<Code> Factory::CopyCode(Handle<Code> code) { |
| 519 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); | 521 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); |
| 520 } | 522 } |
| 521 | 523 |
| 522 | 524 |
| 523 static inline Object* DoCopyInsert(DescriptorArray* array, | 525 static inline Object* DoCopyInsert(DescriptorArray* array, |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 Execution::ConfigureInstance(instance, | 900 Execution::ConfigureInstance(instance, |
| 899 instance_template, | 901 instance_template, |
| 900 pending_exception); | 902 pending_exception); |
| 901 } else { | 903 } else { |
| 902 *pending_exception = false; | 904 *pending_exception = false; |
| 903 } | 905 } |
| 904 } | 906 } |
| 905 | 907 |
| 906 | 908 |
| 907 } } // namespace v8::internal | 909 } } // namespace v8::internal |
| OLD | NEW |