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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void FreeThreadResources(); | 102 void FreeThreadResources(); |
103 | 103 |
104 // Used for new context creation. | 104 // Used for new context creation. |
105 bool InstallExtensions(Handle<Context> native_context, | 105 bool InstallExtensions(Handle<Context> native_context, |
106 v8::ExtensionConfiguration* extensions); | 106 v8::ExtensionConfiguration* extensions); |
107 | 107 |
108 SourceCodeCache* extensions_cache() { return &extensions_cache_; } | 108 SourceCodeCache* extensions_cache() { return &extensions_cache_; } |
109 | 109 |
110 static bool CompileNative(Isolate* isolate, Vector<const char> name, | 110 static bool CompileNative(Isolate* isolate, Vector<const char> name, |
111 Handle<String> source, int argc, | 111 Handle<String> source, int argc, |
112 Handle<Object> argv[]); | 112 Handle<Object> argv[], NativesFlag natives_flag); |
113 static bool CompileBuiltin(Isolate* isolate, int index); | 113 static bool CompileBuiltin(Isolate* isolate, int index); |
114 static bool CompileExperimentalBuiltin(Isolate* isolate, int index); | 114 static bool CompileExperimentalBuiltin(Isolate* isolate, int index); |
115 static bool CompileExtraBuiltin(Isolate* isolate, int index); | 115 static bool CompileExtraBuiltin(Isolate* isolate, int index); |
116 static bool CompileExperimentalExtraBuiltin(Isolate* isolate, int index); | 116 static bool CompileExperimentalExtraBuiltin(Isolate* isolate, int index); |
117 | 117 |
118 static void ExportFromRuntime(Isolate* isolate, Handle<JSObject> container); | 118 static void ExportFromRuntime(Isolate* isolate, Handle<JSObject> container); |
119 static void ExportExperimentalFromRuntime(Isolate* isolate, | 119 static void ExportExperimentalFromRuntime(Isolate* isolate, |
120 Handle<JSObject> container); | 120 Handle<JSObject> container); |
121 | 121 |
122 private: | 122 private: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 private: | 170 private: |
171 const char* data_; | 171 const char* data_; |
172 size_t length_; | 172 size_t length_; |
173 }; | 173 }; |
174 | 174 |
175 } // namespace internal | 175 } // namespace internal |
176 } // namespace v8 | 176 } // namespace v8 |
177 | 177 |
178 #endif // V8_BOOTSTRAPPER_H_ | 178 #endif // V8_BOOTSTRAPPER_H_ |
OLD | NEW |