OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 3686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3697 proxy_constructor->set_needs_access_check( | 3697 proxy_constructor->set_needs_access_check( |
3698 global_constructor->needs_access_check()); | 3698 global_constructor->needs_access_check()); |
3699 global_constructor->set_needs_access_check(false); | 3699 global_constructor->set_needs_access_check(false); |
3700 global_constructor->set_access_check_info( | 3700 global_constructor->set_access_check_info( |
3701 isolate->heap()->undefined_value()); | 3701 isolate->heap()->undefined_value()); |
3702 } | 3702 } |
3703 } | 3703 } |
3704 | 3704 |
3705 // Create the environment. | 3705 // Create the environment. |
3706 env = isolate->bootstrapper()->CreateEnvironment( | 3706 env = isolate->bootstrapper()->CreateEnvironment( |
| 3707 isolate, |
3707 Utils::OpenHandle(*global_object), | 3708 Utils::OpenHandle(*global_object), |
3708 proxy_template, | 3709 proxy_template, |
3709 extensions); | 3710 extensions); |
3710 | 3711 |
3711 // Restore the access check info on the global template. | 3712 // Restore the access check info on the global template. |
3712 if (!global_template.IsEmpty()) { | 3713 if (!global_template.IsEmpty()) { |
3713 ASSERT(!global_constructor.is_null()); | 3714 ASSERT(!global_constructor.is_null()); |
3714 ASSERT(!proxy_constructor.is_null()); | 3715 ASSERT(!proxy_constructor.is_null()); |
3715 global_constructor->set_access_check_info( | 3716 global_constructor->set_access_check_info( |
3716 proxy_constructor->access_check_info()); | 3717 proxy_constructor->access_check_info()); |
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5669 | 5670 |
5670 | 5671 |
5671 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 5672 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
5672 HandleScopeImplementer* scope_implementer = | 5673 HandleScopeImplementer* scope_implementer = |
5673 reinterpret_cast<HandleScopeImplementer*>(storage); | 5674 reinterpret_cast<HandleScopeImplementer*>(storage); |
5674 scope_implementer->IterateThis(v); | 5675 scope_implementer->IterateThis(v); |
5675 return storage + ArchiveSpacePerThread(); | 5676 return storage + ArchiveSpacePerThread(); |
5676 } | 5677 } |
5677 | 5678 |
5678 } } // namespace v8::internal | 5679 } } // namespace v8::internal |
OLD | NEW |