OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |