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

Side by Side Diff: src/execution.h

Issue 2762008: Track ascii-ness of data in externalized strings. (Closed)
Patch Set: Extended tests. Created 10 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
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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/execution.cc » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698