| Index: src/bootstrapper.h
|
| diff --git a/src/bootstrapper.h b/src/bootstrapper.h
|
| index 9543897b3153f10ddde6964fa707f2cd6a77894b..b549a2170244b1fcd4c9a577c64454366805c888 100644
|
| --- a/src/bootstrapper.h
|
| +++ b/src/bootstrapper.h
|
| @@ -6,6 +6,7 @@
|
| #define V8_BOOTSTRAPPER_H_
|
|
|
| #include "src/factory.h"
|
| +#include "src/snapshot/natives.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -96,8 +97,7 @@ class Bootstrapper final {
|
| void Iterate(ObjectVisitor* v);
|
|
|
| // Accessor for the native scripts source code.
|
| - template <class Source>
|
| - Handle<String> SourceLookup(int index);
|
| + Handle<String> GetNativeSource(NativeType type, int index);
|
|
|
| // Tells whether bootstrapping is active.
|
| bool IsActive() const { return nesting_ != 0; }
|
| @@ -163,20 +163,6 @@ class BootstrapperActive final BASE_EMBEDDED {
|
| DISALLOW_COPY_AND_ASSIGN(BootstrapperActive);
|
| };
|
|
|
| -
|
| -class NativesExternalStringResource final
|
| - : public v8::String::ExternalOneByteStringResource {
|
| - public:
|
| - NativesExternalStringResource(const char* source, size_t length)
|
| - : data_(source), length_(length) {}
|
| - const char* data() const override { return data_; }
|
| - size_t length() const override { return length_; }
|
| -
|
| - private:
|
| - const char* data_;
|
| - size_t length_;
|
| -};
|
| -
|
| } // namespace internal
|
| } // namespace v8
|
|
|
|
|