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

Side by Side Diff: src/v8.cc

Issue 12223089: Fixed a memory leak in v8 and another one in d8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/isolate.cc ('k') | test/cctest/test-api.cc » ('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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // The isolate has to be torn down before clearing the LOperand 108 // The isolate has to be torn down before clearing the LOperand
109 // caches so that the optimizing compiler thread (if running) 109 // caches so that the optimizing compiler thread (if running)
110 // doesn't see an inconsistent view of the lithium instructions. 110 // doesn't see an inconsistent view of the lithium instructions.
111 isolate->TearDown(); 111 isolate->TearDown();
112 delete isolate; 112 delete isolate;
113 113
114 ElementsAccessor::TearDown(); 114 ElementsAccessor::TearDown();
115 LOperand::TearDownCaches(); 115 LOperand::TearDownCaches();
116 ExternalReference::TearDownMathExpData(); 116 ExternalReference::TearDownMathExpData();
117 RegisteredExtension::UnregisterAll(); 117 RegisteredExtension::UnregisterAll();
118 Isolate::GlobalTearDown();
118 119
119 is_running_ = false; 120 is_running_ = false;
120 has_been_disposed_ = true; 121 has_been_disposed_ = true;
121 122
122 delete call_completed_callbacks_; 123 delete call_completed_callbacks_;
123 call_completed_callbacks_ = NULL; 124 call_completed_callbacks_ = NULL;
124 125
125 OS::TearDown(); 126 OS::TearDown();
126 } 127 }
127 128
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 SetUpJSCallerSavedCodeData(); 280 SetUpJSCallerSavedCodeData();
280 SamplerRegistry::SetUp(); 281 SamplerRegistry::SetUp();
281 ExternalReference::SetUp(); 282 ExternalReference::SetUp();
282 } 283 }
283 284
284 void V8::InitializeOncePerProcess() { 285 void V8::InitializeOncePerProcess() {
285 CallOnce(&init_once, &InitializeOncePerProcessImpl); 286 CallOnce(&init_once, &InitializeOncePerProcessImpl);
286 } 287 }
287 288
288 } } // namespace v8::internal 289 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698