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

Side by Side Diff: src/bootstrapper.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: Make decompressor class public 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 private: 163 private:
164 DISALLOW_COPY_AND_ASSIGN(BootstrapperActive); 164 DISALLOW_COPY_AND_ASSIGN(BootstrapperActive);
165 }; 165 };
166 166
167 167
168 class NativesExternalStringResource 168 class NativesExternalStringResource
169 : public v8::String::ExternalAsciiStringResource { 169 : public v8::String::ExternalAsciiStringResource {
170 public: 170 public:
171 explicit NativesExternalStringResource(Bootstrapper* bootstrapper, 171 NativesExternalStringResource(Bootstrapper* bootstrapper,
172 const char* source); 172 const char* source,
173 size_t length);
173 174
174 const char* data() const { 175 const char* data() const {
175 return data_; 176 return data_;
176 } 177 }
177 178
178 size_t length() const { 179 size_t length() const {
179 return length_; 180 return length_;
180 } 181 }
181 private: 182 private:
182 const char* data_; 183 const char* data_;
183 size_t length_; 184 size_t length_;
184 }; 185 };
185 186
186 }} // namespace v8::internal 187 }} // namespace v8::internal
187 188
188 #endif // V8_BOOTSTRAPPER_H_ 189 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698