| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 static Local<Array> GetCompletions(Isolate* isolate, Local<String> text, | 383 static Local<Array> GetCompletions(Isolate* isolate, Local<String> text, |
| 384 Local<String> full); | 384 Local<String> full); |
| 385 static int* LookupCounter(const char* name); | 385 static int* LookupCounter(const char* name); |
| 386 static void* CreateHistogram(const char* name, | 386 static void* CreateHistogram(const char* name, |
| 387 int min, | 387 int min, |
| 388 int max, | 388 int max, |
| 389 size_t buckets); | 389 size_t buckets); |
| 390 static void AddHistogramSample(void* histogram, int sample); | 390 static void AddHistogramSample(void* histogram, int sample); |
| 391 static void MapCounters(v8::Isolate* isolate, const char* name); | 391 static void MapCounters(v8::Isolate* isolate, const char* name); |
| 392 | 392 |
| 393 static Local<Object> DebugMessageDetails(Isolate* isolate, | |
| 394 Local<String> message); | |
| 395 static Local<Value> DebugCommandToJSONRequest(Isolate* isolate, | |
| 396 Local<String> command); | |
| 397 | |
| 398 static void PerformanceNow(const v8::FunctionCallbackInfo<v8::Value>& args); | 393 static void PerformanceNow(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 399 #endif // !V8_SHARED | 394 #endif // !V8_SHARED |
| 400 | 395 |
| 401 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); | 396 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 402 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); | 397 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 403 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); | 398 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 404 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); | 399 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 405 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); | 400 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 406 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); | 401 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 407 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); | 402 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 480 |
| 486 static base::LazyMutex workers_mutex_; | 481 static base::LazyMutex workers_mutex_; |
| 487 static bool allow_new_workers_; | 482 static bool allow_new_workers_; |
| 488 static i::List<Worker*> workers_; | 483 static i::List<Worker*> workers_; |
| 489 static i::List<SharedArrayBuffer::Contents> externalized_shared_contents_; | 484 static i::List<SharedArrayBuffer::Contents> externalized_shared_contents_; |
| 490 | 485 |
| 491 static Counter* GetCounter(const char* name, bool is_histogram); | 486 static Counter* GetCounter(const char* name, bool is_histogram); |
| 492 static void InstallUtilityScript(Isolate* isolate); | 487 static void InstallUtilityScript(Isolate* isolate); |
| 493 #endif // !V8_SHARED | 488 #endif // !V8_SHARED |
| 494 static void Initialize(Isolate* isolate); | 489 static void Initialize(Isolate* isolate); |
| 495 static void InitializeDebugger(Isolate* isolate); | |
| 496 static void RunShell(Isolate* isolate); | 490 static void RunShell(Isolate* isolate); |
| 497 static bool SetOptions(int argc, char* argv[]); | 491 static bool SetOptions(int argc, char* argv[]); |
| 498 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 492 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
| 499 }; | 493 }; |
| 500 | 494 |
| 501 | 495 |
| 502 } // namespace v8 | 496 } // namespace v8 |
| 503 | 497 |
| 504 | 498 |
| 505 #endif // V8_D8_H_ | 499 #endif // V8_D8_H_ |
| OLD | NEW |