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

Side by Side Diff: src/bootstrapper.cc

Issue 132623005: A64: Synchronize with r18642. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « src/ast.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 if (FLAG_expose_externalize_string) { 2261 if (FLAG_expose_externalize_string) {
2262 InstallExtension(isolate, "v8/externalize", &extension_states); 2262 InstallExtension(isolate, "v8/externalize", &extension_states);
2263 } 2263 }
2264 if (FLAG_track_gc_object_stats) { 2264 if (FLAG_track_gc_object_stats) {
2265 InstallExtension(isolate, "v8/statistics", &extension_states); 2265 InstallExtension(isolate, "v8/statistics", &extension_states);
2266 } 2266 }
2267 if (FLAG_expose_trigger_failure) { 2267 if (FLAG_expose_trigger_failure) {
2268 InstallExtension(isolate, "v8/trigger-failure", &extension_states); 2268 InstallExtension(isolate, "v8/trigger-failure", &extension_states);
2269 } 2269 }
2270 2270
2271 if (extensions == NULL) return true; 2271 for (const char** it = extensions->begin(); it != extensions->end(); ++it) {
2272 // Install required extensions 2272 if (!InstallExtension(isolate, *it, &extension_states)) return false;
2273 int count = v8::ImplementationUtilities::GetNameCount(extensions);
2274 const char** names = v8::ImplementationUtilities::GetNames(extensions);
2275 for (int i = 0; i < count; i++) {
2276 if (!InstallExtension(isolate, names[i], &extension_states))
2277 return false;
2278 } 2273 }
2279 2274
2280 return true; 2275 return true;
2281 } 2276 }
2282 2277
2283 2278
2284 // Installs a named extension. This methods is unoptimized and does 2279 // Installs a named extension. This methods is unoptimized and does
2285 // not scale well if we want to support a large number of extensions. 2280 // not scale well if we want to support a large number of extensions.
2286 bool Genesis::InstallExtension(Isolate* isolate, 2281 bool Genesis::InstallExtension(Isolate* isolate,
2287 const char* name, 2282 const char* name,
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 return from + sizeof(NestingCounterType); 2701 return from + sizeof(NestingCounterType);
2707 } 2702 }
2708 2703
2709 2704
2710 // Called when the top-level V8 mutex is destroyed. 2705 // Called when the top-level V8 mutex is destroyed.
2711 void Bootstrapper::FreeThreadResources() { 2706 void Bootstrapper::FreeThreadResources() {
2712 ASSERT(!IsActive()); 2707 ASSERT(!IsActive());
2713 } 2708 }
2714 2709
2715 } } // namespace v8::internal 2710 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698