Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: src/d8.h

Issue 133443009: A64: Synchronize with r17441. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/cpu-profiler.cc ('k') | src/d8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 parallel_files(NULL), 225 parallel_files(NULL),
226 #endif // V8_SHARED 226 #endif // V8_SHARED
227 script_executed(false), 227 script_executed(false),
228 last_run(true), 228 last_run(true),
229 send_idle_notification(false), 229 send_idle_notification(false),
230 stress_opt(false), 230 stress_opt(false),
231 stress_deopt(false), 231 stress_deopt(false),
232 interactive_shell(false), 232 interactive_shell(false),
233 test_shell(false), 233 test_shell(false),
234 dump_heap_constants(false), 234 dump_heap_constants(false),
235 expected_to_throw(false),
235 num_isolates(1), 236 num_isolates(1),
236 isolate_sources(NULL) { } 237 isolate_sources(NULL) { }
237 238
238 ~ShellOptions() { 239 ~ShellOptions() {
239 #ifndef V8_SHARED 240 #ifndef V8_SHARED
240 delete[] parallel_files; 241 delete[] parallel_files;
241 #endif // V8_SHARED 242 #endif // V8_SHARED
242 delete[] isolate_sources; 243 delete[] isolate_sources;
243 } 244 }
244 245
245 #ifndef V8_SHARED 246 #ifndef V8_SHARED
246 bool use_preemption; 247 bool use_preemption;
247 int preemption_interval; 248 int preemption_interval;
248 int num_parallel_files; 249 int num_parallel_files;
249 char** parallel_files; 250 char** parallel_files;
250 #endif // V8_SHARED 251 #endif // V8_SHARED
251 bool script_executed; 252 bool script_executed;
252 bool last_run; 253 bool last_run;
253 bool send_idle_notification; 254 bool send_idle_notification;
254 bool stress_opt; 255 bool stress_opt;
255 bool stress_deopt; 256 bool stress_deopt;
256 bool interactive_shell; 257 bool interactive_shell;
257 bool test_shell; 258 bool test_shell;
258 bool dump_heap_constants; 259 bool dump_heap_constants;
260 bool expected_to_throw;
259 int num_isolates; 261 int num_isolates;
260 SourceGroup* isolate_sources; 262 SourceGroup* isolate_sources;
261 }; 263 };
262 264
263 #ifdef V8_SHARED 265 #ifdef V8_SHARED
264 class Shell { 266 class Shell {
265 #else 267 #else
266 class Shell : public i::AllStatic { 268 class Shell : public i::AllStatic {
267 #endif // V8_SHARED 269 #endif // V8_SHARED
268 270
(...skipping 24 matching lines...) Expand all
293 static void AddHistogramSample(void* histogram, int sample); 295 static void AddHistogramSample(void* histogram, int sample);
294 static void MapCounters(const char* name); 296 static void MapCounters(const char* name);
295 297
296 #ifdef ENABLE_DEBUGGER_SUPPORT 298 #ifdef ENABLE_DEBUGGER_SUPPORT
297 static Handle<Object> DebugMessageDetails(Isolate* isolate, 299 static Handle<Object> DebugMessageDetails(Isolate* isolate,
298 Handle<String> message); 300 Handle<String> message);
299 static Handle<Value> DebugCommandToJSONRequest(Isolate* isolate, 301 static Handle<Value> DebugCommandToJSONRequest(Isolate* isolate,
300 Handle<String> command); 302 Handle<String> command);
301 static void DispatchDebugMessages(); 303 static void DispatchDebugMessages();
302 #endif // ENABLE_DEBUGGER_SUPPORT 304 #endif // ENABLE_DEBUGGER_SUPPORT
305
306 static void PerformanceNow(const v8::FunctionCallbackInfo<v8::Value>& args);
303 #endif // V8_SHARED 307 #endif // V8_SHARED
304 308
305 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); 309 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args);
306 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); 310 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args);
307 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); 311 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args);
308 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); 312 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args);
309 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); 313 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args);
310 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); 314 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args);
311 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); 315 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args);
312 static void RealmSharedGet(Local<String> property, 316 static void RealmSharedGet(Local<String> property,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 static Persistent<Context> evaluation_context_; 388 static Persistent<Context> evaluation_context_;
385 #ifndef V8_SHARED 389 #ifndef V8_SHARED
386 static Persistent<Context> utility_context_; 390 static Persistent<Context> utility_context_;
387 static CounterMap* counter_map_; 391 static CounterMap* counter_map_;
388 // We statically allocate a set of local counters to be used if we 392 // We statically allocate a set of local counters to be used if we
389 // don't want to store the stats in a memory-mapped file 393 // don't want to store the stats in a memory-mapped file
390 static CounterCollection local_counters_; 394 static CounterCollection local_counters_;
391 static CounterCollection* counters_; 395 static CounterCollection* counters_;
392 static i::OS::MemoryMappedFile* counters_file_; 396 static i::OS::MemoryMappedFile* counters_file_;
393 static i::Mutex context_mutex_; 397 static i::Mutex context_mutex_;
398 static const i::TimeTicks kInitialTicks;
394 399
395 static Counter* GetCounter(const char* name, bool is_histogram); 400 static Counter* GetCounter(const char* name, bool is_histogram);
396 static void InstallUtilityScript(Isolate* isolate); 401 static void InstallUtilityScript(Isolate* isolate);
397 #endif // V8_SHARED 402 #endif // V8_SHARED
398 static void Initialize(Isolate* isolate); 403 static void Initialize(Isolate* isolate);
399 static void InitializeDebugger(Isolate* isolate); 404 static void InitializeDebugger(Isolate* isolate);
400 static void RunShell(Isolate* isolate); 405 static void RunShell(Isolate* isolate);
401 static bool SetOptions(int argc, char* argv[]); 406 static bool SetOptions(int argc, char* argv[]);
402 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 407 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
403 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); 408 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback);
(...skipping 16 matching lines...) Expand all
420 static void ExternalArrayWeakCallback(Isolate* isolate, 425 static void ExternalArrayWeakCallback(Isolate* isolate,
421 Persistent<Object>* object, 426 Persistent<Object>* object,
422 uint8_t* data); 427 uint8_t* data);
423 }; 428 };
424 429
425 430
426 } // namespace v8 431 } // namespace v8
427 432
428 433
429 #endif // V8_D8_H_ 434 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/cpu-profiler.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698