| OLD | NEW |
| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 | 311 |
| 312 class GCExtension : public v8::Extension { | 312 class GCExtension : public v8::Extension { |
| 313 public: | 313 public: |
| 314 GCExtension() : v8::Extension("v8/gc", kSource) {} | 314 GCExtension() : v8::Extension("v8/gc", kSource) {} |
| 315 virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( | 315 virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( |
| 316 v8::Handle<v8::String> name); | 316 v8::Handle<v8::String> name); |
| 317 static v8::Handle<v8::Value> GC(const v8::Arguments& args); | 317 static v8::Handle<v8::Value> GC(const v8::Arguments& args); |
| 318 private: | 318 private: |
| 319 static const char* kSource; | 319 static const char* const kSource; |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 | 322 |
| 323 class ExternalizeStringExtension : public v8::Extension { |
| 324 public: |
| 325 ExternalizeStringExtension() : v8::Extension("v8/externalize", kSource) {} |
| 326 virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( |
| 327 v8::Handle<v8::String> name); |
| 328 static v8::Handle<v8::Value> Externalize(const v8::Arguments& args); |
| 329 static v8::Handle<v8::Value> IsAscii(const v8::Arguments& args); |
| 330 private: |
| 331 static const char* const kSource; |
| 332 }; |
| 333 |
| 323 } } // namespace v8::internal | 334 } } // namespace v8::internal |
| 324 | 335 |
| 325 #endif // V8_EXECUTION_H_ | 336 #endif // V8_EXECUTION_H_ |
| OLD | NEW |