| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_NATIVES_H_ | 5 #ifndef V8_NATIVES_H_ |
| 6 #define V8_NATIVES_H_ | 6 #define V8_NATIVES_H_ |
| 7 | 7 |
| 8 #include "src/vector.h" | 8 #include "src/vector.h" |
| 9 | 9 |
| 10 namespace v8 { class StartupData; } // Forward declaration. | 10 namespace v8 { class StartupData; } // Forward declaration. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 static Vector<const char> GetScriptName(int index); | 33 static Vector<const char> GetScriptName(int index); |
| 34 static Vector<const char> GetScriptsSource(); | 34 static Vector<const char> GetScriptsSource(); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 typedef NativesCollection<CORE> Natives; | 37 typedef NativesCollection<CORE> Natives; |
| 38 typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives; | 38 typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives; |
| 39 | 39 |
| 40 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 40 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 41 // Used for reading the natives at runtime. Implementation in natives-empty.cc | 41 // Used for reading the natives at runtime. Implementation in natives-empty.cc |
| 42 void SetNativesFromFile(StartupData* natives_blob); | 42 void SetNativesFromFile(StartupData* natives_blob); |
| 43 void DisposeNatives(); |
| 43 #endif | 44 #endif |
| 44 | 45 |
| 45 } } // namespace v8::internal | 46 } } // namespace v8::internal |
| 46 | 47 |
| 47 #endif // V8_NATIVES_H_ | 48 #endif // V8_NATIVES_H_ |
| OLD | NEW |