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

Side by Side Diff: src/arm64/simulator-arm64.h

Issue 1132943007: Fixed various simulator-related space leaks. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a leak in ARM64 disassembler. Created 5 years, 7 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
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/arm64/simulator-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM64_SIMULATOR_ARM64_H_ 5 #ifndef V8_ARM64_SIMULATOR_ARM64_H_
6 #define V8_ARM64_SIMULATOR_ARM64_H_ 6 #define V8_ARM64_SIMULATOR_ARM64_H_
7 7
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 explicit Simulator(Decoder<DispatchingDecoderVisitor>* decoder, 156 explicit Simulator(Decoder<DispatchingDecoderVisitor>* decoder,
157 Isolate* isolate = NULL, 157 Isolate* isolate = NULL,
158 FILE* stream = stderr); 158 FILE* stream = stderr);
159 Simulator(); 159 Simulator();
160 ~Simulator(); 160 ~Simulator();
161 161
162 // System functions. 162 // System functions.
163 163
164 static void Initialize(Isolate* isolate); 164 static void Initialize(Isolate* isolate);
165 165
166 static void TearDown(HashMap* i_cache, Redirection* first);
167
166 static Simulator* current(v8::internal::Isolate* isolate); 168 static Simulator* current(v8::internal::Isolate* isolate);
167 169
168 class CallArgument; 170 class CallArgument;
169 171
170 // Call an arbitrary function taking an arbitrary number of arguments. The 172 // Call an arbitrary function taking an arbitrary number of arguments. The
171 // varargs list must be a set of arguments with type CallArgument, and 173 // varargs list must be a set of arguments with type CallArgument, and
172 // terminated by CallArgument::End(). 174 // terminated by CallArgument::End().
173 void CallVoid(byte* entry, CallArgument* args); 175 void CallVoid(byte* entry, CallArgument* args);
174 176
175 // Like CallVoid, but expect a return value. 177 // Like CallVoid, but expect a return value.
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 static void UnregisterCTryCatch() { 901 static void UnregisterCTryCatch() {
900 Simulator::current(Isolate::Current())->PopAddress(); 902 Simulator::current(Isolate::Current())->PopAddress();
901 } 903 }
902 }; 904 };
903 905
904 #endif // !defined(USE_SIMULATOR) 906 #endif // !defined(USE_SIMULATOR)
905 907
906 } } // namespace v8::internal 908 } } // namespace v8::internal
907 909
908 #endif // V8_ARM64_SIMULATOR_ARM64_H_ 910 #endif // V8_ARM64_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/arm64/simulator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698