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

Side by Side Diff: src/d8.h

Issue 133663002: Temporarily disable performance.now() in the d8 shell. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 static void AddHistogramSample(void* histogram, int sample); 293 static void AddHistogramSample(void* histogram, int sample);
294 static void MapCounters(const char* name); 294 static void MapCounters(const char* name);
295 295
296 #ifdef ENABLE_DEBUGGER_SUPPORT 296 #ifdef ENABLE_DEBUGGER_SUPPORT
297 static Local<Object> DebugMessageDetails(Isolate* isolate, 297 static Local<Object> DebugMessageDetails(Isolate* isolate,
298 Handle<String> message); 298 Handle<String> message);
299 static Local<Value> DebugCommandToJSONRequest(Isolate* isolate, 299 static Local<Value> DebugCommandToJSONRequest(Isolate* isolate,
300 Handle<String> command); 300 Handle<String> command);
301 static void DispatchDebugMessages(); 301 static void DispatchDebugMessages();
302 #endif // ENABLE_DEBUGGER_SUPPORT 302 #endif // ENABLE_DEBUGGER_SUPPORT
303
304 static void PerformanceNow(const v8::FunctionCallbackInfo<v8::Value>& args);
305 #endif // V8_SHARED 303 #endif // V8_SHARED
306 304
307 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args); 305 static void RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args);
308 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args); 306 static void RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args);
309 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); 307 static void RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args);
310 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args); 308 static void RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args);
311 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args); 309 static void RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args);
312 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); 310 static void RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args);
313 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args); 311 static void RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args);
314 static void RealmSharedGet(Local<String> property, 312 static void RealmSharedGet(Local<String> property,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 static Persistent<Context> evaluation_context_; 385 static Persistent<Context> evaluation_context_;
388 #ifndef V8_SHARED 386 #ifndef V8_SHARED
389 static Persistent<Context> utility_context_; 387 static Persistent<Context> utility_context_;
390 static CounterMap* counter_map_; 388 static CounterMap* counter_map_;
391 // We statically allocate a set of local counters to be used if we 389 // We statically allocate a set of local counters to be used if we
392 // don't want to store the stats in a memory-mapped file 390 // don't want to store the stats in a memory-mapped file
393 static CounterCollection local_counters_; 391 static CounterCollection local_counters_;
394 static CounterCollection* counters_; 392 static CounterCollection* counters_;
395 static i::OS::MemoryMappedFile* counters_file_; 393 static i::OS::MemoryMappedFile* counters_file_;
396 static i::Mutex context_mutex_; 394 static i::Mutex context_mutex_;
397 static const i::TimeTicks kInitialTicks;
398 395
399 static Counter* GetCounter(const char* name, bool is_histogram); 396 static Counter* GetCounter(const char* name, bool is_histogram);
400 static void InstallUtilityScript(Isolate* isolate); 397 static void InstallUtilityScript(Isolate* isolate);
401 #endif // V8_SHARED 398 #endif // V8_SHARED
402 static void Initialize(Isolate* isolate); 399 static void Initialize(Isolate* isolate);
403 static void InitializeDebugger(Isolate* isolate); 400 static void InitializeDebugger(Isolate* isolate);
404 static void RunShell(Isolate* isolate); 401 static void RunShell(Isolate* isolate);
405 static bool SetOptions(int argc, char* argv[]); 402 static bool SetOptions(int argc, char* argv[]);
406 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 403 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
407 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); 404 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback);
(...skipping 16 matching lines...) Expand all
424 static void ExternalArrayWeakCallback(Isolate* isolate, 421 static void ExternalArrayWeakCallback(Isolate* isolate,
425 Persistent<Object>* object, 422 Persistent<Object>* object,
426 uint8_t* data); 423 uint8_t* data);
427 }; 424 };
428 425
429 426
430 } // namespace v8 427 } // namespace v8
431 428
432 429
433 #endif // V8_D8_H_ 430 #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