Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: src/bootstrapper.cc

Issue 7230047: Remove the fcontext field from all contexts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 } 807 }
808 808
809 809
810 // This is only called if we are not using snapshots. The equivalent 810 // This is only called if we are not using snapshots. The equivalent
811 // work in the snapshot case is done in HookUpInnerGlobal. 811 // work in the snapshot case is done in HookUpInnerGlobal.
812 void Genesis::InitializeGlobal(Handle<GlobalObject> inner_global, 812 void Genesis::InitializeGlobal(Handle<GlobalObject> inner_global,
813 Handle<JSFunction> empty_function) { 813 Handle<JSFunction> empty_function) {
814 // --- G l o b a l C o n t e x t --- 814 // --- G l o b a l C o n t e x t ---
815 // Use the empty function as closure (no scope info). 815 // Use the empty function as closure (no scope info).
816 global_context()->set_closure(*empty_function); 816 global_context()->set_closure(*empty_function);
817 global_context()->set_fcontext(*global_context());
818 global_context()->set_previous(NULL); 817 global_context()->set_previous(NULL);
819 // Set extension and global object. 818 // Set extension and global object.
820 global_context()->set_extension(*inner_global); 819 global_context()->set_extension(*inner_global);
821 global_context()->set_global(*inner_global); 820 global_context()->set_global(*inner_global);
822 // Security setup: Set the security token of the global object to 821 // Security setup: Set the security token of the global object to
823 // its the inner global. This makes the security check between two 822 // its the inner global. This makes the security check between two
824 // different contexts fail by default even in case of global 823 // different contexts fail by default even in case of global
825 // object reinitialization. 824 // object reinitialization.
826 global_context()->set_security_token(*inner_global); 825 global_context()->set_security_token(*inner_global);
827 826
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 return from + sizeof(NestingCounterType); 2197 return from + sizeof(NestingCounterType);
2199 } 2198 }
2200 2199
2201 2200
2202 // Called when the top-level V8 mutex is destroyed. 2201 // Called when the top-level V8 mutex is destroyed.
2203 void Bootstrapper::FreeThreadResources() { 2202 void Bootstrapper::FreeThreadResources() {
2204 ASSERT(!IsActive()); 2203 ASSERT(!IsActive());
2205 } 2204 }
2206 2205
2207 } } // namespace v8::internal 2206 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698