From e4ac0105b8868317ef58c397a4469fe288331c5a Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 19 Oct 2016 06:32:13 -0700 Subject: [PATCH] Move DivisionByConstant template instantiations to cpp file R=bmeurer@chromium.org BUG= Review-Url: https://chromiumcodereview.appspot.com/2437733002 Cr-Commit-Position: refs/heads/master@{#40436} --- src/base/division-by-constant.cc | 3 +++ src/base/division-by-constant.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/division-by-constant.cc b/src/base/division-by-constant.cc index 3d8fc1a4a9..03d198e9bf 100644 --- a/src/base/division-by-constant.cc +++ b/src/base/division-by-constant.cc @@ -93,6 +93,9 @@ MagicNumbersForDivision UnsignedDivisionByConstant(T d, // ----------------------------------------------------------------------------- // Instantiations. +template struct V8_BASE_EXPORT MagicNumbersForDivision; +template struct V8_BASE_EXPORT MagicNumbersForDivision; + template MagicNumbersForDivision SignedDivisionByConstant(uint32_t d); template MagicNumbersForDivision SignedDivisionByConstant(uint64_t d); diff --git a/src/base/division-by-constant.h b/src/base/division-by-constant.h index d018ea5ff1..5d063f8bd5 100644 --- a/src/base/division-by-constant.h +++ b/src/base/division-by-constant.h @@ -44,9 +44,6 @@ template V8_BASE_EXPORT MagicNumbersForDivision UnsignedDivisionByConstant( T d, unsigned leading_zeros = 0); -template struct V8_BASE_EXPORT MagicNumbersForDivision; -template struct V8_BASE_EXPORT MagicNumbersForDivision; - extern template V8_BASE_EXPORT MagicNumbersForDivision SignedDivisionByConstant(uint32_t d); extern template V8_BASE_EXPORT MagicNumbersForDivision