| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |