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 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); | 365 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); |
366 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); | 366 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); |
367 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); | 367 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); |
368 static void RealmSharedGet(Local<String> property, | 368 static void RealmSharedGet(Local<String> property, |
369 const PropertyCallbackInfo<Value>& info); | 369 const PropertyCallbackInfo<Value>& info); |
370 static void RealmSharedSet(Local<String> property, | 370 static void RealmSharedSet(Local<String> property, |
371 Local<Value> value, | 371 Local<Value> value, |
372 const PropertyCallbackInfo<void>& info); | 372 const PropertyCallbackInfo<void>& info); |
373 | 373 |
374 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args); | 374 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 375 static void PrintErr(const v8::FunctionCallbackInfo<v8::Value>& args); |
375 static void Write(const v8::FunctionCallbackInfo<v8::Value>& args); | 376 static void Write(const v8::FunctionCallbackInfo<v8::Value>& args); |
376 static void QuitOnce(v8::FunctionCallbackInfo<v8::Value>* args); | 377 static void QuitOnce(v8::FunctionCallbackInfo<v8::Value>* args); |
377 static void Quit(const v8::FunctionCallbackInfo<v8::Value>& args); | 378 static void Quit(const v8::FunctionCallbackInfo<v8::Value>& args); |
378 static void Version(const v8::FunctionCallbackInfo<v8::Value>& args); | 379 static void Version(const v8::FunctionCallbackInfo<v8::Value>& args); |
379 static void Read(const v8::FunctionCallbackInfo<v8::Value>& args); | 380 static void Read(const v8::FunctionCallbackInfo<v8::Value>& args); |
380 static void ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args); | 381 static void ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args); |
381 static Local<String> ReadFromStdin(Isolate* isolate); | 382 static Local<String> ReadFromStdin(Isolate* isolate); |
382 static void ReadLine(const v8::FunctionCallbackInfo<v8::Value>& args) { | 383 static void ReadLine(const v8::FunctionCallbackInfo<v8::Value>& args) { |
383 args.GetReturnValue().Set(ReadFromStdin(args.GetIsolate())); | 384 args.GetReturnValue().Set(ReadFromStdin(args.GetIsolate())); |
384 } | 385 } |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 const v8::FunctionCallbackInfo<v8::Value>& args); | 459 const v8::FunctionCallbackInfo<v8::Value>& args); |
459 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, | 460 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, |
460 const std::string& file_name); | 461 const std::string& file_name); |
461 }; | 462 }; |
462 | 463 |
463 | 464 |
464 } // namespace v8 | 465 } // namespace v8 |
465 | 466 |
466 | 467 |
467 #endif // V8_D8_H_ | 468 #endif // V8_D8_H_ |
OLD | NEW |