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

Side by Side Diff: src/d8.h

Issue 1209403005: Let the second pass phantom callbacks run in a separate task on the foreground thread. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Run second pass callbacks synchronously when GC is forced. Created 5 years, 5 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 | « samples/shell.cc ('k') | 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 SourceType source_type = SCRIPT); 342 SourceType source_type = SCRIPT);
343 static const char* ToCString(const v8::String::Utf8Value& value); 343 static const char* ToCString(const v8::String::Utf8Value& value);
344 static void ReportException(Isolate* isolate, TryCatch* try_catch); 344 static void ReportException(Isolate* isolate, TryCatch* try_catch);
345 static Handle<String> ReadFile(Isolate* isolate, const char* name); 345 static Handle<String> ReadFile(Isolate* isolate, const char* name);
346 static Local<Context> CreateEvaluationContext(Isolate* isolate); 346 static Local<Context> CreateEvaluationContext(Isolate* isolate);
347 static int RunMain(Isolate* isolate, int argc, char* argv[]); 347 static int RunMain(Isolate* isolate, int argc, char* argv[]);
348 static int Main(int argc, char* argv[]); 348 static int Main(int argc, char* argv[]);
349 static void Exit(int exit_code); 349 static void Exit(int exit_code);
350 static void OnExit(Isolate* isolate); 350 static void OnExit(Isolate* isolate);
351 static void CollectGarbage(Isolate* isolate); 351 static void CollectGarbage(Isolate* isolate);
352 static void EmptyMessageQueues(Isolate* isolate);
352 353
353 #ifndef V8_SHARED 354 #ifndef V8_SHARED
354 // TODO(binji): stupid implementation for now. Is there an easy way to hash an 355 // TODO(binji): stupid implementation for now. Is there an easy way to hash an
355 // object for use in i::HashMap? By pointer? 356 // object for use in i::HashMap? By pointer?
356 typedef i::List<Handle<Object>> ObjectList; 357 typedef i::List<Handle<Object>> ObjectList;
357 static bool SerializeValue(Isolate* isolate, Handle<Value> value, 358 static bool SerializeValue(Isolate* isolate, Handle<Value> value,
358 const ObjectList& to_transfer, 359 const ObjectList& to_transfer,
359 ObjectList* seen_objects, 360 ObjectList* seen_objects,
360 SerializationData* out_data); 361 SerializationData* out_data);
361 static MaybeLocal<Value> DeserializeValue(Isolate* isolate, 362 static MaybeLocal<Value> DeserializeValue(Isolate* isolate,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 static void RunShell(Isolate* isolate); 478 static void RunShell(Isolate* isolate);
478 static bool SetOptions(int argc, char* argv[]); 479 static bool SetOptions(int argc, char* argv[]);
479 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 480 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
480 }; 481 };
481 482
482 483
483 } // namespace v8 484 } // namespace v8
484 485
485 486
486 #endif // V8_D8_H_ 487 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « samples/shell.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698