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

Unified Diff: src/bz2-decompress.h

Issue 7066048: Compress sources of JS libraries in addition to the snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed Created 9 years, 6 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
Index: src/bz2-decompress.h
diff --git a/src/natives.h b/src/bz2-decompress.h
similarity index 60%
copy from src/natives.h
copy to src/bz2-decompress.h
index ce90eac24878a6004db09bc1e35c67e0a6d2e3db..d3b9af859f02ec1d7f911326fc3c66c82796a474 100644
--- a/src/natives.h
+++ b/src/bz2-decompress.h
@@ -25,40 +25,17 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef V8_NATIVES_H_
-#define V8_NATIVES_H_
+#ifndef V8_BZ2_DECOMPRESS_H_
+#define V8_BZ2_DECOMPRESS_H_
-namespace v8 {
-namespace internal {
-
-typedef bool (*NativeSourceCallback)(Vector<const char> name,
- Vector<const char> source,
- int index);
-
-enum NativeType {
- CORE, EXPERIMENTAL, D8
-};
-
-template <NativeType type>
-class NativesCollection {
+class BZip2Decompressor {
Vitaly Repeshko 2011/06/06 15:59:15 This should be some namespace and should be docume
public:
- // Number of built-in scripts.
- static int GetBuiltinsCount();
- // Number of debugger implementation scripts.
- static int GetDebuggerCount();
+ BZip2Decompressor();
+ ~BZip2Decompressor();
+ int DecompressStartupData();
- // These are used to access built-in scripts. The debugger implementation
- // scripts have an index in the interval [0, GetDebuggerCount()). The
- // non-debugger scripts have an index in the interval [GetDebuggerCount(),
- // GetNativesCount()).
- static int GetIndex(const char* name);
- static Vector<const char> GetScriptSource(int index);
- static Vector<const char> GetScriptName(int index);
+ private:
+ char** raw_data;
};
-typedef NativesCollection<CORE> Natives;
-typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives;
-
-} } // namespace v8::internal
-
-#endif // V8_NATIVES_H_
+#endif // V8_BZ2_DECOMPRESS_H_
« samples/shell.cc ('K') | « src/bootstrapper.cc ('k') | src/bz2-decompress.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698