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

Side by Side Diff: src/bootstrapper.h

Issue 6720014: Isolates: Cleanup usage of FACTORY in code stubs and bootstrapper. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Minor edits. Created 9 years, 8 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 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // context. 86 // context.
87 class Bootstrapper { 87 class Bootstrapper {
88 public: 88 public:
89 // Requires: Heap::Setup has been called. 89 // Requires: Heap::Setup has been called.
90 void Initialize(bool create_heap_objects); 90 void Initialize(bool create_heap_objects);
91 void TearDown(); 91 void TearDown();
92 92
93 // Creates a JavaScript Global Context with initial object graph. 93 // Creates a JavaScript Global Context with initial object graph.
94 // The returned value is a global handle casted to V8Environment*. 94 // The returned value is a global handle casted to V8Environment*.
95 Handle<Context> CreateEnvironment( 95 Handle<Context> CreateEnvironment(
96 Isolate* isolate,
96 Handle<Object> global_object, 97 Handle<Object> global_object,
97 v8::Handle<v8::ObjectTemplate> global_template, 98 v8::Handle<v8::ObjectTemplate> global_template,
98 v8::ExtensionConfiguration* extensions); 99 v8::ExtensionConfiguration* extensions);
99 100
100 // Detach the environment from its outer global object. 101 // Detach the environment from its outer global object.
101 void DetachGlobal(Handle<Context> env); 102 void DetachGlobal(Handle<Context> env);
102 103
103 // Reattach an outer global object to an environment. 104 // Reattach an outer global object to an environment.
104 void ReattachGlobal(Handle<Context> env, Handle<Object> global_object); 105 void ReattachGlobal(Handle<Context> env, Handle<Object> global_object);
105 106
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return length_; 177 return length_;
177 } 178 }
178 private: 179 private:
179 const char* data_; 180 const char* data_;
180 size_t length_; 181 size_t length_;
181 }; 182 };
182 183
183 }} // namespace v8::internal 184 }} // namespace v8::internal
184 185
185 #endif // V8_BOOTSTRAPPER_H_ 186 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/bootstrapper.cc » ('j') | src/bootstrapper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698