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

Side by Side Diff: src/default-platform.h

Issue 97073004: Make Time functions go through the Platform layer. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: Created 7 years 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
« no previous file with comments | « include/v8-platform.h ('k') | src/platform/default-platform-time.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 25 matching lines...) Expand all
36 class DefaultPlatform : public Platform { 36 class DefaultPlatform : public Platform {
37 public: 37 public:
38 DefaultPlatform(); 38 DefaultPlatform();
39 virtual ~DefaultPlatform(); 39 virtual ~DefaultPlatform();
40 40
41 // v8::Platform implementation. 41 // v8::Platform implementation.
42 virtual void CallOnBackgroundThread( 42 virtual void CallOnBackgroundThread(
43 Task *task, ExpectedRuntime expected_runtime) V8_OVERRIDE; 43 Task *task, ExpectedRuntime expected_runtime) V8_OVERRIDE;
44 virtual void CallOnForegroundThread(v8::Isolate *isolate, 44 virtual void CallOnForegroundThread(v8::Isolate *isolate,
45 Task *task) V8_OVERRIDE; 45 Task *task) V8_OVERRIDE;
46 virtual int64_t CurrentTime() V8_OVERRIDE;
47 virtual int64_t CurrentTimeFromSystemTime() V8_OVERRIDE;
48 virtual int64_t TimeTicksNow() V8_OVERRIDE;
49 virtual int64_t TimeTicksHighResNow() V8_OVERRIDE;
50 virtual bool TimeTicksHasHighRes() V8_OVERRIDE;
46 51
47 private: 52 private:
48 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); 53 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform);
49 }; 54 };
50 55
51 56
52 } } // namespace v8::internal 57 } } // namespace v8::internal
53 58
54 59
55 #endif // V8_DEFAULT_PLATFORM_H_ 60 #endif // V8_DEFAULT_PLATFORM_H_
OLDNEW
« no previous file with comments | « include/v8-platform.h ('k') | src/platform/default-platform-time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698