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

Side by Side Diff: src/d8.h

Issue 559913002: Rename ascii to one-byte where applicable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/counters.h ('k') | src/debug.cc » ('j') | src/jsregexp.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_D8_H_ 5 #ifndef V8_D8_H_
6 #define V8_D8_H_ 6 #define V8_D8_H_
7 7
8 #ifndef V8_SHARED 8 #ifndef V8_SHARED
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 void ExitShell(int exit_code); 166 void ExitShell(int exit_code);
167 Handle<String> ReadFile(Isolate* isolate, const char* name); 167 Handle<String> ReadFile(Isolate* isolate, const char* name);
168 168
169 const char** argv_; 169 const char** argv_;
170 int begin_offset_; 170 int begin_offset_;
171 int end_offset_; 171 int end_offset_;
172 }; 172 };
173 173
174 174
175 class BinaryResource : public v8::String::ExternalAsciiStringResource { 175 class BinaryResource : public v8::String::ExternalOneByteStringResource {
176 public: 176 public:
177 BinaryResource(const char* string, int length) 177 BinaryResource(const char* string, int length)
178 : data_(string), 178 : data_(string),
179 length_(length) { } 179 length_(length) { }
180 180
181 ~BinaryResource() { 181 ~BinaryResource() {
182 delete[] data_; 182 delete[] data_;
183 data_ = NULL; 183 data_ = NULL;
184 length_ = 0; 184 length_ = 0;
185 } 185 }
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 static void ExternalArrayWeakCallback(Isolate* isolate, 405 static void ExternalArrayWeakCallback(Isolate* isolate,
406 Persistent<Object>* object, 406 Persistent<Object>* object,
407 uint8_t* data); 407 uint8_t* data);
408 }; 408 };
409 409
410 410
411 } // namespace v8 411 } // namespace v8
412 412
413 413
414 #endif // V8_D8_H_ 414 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/counters.h ('k') | src/debug.cc » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698