summaryrefslogtreecommitdiff
path: root/src/jit/jitstd.h
diff options
context:
space:
mode:
authorMike Danes <onemihaid@hotmail.com>2016-03-12 13:33:10 +0200
committerMike Danes <onemihaid@hotmail.com>2016-03-12 14:34:33 +0200
commit3807507338c410d9e8074a1a886cdcfa7dee7987 (patch)
tree52d7d1e5a2030f8d9f0f0644d1f06d435c530662 /src/jit/jitstd.h
parent4bee2d8ec820c2edf29e7d483629c091e2a4928e (diff)
downloadcoreclr-3807507338c410d9e8074a1a886cdcfa7dee7987.tar.gz
coreclr-3807507338c410d9e8074a1a886cdcfa7dee7987.tar.bz2
coreclr-3807507338c410d9e8074a1a886cdcfa7dee7987.zip
Avoid Interval and RefPosition unnecessary initialization and copying
RefPosition() builds a temporary object and initializes it with memset. push_back copies the temporary object to the list node. memset is called again to zero out the newly created RefPosition object. Add emplace methods to jitstd::list to avoid copying. Drop the redundant memset call.
Diffstat (limited to 'src/jit/jitstd.h')
-rw-r--r--src/jit/jitstd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jit/jitstd.h b/src/jit/jitstd.h
index 6bb1ddad99..59995fd89f 100644
--- a/src/jit/jitstd.h
+++ b/src/jit/jitstd.h
@@ -5,6 +5,8 @@
#include "allocator.h"
+#include "type_traits.h"
+#include "pair.h"
+#include "utility.h"
#include "unordered_map.h"
#include "unordered_set.h"
-#include "utility.h"