OLD | NEW |
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 Loading... |
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 // Requires: Heap::Setup has been called. | 91 // Requires: Heap::SetUp has been called. |
92 void Initialize(bool create_heap_objects); | 92 void Initialize(bool create_heap_objects); |
93 void TearDown(); | 93 void TearDown(); |
94 | 94 |
95 // Creates a JavaScript Global Context with initial object graph. | 95 // Creates a JavaScript Global Context with initial object graph. |
96 // The returned value is a global handle casted to V8Environment*. | 96 // The returned value is a global handle casted to V8Environment*. |
97 Handle<Context> CreateEnvironment( | 97 Handle<Context> CreateEnvironment( |
98 Isolate* isolate, | 98 Isolate* isolate, |
99 Handle<Object> global_object, | 99 Handle<Object> global_object, |
100 v8::Handle<v8::ObjectTemplate> global_template, | 100 v8::Handle<v8::ObjectTemplate> global_template, |
101 v8::ExtensionConfiguration* extensions); | 101 v8::ExtensionConfiguration* extensions); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return length_; | 180 return length_; |
181 } | 181 } |
182 private: | 182 private: |
183 const char* data_; | 183 const char* data_; |
184 size_t length_; | 184 size_t length_; |
185 }; | 185 }; |
186 | 186 |
187 }} // namespace v8::internal | 187 }} // namespace v8::internal |
188 | 188 |
189 #endif // V8_BOOTSTRAPPER_H_ | 189 #endif // V8_BOOTSTRAPPER_H_ |
OLD | NEW |