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

Side by Side Diff: src/d8.h

Issue 1147343004: Fixed memory-leak in d8. It did not clean evaluation context used for executing shell commands. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed version Created 5 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
« no previous file with comments | « no previous file | src/d8.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 // 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_D8_H_ 5 #ifndef V8_D8_H_
6 #define V8_D8_H_ 6 #define V8_D8_H_
7 7
8 #ifndef V8_SHARED 8 #ifndef V8_SHARED
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 bool report_exceptions, 257 bool report_exceptions,
258 SourceType source_type = SCRIPT); 258 SourceType source_type = SCRIPT);
259 static const char* ToCString(const v8::String::Utf8Value& value); 259 static const char* ToCString(const v8::String::Utf8Value& value);
260 static void ReportException(Isolate* isolate, TryCatch* try_catch); 260 static void ReportException(Isolate* isolate, TryCatch* try_catch);
261 static Handle<String> ReadFile(Isolate* isolate, const char* name); 261 static Handle<String> ReadFile(Isolate* isolate, const char* name);
262 static Local<Context> CreateEvaluationContext(Isolate* isolate); 262 static Local<Context> CreateEvaluationContext(Isolate* isolate);
263 static int RunMain(Isolate* isolate, int argc, char* argv[]); 263 static int RunMain(Isolate* isolate, int argc, char* argv[]);
264 static int Main(int argc, char* argv[]); 264 static int Main(int argc, char* argv[]);
265 static void Exit(int exit_code); 265 static void Exit(int exit_code);
266 static void OnExit(Isolate* isolate); 266 static void OnExit(Isolate* isolate);
267 static void CollectGarbage(Isolate* isolate);
267 268
268 #ifndef V8_SHARED 269 #ifndef V8_SHARED
269 static Handle<Array> GetCompletions(Isolate* isolate, 270 static Handle<Array> GetCompletions(Isolate* isolate,
270 Handle<String> text, 271 Handle<String> text,
271 Handle<String> full); 272 Handle<String> full);
272 static int* LookupCounter(const char* name); 273 static int* LookupCounter(const char* name);
273 static void* CreateHistogram(const char* name, 274 static void* CreateHistogram(const char* name,
274 int min, 275 int min,
275 int max, 276 int max,
276 size_t buckets); 277 size_t buckets);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 388 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
388 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); 389 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback);
389 static Handle<FunctionTemplate> CreateArrayTemplate(FunctionCallback); 390 static Handle<FunctionTemplate> CreateArrayTemplate(FunctionCallback);
390 }; 391 };
391 392
392 393
393 } // namespace v8 394 } // namespace v8
394 395
395 396
396 #endif // V8_D8_H_ 397 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698