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

Side by Side Diff: src/bootstrapper.cc

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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 } 1455 }
1456 // Install auto extensions. 1456 // Install auto extensions.
1457 current = v8::RegisteredExtension::first_extension(); 1457 current = v8::RegisteredExtension::first_extension();
1458 while (current != NULL) { 1458 while (current != NULL) {
1459 if (current->extension()->auto_enable()) 1459 if (current->extension()->auto_enable())
1460 InstallExtension(current); 1460 InstallExtension(current);
1461 current = current->next(); 1461 current = current->next();
1462 } 1462 }
1463 1463
1464 if (FLAG_expose_gc) InstallExtension("v8/gc"); 1464 if (FLAG_expose_gc) InstallExtension("v8/gc");
1465 if (FLAG_expose_externalize_string) InstallExtension("v8/externalize");
1465 1466
1466 if (extensions == NULL) return true; 1467 if (extensions == NULL) return true;
1467 // Install required extensions 1468 // Install required extensions
1468 int count = v8::ImplementationUtilities::GetNameCount(extensions); 1469 int count = v8::ImplementationUtilities::GetNameCount(extensions);
1469 const char** names = v8::ImplementationUtilities::GetNames(extensions); 1470 const char** names = v8::ImplementationUtilities::GetNames(extensions);
1470 for (int i = 0; i < count; i++) { 1471 for (int i = 0; i < count; i++) {
1471 if (!InstallExtension(names[i])) 1472 if (!InstallExtension(names[i]))
1472 return false; 1473 return false;
1473 } 1474 }
1474 1475
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1806 } 1807 }
1807 1808
1808 1809
1809 // Restore statics that are thread local. 1810 // Restore statics that are thread local.
1810 char* BootstrapperActive::RestoreState(char* from) { 1811 char* BootstrapperActive::RestoreState(char* from) {
1811 nesting_ = *reinterpret_cast<int*>(from); 1812 nesting_ = *reinterpret_cast<int*>(from);
1812 return from + sizeof(nesting_); 1813 return from + sizeof(nesting_);
1813 } 1814 }
1814 1815
1815 } } // namespace v8::internal 1816 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/execution.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698