Chromium Code Reviews| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 364 static void* CreateHistogram(const char* name, | 364 static void* CreateHistogram(const char* name, |
| 365 int min, | 365 int min, |
| 366 int max, | 366 int max, |
| 367 size_t buckets); | 367 size_t buckets); |
| 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 MaybeLocal<Context> CreateRealm( | |
|
adamk
2016/05/27 18:10:51
Nit: Seems like this could be private, but so litt
Dan Ehrenberg
2016/05/27 18:21:54
Done
| |
| 375 const v8::FunctionCallbackInfo<v8::Value>& args); | |
| 376 | |
| 374 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); | 377 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 375 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); | 378 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 376 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); | 379 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 377 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); | 380 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 381 static void RealmCreateAllowCrossRealmAccess( | |
| 382 const v8::FunctionCallbackInfo<v8::Value>& args); | |
| 378 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); | 383 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 379 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); | 384 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 380 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); | 385 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 381 static void RealmSharedGet(Local<String> property, | 386 static void RealmSharedGet(Local<String> property, |
| 382 const PropertyCallbackInfo<Value>& info); | 387 const PropertyCallbackInfo<Value>& info); |
| 383 static void RealmSharedSet(Local<String> property, | 388 static void RealmSharedSet(Local<String> property, |
| 384 Local<Value> value, | 389 Local<Value> value, |
| 385 const PropertyCallbackInfo<void>& info); | 390 const PropertyCallbackInfo<void>& info); |
| 386 | 391 |
| 387 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args); | 392 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 469 static void RunShell(Isolate* isolate); | 474 static void RunShell(Isolate* isolate); |
| 470 static bool SetOptions(int argc, char* argv[]); | 475 static bool SetOptions(int argc, char* argv[]); |
| 471 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 476 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
| 472 }; | 477 }; |
| 473 | 478 |
| 474 | 479 |
| 475 } // namespace v8 | 480 } // namespace v8 |
| 476 | 481 |
| 477 | 482 |
| 478 #endif // V8_D8_H_ | 483 #endif // V8_D8_H_ |
| OLD | NEW |