OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |