Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 3aff817

Browse files
committed
chakrashim: Move unordered_set to chakrashim
* Moved `unordered_set` to `v8-tracing.h` to match v8 * Fixed `int64`->`double` implicit cast in `v8-platform.h` PR-URL: #466 Reviewed-By: Taylor Woll <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
1 parent bf31cff commit 3aff817

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

deps/chakrashim/include/libplatform/v8-tracing.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
#include <fstream>
99
#include <memory>
10+
#include <unordered_set>
1011
#include <vector>
12+
1113
#include "v8-platform.h"
1214

1315
namespace v8 {

deps/chakrashim/include/v8-platform.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ class Platform {
202202

203203
protected:
204204
static double SystemClockTimeMillis() {
205-
return std::chrono::duration_cast<std::chrono::milliseconds>(
206-
std::chrono::system_clock::now().time_since_epoch()).count();
205+
return std::chrono::duration_cast<
206+
std::chrono::duration<double, std::milli>>(
207+
std::chrono::system_clock::now().time_since_epoch()).count();
207208
}
208209
};
209210

0 commit comments

Comments
 (0)