| 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/base/platform/time.h" | 10 #include "src/base/platform/time.h" |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 static void AddHistogramSample(void* histogram, int sample); | 368 static void AddHistogramSample(void* histogram, int sample); |
| 369 static void MapCounters(v8::Isolate* isolate, const char* name); | 369 static void MapCounters(v8::Isolate* isolate, const char* name); |
| 370 | 370 |
| 371 static void PerformanceNow(const v8::FunctionCallbackInfo<v8::Value>& args); | 371 static void PerformanceNow(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 372 #endif // !V8_SHARED | 372 #endif // !V8_SHARED |
| 373 | 373 |
| 374 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); | 374 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 375 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); | 375 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 376 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); | 376 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 377 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); | 377 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 378 static void RealmCreateAllowCrossRealmAccess( |
| 379 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 378 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); | 380 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 379 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); | 381 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 380 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); | 382 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 381 static void RealmSharedGet(Local<String> property, | 383 static void RealmSharedGet(Local<String> property, |
| 382 const PropertyCallbackInfo<Value>& info); | 384 const PropertyCallbackInfo<Value>& info); |
| 383 static void RealmSharedSet(Local<String> property, | 385 static void RealmSharedSet(Local<String> property, |
| 384 Local<Value> value, | 386 Local<Value> value, |
| 385 const PropertyCallbackInfo<void>& info); | 387 const PropertyCallbackInfo<void>& info); |
| 386 | 388 |
| 387 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args); | 389 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 static i::List<SharedArrayBuffer::Contents> externalized_shared_contents_; | 464 static i::List<SharedArrayBuffer::Contents> externalized_shared_contents_; |
| 463 | 465 |
| 464 static void WriteIgnitionDispatchCountersFile(v8::Isolate* isolate); | 466 static void WriteIgnitionDispatchCountersFile(v8::Isolate* isolate); |
| 465 static Counter* GetCounter(const char* name, bool is_histogram); | 467 static Counter* GetCounter(const char* name, bool is_histogram); |
| 466 static Local<String> Stringify(Isolate* isolate, Local<Value> value); | 468 static Local<String> Stringify(Isolate* isolate, Local<Value> value); |
| 467 #endif // !V8_SHARED | 469 #endif // !V8_SHARED |
| 468 static void Initialize(Isolate* isolate); | 470 static void Initialize(Isolate* isolate); |
| 469 static void RunShell(Isolate* isolate); | 471 static void RunShell(Isolate* isolate); |
| 470 static bool SetOptions(int argc, char* argv[]); | 472 static bool SetOptions(int argc, char* argv[]); |
| 471 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 473 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
| 474 static MaybeLocal<Context> CreateRealm( |
| 475 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 472 }; | 476 }; |
| 473 | 477 |
| 474 | 478 |
| 475 } // namespace v8 | 479 } // namespace v8 |
| 476 | 480 |
| 477 | 481 |
| 478 #endif // V8_D8_H_ | 482 #endif // V8_D8_H_ |
| OLD | NEW |