| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 #ifdef V8_SHARED | 244 #ifdef V8_SHARED |
| 245 class Shell { | 245 class Shell { |
| 246 #else | 246 #else |
| 247 class Shell : public i::AllStatic { | 247 class Shell : public i::AllStatic { |
| 248 #endif // V8_SHARED | 248 #endif // V8_SHARED |
| 249 | 249 |
| 250 public: | 250 public: |
| 251 static Local<UnboundScript> CompileString( | 251 static Local<UnboundScript> CompileString( |
| 252 Isolate* isolate, Local<String> source, Local<Value> name, | 252 Isolate* isolate, Local<String> source, Local<Value> name, |
| 253 v8::ScriptCompiler::CompileOptions compile_options); | 253 v8::ScriptCompiler::CompileOptions compile_options); |
| 254 static ScriptCompiler::CachedData* CompileCachedData( |
| 255 Local<String> source, Local<Value> name, |
| 256 ScriptCompiler::CompileOptions compile_options); |
| 254 static bool ExecuteString(Isolate* isolate, | 257 static bool ExecuteString(Isolate* isolate, |
| 255 Handle<String> source, | 258 Handle<String> source, |
| 256 Handle<Value> name, | 259 Handle<Value> name, |
| 257 bool print_result, | 260 bool print_result, |
| 258 bool report_exceptions); | 261 bool report_exceptions); |
| 259 static const char* ToCString(const v8::String::Utf8Value& value); | 262 static const char* ToCString(const v8::String::Utf8Value& value); |
| 260 static void ReportException(Isolate* isolate, TryCatch* try_catch); | 263 static void ReportException(Isolate* isolate, TryCatch* try_catch); |
| 261 static Handle<String> ReadFile(Isolate* isolate, const char* name); | 264 static Handle<String> ReadFile(Isolate* isolate, const char* name); |
| 262 static Local<Context> CreateEvaluationContext(Isolate* isolate); | 265 static Local<Context> CreateEvaluationContext(Isolate* isolate); |
| 263 static int RunMain(Isolate* isolate, int argc, char* argv[]); | 266 static int RunMain(Isolate* isolate, int argc, char* argv[]); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 static void ExternalArrayWeakCallback(Isolate* isolate, | 408 static void ExternalArrayWeakCallback(Isolate* isolate, |
| 406 Persistent<Object>* object, | 409 Persistent<Object>* object, |
| 407 uint8_t* data); | 410 uint8_t* data); |
| 408 }; | 411 }; |
| 409 | 412 |
| 410 | 413 |
| 411 } // namespace v8 | 414 } // namespace v8 |
| 412 | 415 |
| 413 | 416 |
| 414 #endif // V8_D8_H_ | 417 #endif // V8_D8_H_ |
| OLD | NEW |