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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 OnExit(); | 123 static void OnExit(); |
124 static int* LookupCounter(const char* name); | 124 static int* LookupCounter(const char* name); |
125 static void* CreateHistogram(const char* name, | 125 static void* CreateHistogram(const char* name, |
126 int min, | 126 int min, |
127 int max, | 127 int max, |
128 size_t buckets); | 128 size_t buckets); |
129 static void AddHistogramSample(void* histogram, int sample); | 129 static void AddHistogramSample(void* histogram, int sample); |
130 static void MapCounters(const char* name); | 130 static void MapCounters(const char* name); |
131 static Handle<Value> CounterGetValue(const Arguments& args); | |
132 static Handle<String> ReadFile(const char* name); | 131 static Handle<String> ReadFile(const char* name); |
133 static void Initialize(bool test_shell); | 132 static void Initialize(bool test_shell); |
134 static void RenewEvaluationContext(); | 133 static void RenewEvaluationContext(); |
135 static void InstallUtilityScript(); | 134 static void InstallUtilityScript(); |
136 static void RunShell(); | 135 static void RunShell(); |
137 static int RunScript(char* filename); | 136 static int RunScript(char* filename); |
138 static int RunMain(int argc, char* argv[], bool* executed); | 137 static int RunMain(int argc, char* argv[], bool* executed); |
139 static int Main(int argc, char* argv[]); | 138 static int Main(int argc, char* argv[]); |
140 static Handle<ObjectTemplate> CreateGlobalTemplate(); | 139 static Handle<ObjectTemplate> CreateGlobalTemplate(); |
141 static Handle<Array> GetCompletions(Handle<String> text, | 140 static Handle<Array> GetCompletions(Handle<String> text, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 const char* name_; | 240 const char* name_; |
242 LineEditor* next_; | 241 LineEditor* next_; |
243 static LineEditor* first_; | 242 static LineEditor* first_; |
244 }; | 243 }; |
245 | 244 |
246 | 245 |
247 } // namespace v8 | 246 } // namespace v8 |
248 | 247 |
249 | 248 |
250 #endif // V8_D8_H_ | 249 #endif // V8_D8_H_ |
OLD | NEW |