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

Side by Side Diff: src/bootstrapper.h

Issue 352173006: Clean up the global object naming madness. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 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
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_BOOTSTRAPPER_H_ 5 #ifndef V8_BOOTSTRAPPER_H_
6 #define V8_BOOTSTRAPPER_H_ 6 #define V8_BOOTSTRAPPER_H_
7 7
8 #include "src/factory.h" 8 #include "src/factory.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 static void InitializeOncePerProcess(); 69 static void InitializeOncePerProcess();
70 static void TearDownExtensions(); 70 static void TearDownExtensions();
71 71
72 // Requires: Heap::SetUp has been called. 72 // Requires: Heap::SetUp has been called.
73 void Initialize(bool create_heap_objects); 73 void Initialize(bool create_heap_objects);
74 void TearDown(); 74 void TearDown();
75 75
76 // Creates a JavaScript Global Context with initial object graph. 76 // Creates a JavaScript Global Context with initial object graph.
77 // The returned value is a global handle casted to V8Environment*. 77 // The returned value is a global handle casted to V8Environment*.
78 Handle<Context> CreateEnvironment( 78 Handle<Context> CreateEnvironment(
79 Handle<Object> global_object, 79 MaybeHandle<JSGlobalProxy> maybe_global_proxy,
80 v8::Handle<v8::ObjectTemplate> global_template, 80 v8::Handle<v8::ObjectTemplate> global_object_template,
81 v8::ExtensionConfiguration* extensions); 81 v8::ExtensionConfiguration* extensions);
82 82
83 // Detach the environment from its outer global object. 83 // Detach the environment from its outer global object.
84 void DetachGlobal(Handle<Context> env); 84 void DetachGlobal(Handle<Context> env);
85 85
86 // Traverses the pointers for memory management. 86 // Traverses the pointers for memory management.
87 void Iterate(ObjectVisitor* v); 87 void Iterate(ObjectVisitor* v);
88 88
89 // Accessor for the native scripts source code. 89 // Accessor for the native scripts source code.
90 Handle<String> NativesSourceLookup(int index); 90 Handle<String> NativesSourceLookup(int index);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual size_t length() const V8_OVERRIDE { return length_; } 162 virtual size_t length() const V8_OVERRIDE { return length_; }
163 163
164 private: 164 private:
165 const char* data_; 165 const char* data_;
166 size_t length_; 166 size_t length_;
167 }; 167 };
168 168
169 }} // namespace v8::internal 169 }} // namespace v8::internal
170 170
171 #endif // V8_BOOTSTRAPPER_H_ 171 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698