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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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<JSObject> receiver, Handle<String> source, |
114 int argc, Handle<Object> argv[]); | 114 int argc, 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 CompileCodeStubBuiltin(Isolate* isolate, int index); | 118 static bool CompileCodeStubBuiltin(Isolate* isolate, int index); |
119 static bool InstallCodeStubNatives(Isolate* isolate); | 119 static bool InstallCodeStubNatives(Isolate* isolate); |
120 | 120 |
| 121 static void ImportNatives(Isolate* isolate, Handle<JSObject> container); |
| 122 static void ImportExperimentalNatives(Isolate* isolate, |
| 123 Handle<JSObject> container); |
| 124 |
121 private: | 125 private: |
122 Isolate* isolate_; | 126 Isolate* isolate_; |
123 typedef int NestingCounterType; | 127 typedef int NestingCounterType; |
124 NestingCounterType nesting_; | 128 NestingCounterType nesting_; |
125 SourceCodeCache extensions_cache_; | 129 SourceCodeCache extensions_cache_; |
126 | 130 |
127 friend class BootstrapperActive; | 131 friend class BootstrapperActive; |
128 friend class Isolate; | 132 friend class Isolate; |
129 friend class NativesExternalStringResource; | 133 friend class NativesExternalStringResource; |
130 | 134 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 size_t length() const override { return length_; } | 171 size_t length() const override { return length_; } |
168 | 172 |
169 private: | 173 private: |
170 const char* data_; | 174 const char* data_; |
171 size_t length_; | 175 size_t length_; |
172 }; | 176 }; |
173 | 177 |
174 }} // namespace v8::internal | 178 }} // namespace v8::internal |
175 | 179 |
176 #endif // V8_BOOTSTRAPPER_H_ | 180 #endif // V8_BOOTSTRAPPER_H_ |
OLD | NEW |