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

Side by Side Diff: src/d8.h

Issue 32433010: Add performance.now() to the d8 shell. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 2 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 | « no previous file | 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 #ifdef ENABLE_DEBUGGER_SUPPORT 298 #ifdef ENABLE_DEBUGGER_SUPPORT
299 static Handle<Object> DebugMessageDetails(Isolate* isolate, 299 static Handle<Object> DebugMessageDetails(Isolate* isolate,
300 Handle<String> message); 300 Handle<String> message);
301 static Handle<Value> DebugCommandToJSONRequest(Isolate* isolate, 301 static Handle<Value> DebugCommandToJSONRequest(Isolate* isolate,
302 Handle<String> command); 302 Handle<String> command);
303 static void DispatchDebugMessages(); 303 static void DispatchDebugMessages();
304 #endif // ENABLE_DEBUGGER_SUPPORT 304 #endif // ENABLE_DEBUGGER_SUPPORT
305 #endif // V8_SHARED 305 #endif // V8_SHARED
306 306
307 static void WindowPerformanceNow(
308 const v8::FunctionCallbackInfo<v8::Value>& args);
307 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); 309 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args);
308 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); 310 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args);
309 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); 311 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args);
310 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); 312 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args);
311 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); 313 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args);
312 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); 314 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args);
313 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); 315 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args);
314 static void RealmSharedGet(Local<String> property, 316 static void RealmSharedGet(Local<String> property,
315 const PropertyCallbackInfo<Value>& info); 317 const PropertyCallbackInfo<Value>& info);
316 static void RealmSharedSet(Local<String> property, 318 static void RealmSharedSet(Local<String> property,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 static void SetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args); 376 static void SetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args);
375 static void UnsetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args); 377 static void UnsetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args);
376 static void SetUMask(const v8::FunctionCallbackInfo<v8::Value>& args); 378 static void SetUMask(const v8::FunctionCallbackInfo<v8::Value>& args);
377 static void MakeDirectory(const v8::FunctionCallbackInfo<v8::Value>& args); 379 static void MakeDirectory(const v8::FunctionCallbackInfo<v8::Value>& args);
378 static void RemoveDirectory(const v8::FunctionCallbackInfo<v8::Value>& args); 380 static void RemoveDirectory(const v8::FunctionCallbackInfo<v8::Value>& args);
379 381
380 static void AddOSMethods(Handle<ObjectTemplate> os_template); 382 static void AddOSMethods(Handle<ObjectTemplate> os_template);
381 383
382 static const char* kPrompt; 384 static const char* kPrompt;
383 static ShellOptions options; 385 static ShellOptions options;
386 static const i::TimeTicks kInitialTicks;
384 387
385 private: 388 private:
386 static Persistent<Context> evaluation_context_; 389 static Persistent<Context> evaluation_context_;
387 #ifndef V8_SHARED 390 #ifndef V8_SHARED
388 static Persistent<Context> utility_context_; 391 static Persistent<Context> utility_context_;
389 static CounterMap* counter_map_; 392 static CounterMap* counter_map_;
390 // We statically allocate a set of local counters to be used if we 393 // We statically allocate a set of local counters to be used if we
391 // don't want to store the stats in a memory-mapped file 394 // don't want to store the stats in a memory-mapped file
392 static CounterCollection local_counters_; 395 static CounterCollection local_counters_;
393 static CounterCollection* counters_; 396 static CounterCollection* counters_;
(...skipping 28 matching lines...) Expand all
422 static void ExternalArrayWeakCallback(Isolate* isolate, 425 static void ExternalArrayWeakCallback(Isolate* isolate,
423 Persistent<Object>* object, 426 Persistent<Object>* object,
424 uint8_t* data); 427 uint8_t* data);
425 }; 428 };
426 429
427 430
428 } // namespace v8 431 } // namespace v8
429 432
430 433
431 #endif // V8_D8_H_ 434 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698