| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
| 130 v8::Isolate* mainThreadIsolate() | 130 v8::Isolate* mainThreadIsolate() |
| 131 { | 131 { |
| 132 return V8PerIsolateData::mainThreadIsolate(); | 132 return V8PerIsolateData::mainThreadIsolate(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 static double currentTimeFunction() | 135 static double currentTimeFunction() |
| 136 { | 136 { |
| 137 return Platform::current()->currentTime(); | 137 return Platform::current()->currentTimeSeconds(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 static double monotonicallyIncreasingTimeFunction() | 140 static double monotonicallyIncreasingTimeFunction() |
| 141 { | 141 { |
| 142 return Platform::current()->monotonicallyIncreasingTime(); | 142 return Platform::current()->monotonicallyIncreasingTimeSeconds(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 static double systemTraceTimeFunction() | 145 static double systemTraceTimeFunction() |
| 146 { | 146 { |
| 147 return Platform::current()->systemTraceTime(); | 147 return Platform::current()->systemTraceTime(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 static void histogramEnumerationFunction(const char* name, int sample, int bound
aryValue) | 150 static void histogramEnumerationFunction(const char* name, int sample, int bound
aryValue) |
| 151 { | 151 { |
| 152 Platform::current()->histogramEnumeration(name, sample, boundaryValue); | 152 Platform::current()->histogramEnumeration(name, sample, boundaryValue); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 ASSERT(!reloadPages); | 295 ASSERT(!reloadPages); |
| 296 Page::refreshPlugins(); | 296 Page::refreshPlugins(); |
| 297 } | 297 } |
| 298 | 298 |
| 299 void decommitFreeableMemory() | 299 void decommitFreeableMemory() |
| 300 { | 300 { |
| 301 WTF::Partitions::decommitFreeableMemory(); | 301 WTF::Partitions::decommitFreeableMemory(); |
| 302 } | 302 } |
| 303 | 303 |
| 304 } // namespace blink | 304 } // namespace blink |
| OLD | NEW |