| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 // Allocate the native context FixedArray first and then patch the | 666 // Allocate the native context FixedArray first and then patch the |
| 667 // closure and extension object later (we need the empty function | 667 // closure and extension object later (we need the empty function |
| 668 // and the global object, but in order to create those, we need the | 668 // and the global object, but in order to create those, we need the |
| 669 // native context). | 669 // native context). |
| 670 native_context_ = factory()->NewNativeContext(); | 670 native_context_ = factory()->NewNativeContext(); |
| 671 AddToWeakNativeContextList(*native_context()); | 671 AddToWeakNativeContextList(*native_context()); |
| 672 isolate()->set_context(*native_context()); | 672 isolate()->set_context(*native_context()); |
| 673 | 673 |
| 674 // Allocate the message listeners object. | 674 // Allocate the message listeners object. |
| 675 { | 675 { |
| 676 v8::NeanderArray listeners; | 676 v8::NeanderArray listeners(isolate()); |
| 677 native_context()->set_message_listeners(*listeners.value()); | 677 native_context()->set_message_listeners(*listeners.value()); |
| 678 } | 678 } |
| 679 } | 679 } |
| 680 | 680 |
| 681 | 681 |
| 682 Handle<JSGlobalProxy> Genesis::CreateNewGlobals( | 682 Handle<JSGlobalProxy> Genesis::CreateNewGlobals( |
| 683 v8::Handle<v8::ObjectTemplate> global_template, | 683 v8::Handle<v8::ObjectTemplate> global_template, |
| 684 Handle<Object> global_object, | 684 Handle<Object> global_object, |
| 685 Handle<GlobalObject>* inner_global_out) { | 685 Handle<GlobalObject>* inner_global_out) { |
| 686 // The argument global_template aka data is an ObjectTemplateInfo. | 686 // The argument global_template aka data is an ObjectTemplateInfo. |
| (...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2704 return from + sizeof(NestingCounterType); | 2704 return from + sizeof(NestingCounterType); |
| 2705 } | 2705 } |
| 2706 | 2706 |
| 2707 | 2707 |
| 2708 // Called when the top-level V8 mutex is destroyed. | 2708 // Called when the top-level V8 mutex is destroyed. |
| 2709 void Bootstrapper::FreeThreadResources() { | 2709 void Bootstrapper::FreeThreadResources() { |
| 2710 ASSERT(!IsActive()); | 2710 ASSERT(!IsActive()); |
| 2711 } | 2711 } |
| 2712 | 2712 |
| 2713 } } // namespace v8::internal | 2713 } } // namespace v8::internal |
| OLD | NEW |