OLD | NEW |
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 static bool CompileNative(Isolate* isolate, Vector<const char> name, | 115 static bool CompileNative(Isolate* isolate, Vector<const char> name, |
116 Handle<String> source, int argc, | 116 Handle<String> source, int argc, |
117 Handle<Object> argv[], NativesFlag natives_flag); | 117 Handle<Object> argv[], NativesFlag natives_flag); |
118 static bool CompileBuiltin(Isolate* isolate, int index); | 118 static bool CompileBuiltin(Isolate* isolate, int index); |
119 static bool CompileExperimentalBuiltin(Isolate* isolate, int index); | 119 static bool CompileExperimentalBuiltin(Isolate* isolate, int index); |
120 static bool CompileExtraBuiltin(Isolate* isolate, int index); | 120 static bool CompileExtraBuiltin(Isolate* isolate, int index); |
121 static bool CompileExperimentalExtraBuiltin(Isolate* isolate, int index); | 121 static bool CompileExperimentalExtraBuiltin(Isolate* isolate, int index); |
122 | 122 |
123 static void ExportFromRuntime(Isolate* isolate, Handle<JSObject> container); | 123 static void ExportFromRuntime(Isolate* isolate, Handle<JSObject> container); |
124 static void ExportExperimentalFromRuntime(Isolate* isolate, | |
125 Handle<JSObject> container); | |
126 | 124 |
127 private: | 125 private: |
128 Isolate* isolate_; | 126 Isolate* isolate_; |
129 typedef int NestingCounterType; | 127 typedef int NestingCounterType; |
130 NestingCounterType nesting_; | 128 NestingCounterType nesting_; |
131 SourceCodeCache extensions_cache_; | 129 SourceCodeCache extensions_cache_; |
132 | 130 |
133 friend class BootstrapperActive; | 131 friend class BootstrapperActive; |
134 friend class Isolate; | 132 friend class Isolate; |
135 friend class NativesExternalStringResource; | 133 friend class NativesExternalStringResource; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 173 |
176 private: | 174 private: |
177 const char* data_; | 175 const char* data_; |
178 size_t length_; | 176 size_t length_; |
179 }; | 177 }; |
180 | 178 |
181 } // namespace internal | 179 } // namespace internal |
182 } // namespace v8 | 180 } // namespace v8 |
183 | 181 |
184 #endif // V8_BOOTSTRAPPER_H_ | 182 #endif // V8_BOOTSTRAPPER_H_ |
OLD | NEW |