Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: src/bootstrapper.h

Issue 2807023003: [snapshot] encode resource before serializing. (Closed)
Patch Set: fix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698