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

Side by Side Diff: src/v8.cc

Issue 130213009: Various extension-related cleanup and simplifications. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Whitespace Created 6 years, 11 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/extensions/trigger-failure-extension.cc ('k') | test/cctest/cctest.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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 Isolate* isolate = Isolate::Current(); 92 Isolate* isolate = Isolate::Current();
93 ASSERT(isolate->IsDefaultIsolate()); 93 ASSERT(isolate->IsDefaultIsolate());
94 if (!isolate->IsInitialized()) return; 94 if (!isolate->IsInitialized()) return;
95 95
96 // The isolate has to be torn down before clearing the LOperand 96 // The isolate has to be torn down before clearing the LOperand
97 // caches so that the optimizing compiler thread (if running) 97 // caches so that the optimizing compiler thread (if running)
98 // doesn't see an inconsistent view of the lithium instructions. 98 // doesn't see an inconsistent view of the lithium instructions.
99 isolate->TearDown(); 99 isolate->TearDown();
100 delete isolate; 100 delete isolate;
101 101
102 Bootstrapper::TearDownExtensions();
102 ElementsAccessor::TearDown(); 103 ElementsAccessor::TearDown();
103 LOperand::TearDownCaches(); 104 LOperand::TearDownCaches();
104 ExternalReference::TearDownMathExpData(); 105 ExternalReference::TearDownMathExpData();
105 RegisteredExtension::UnregisterAll(); 106 RegisteredExtension::UnregisterAll();
106 Isolate::GlobalTearDown(); 107 Isolate::GlobalTearDown();
107 108
108 delete call_completed_callbacks_; 109 delete call_completed_callbacks_;
109 call_completed_callbacks_ = NULL; 110 call_completed_callbacks_ = NULL;
110 111
111 Sampler::TearDown(); 112 Sampler::TearDown();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 platform_ = NULL; 214 platform_ = NULL;
214 } 215 }
215 216
216 217
217 v8::Platform* V8::GetCurrentPlatform() { 218 v8::Platform* V8::GetCurrentPlatform() {
218 ASSERT(platform_); 219 ASSERT(platform_);
219 return platform_; 220 return platform_;
220 } 221 }
221 222
222 } } // namespace v8::internal 223 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/extensions/trigger-failure-extension.cc ('k') | test/cctest/cctest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698