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