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

Side by Side Diff: src/platform.h

Issue 10105026: Version 3.10.3 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 8 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/parser.cc ('k') | src/platform-cygwin.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 class OS { 117 class OS {
118 public: 118 public:
119 // Initializes the platform OS support. Called once at VM startup. 119 // Initializes the platform OS support. Called once at VM startup.
120 static void SetUp(); 120 static void SetUp();
121 121
122 // Initializes the platform OS support that depend on CPU features. This is 122 // Initializes the platform OS support that depend on CPU features. This is
123 // called after CPU initialization. 123 // called after CPU initialization.
124 static void PostSetUp(); 124 static void PostSetUp();
125 125
126 // Clean up platform-OS-related things. Called once at VM shutdown.
127 static void TearDown();
128
126 // Returns the accumulated user time for thread. This routine 129 // Returns the accumulated user time for thread. This routine
127 // can be used for profiling. The implementation should 130 // can be used for profiling. The implementation should
128 // strive for high-precision timer resolution, preferable 131 // strive for high-precision timer resolution, preferable
129 // micro-second resolution. 132 // micro-second resolution.
130 static int GetUserTime(uint32_t* secs, uint32_t* usecs); 133 static int GetUserTime(uint32_t* secs, uint32_t* usecs);
131 134
132 // Get a tick counter normalized to one tick per microsecond. 135 // Get a tick counter normalized to one tick per microsecond.
133 // Used for calculating time intervals. 136 // Used for calculating time intervals.
134 static int64_t Ticks(); 137 static int64_t Ticks();
135 138
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 Atomic32 active_; 756 Atomic32 active_;
754 PlatformData* data_; // Platform specific data. 757 PlatformData* data_; // Platform specific data.
755 int samples_taken_; // Counts stack samples taken. 758 int samples_taken_; // Counts stack samples taken.
756 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 759 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
757 }; 760 };
758 761
759 762
760 } } // namespace v8::internal 763 } } // namespace v8::internal
761 764
762 #endif // V8_PLATFORM_H_ 765 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698