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

Side by Side Diff: src/bootstrapper.h

Issue 15564002: Make sure we register extensions only once. Removed unused member variable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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
« no previous file with comments | « src/api.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Script::Type type_; 81 Script::Type type_;
82 FixedArray* cache_; 82 FixedArray* cache_;
83 DISALLOW_COPY_AND_ASSIGN(SourceCodeCache); 83 DISALLOW_COPY_AND_ASSIGN(SourceCodeCache);
84 }; 84 };
85 85
86 86
87 // The Boostrapper is the public interface for creating a JavaScript global 87 // The Boostrapper is the public interface for creating a JavaScript global
88 // context. 88 // context.
89 class Bootstrapper { 89 class Bootstrapper {
90 public: 90 public:
91 static void InitializeOncePerProcess();
92
91 // Requires: Heap::SetUp has been called. 93 // Requires: Heap::SetUp has been called.
92 void Initialize(bool create_heap_objects); 94 void Initialize(bool create_heap_objects);
93 void TearDown(); 95 void TearDown();
94 96
95 // Creates a JavaScript Global Context with initial object graph. 97 // Creates a JavaScript Global Context with initial object graph.
96 // The returned value is a global handle casted to V8Environment*. 98 // The returned value is a global handle casted to V8Environment*.
97 Handle<Context> CreateEnvironment( 99 Handle<Context> CreateEnvironment(
98 Handle<Object> global_object, 100 Handle<Object> global_object,
99 v8::Handle<v8::ObjectTemplate> global_template, 101 v8::Handle<v8::ObjectTemplate> global_template,
100 v8::ExtensionConfiguration* extensions); 102 v8::ExtensionConfiguration* extensions);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 return length_; 185 return length_;
184 } 186 }
185 private: 187 private:
186 const char* data_; 188 const char* data_;
187 size_t length_; 189 size_t length_;
188 }; 190 };
189 191
190 }} // namespace v8::internal 192 }} // namespace v8::internal
191 193
192 #endif // V8_BOOTSTRAPPER_H_ 194 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « src/api.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698