Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 | 113 |
| 114 | 114 |
| 115 class Shell: public i::AllStatic { | 115 class Shell: public i::AllStatic { |
| 116 public: | 116 public: |
| 117 static bool ExecuteString(Handle<String> source, | 117 static bool ExecuteString(Handle<String> source, |
| 118 Handle<Value> name, | 118 Handle<Value> name, |
| 119 bool print_result, | 119 bool print_result, |
| 120 bool report_exceptions); | 120 bool report_exceptions); |
| 121 static const char* ToCString(const v8::String::Utf8Value& value); | 121 static const char* ToCString(const v8::String::Utf8Value& value); |
| 122 static void ReportException(TryCatch* try_catch); | 122 static void ReportException(TryCatch* try_catch); |
| 123 static void Initialize(); | |
| 124 static void OnExit(); | 123 static void OnExit(); |
| 125 static int* LookupCounter(const char* name); | 124 static int* LookupCounter(const char* name); |
| 126 static void* CreateHistogram(const char* name, | 125 static void* CreateHistogram(const char* name, |
| 127 int min, | 126 int min, |
| 128 int max, | 127 int max, |
| 129 size_t buckets); | 128 size_t buckets); |
| 130 static void AddHistogramSample(void* histogram, int sample); | 129 static void AddHistogramSample(void* histogram, int sample); |
| 131 static void MapCounters(const char* name); | 130 static void MapCounters(const char* name); |
| 132 static Handle<String> ReadFile(const char* name); | 131 static Handle<String> ReadFile(const char* name); |
| 132 static void Initialize(); | |
|
Søren Thygesen Gjesse
2011/06/09 12:36:04
Please rename to RenewEvaluationContext as using t
Yang
2011/06/09 13:00:40
Done.
| |
| 133 static void RenewEvalContext(); | |
|
Søren Thygesen Gjesse
2011/06/09 12:36:04
Rename Util ->Utility
Yang
2011/06/09 13:00:40
Done.
| |
| 134 static void InstallUtilScript(); | |
| 133 static void RunShell(); | 135 static void RunShell(); |
| 136 static int RunScript(char* filename); | |
| 137 static int RunMain(int argc, char* argv[]); | |
| 134 static int Main(int argc, char* argv[]); | 138 static int Main(int argc, char* argv[]); |
| 139 static Handle<ObjectTemplate> CreateGlobalTemplate(); | |
| 135 static Handle<Array> GetCompletions(Handle<String> text, | 140 static Handle<Array> GetCompletions(Handle<String> text, |
| 136 Handle<String> full); | 141 Handle<String> full); |
| 137 #ifdef ENABLE_DEBUGGER_SUPPORT | 142 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 138 static Handle<Object> DebugMessageDetails(Handle<String> message); | 143 static Handle<Object> DebugMessageDetails(Handle<String> message); |
| 139 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); | 144 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); |
| 140 #endif | 145 #endif |
| 141 | 146 |
| 142 #ifdef WIN32 | 147 #ifdef WIN32 |
| 143 #undef Yield | 148 #undef Yield |
| 144 #endif | 149 #endif |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 const char* name_; | 242 const char* name_; |
| 238 LineEditor* next_; | 243 LineEditor* next_; |
| 239 static LineEditor* first_; | 244 static LineEditor* first_; |
| 240 }; | 245 }; |
| 241 | 246 |
| 242 | 247 |
| 243 } // namespace v8 | 248 } // namespace v8 |
| 244 | 249 |
| 245 | 250 |
| 246 #endif // V8_D8_H_ | 251 #endif // V8_D8_H_ |
| OLD | NEW |