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

Side by Side Diff: include/v8.h

Issue 8056019: Make MSVS happy with ExternalAsciiStringResourceImpl (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2445 static Local<TypeSwitch> New(Handle<FunctionTemplate> type); 2445 static Local<TypeSwitch> New(Handle<FunctionTemplate> type);
2446 static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]); 2446 static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]);
2447 int match(Handle<Value> value); 2447 int match(Handle<Value> value);
2448 private: 2448 private:
2449 TypeSwitch(); 2449 TypeSwitch();
2450 }; 2450 };
2451 2451
2452 2452
2453 // --- Extensions --- 2453 // --- Extensions ---
2454 2454
2455 class ExternalAsciiStringResourceImpl 2455 class V8EXPORT ExternalAsciiStringResourceImpl
2456 : public String::ExternalAsciiStringResource { 2456 : public String::ExternalAsciiStringResource {
2457 public: 2457 public:
2458 ExternalAsciiStringResourceImpl() : data_(0), length_(0) {} 2458 ExternalAsciiStringResourceImpl() : data_(0), length_(0) {}
2459 ExternalAsciiStringResourceImpl(const char* data, size_t length) 2459 ExternalAsciiStringResourceImpl(const char* data, size_t length)
2460 : data_(data), length_(length) {} 2460 : data_(data), length_(length) {}
2461 const char* data() const { return data_; } 2461 const char* data() const { return data_; }
2462 size_t length() const { return length_; } 2462 size_t length() const { return length_; }
2463 2463
2464 private: 2464 private:
2465 const char* data_; 2465 const char* data_;
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after
4221 4221
4222 4222
4223 } // namespace v8 4223 } // namespace v8
4224 4224
4225 4225
4226 #undef V8EXPORT 4226 #undef V8EXPORT
4227 #undef TYPE_CHECK 4227 #undef TYPE_CHECK
4228 4228
4229 4229
4230 #endif // V8_H_ 4230 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698