Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0cf7fd2
Modify build system to only set the ICU include folder in one place
jackhorton Sep 21, 2017
baee98f
Update bytecode GUID. (Fixes #3773)
jackhorton Sep 21, 2017
05ecc93
CommonDefines.h: define (commented-out) INTL_ICU for convenience whil…
dilijev Sep 15, 2017
0a8693a
build: Add icui18n.lib to Windows build's link dependencies.
dilijev Sep 25, 2017
dc7f89f
tests: added Intl tag to Object/toLocaleStringBasics.js
dilijev Sep 21, 2017
ddf671d
tests: Added require_winglob to tests which fail under Intl-ICU.
dilijev Sep 21, 2017
a06e5f8
tests: Fix filename case warnings from runtests.py
dilijev Sep 21, 2017
7ea910d
cleanup: IcuIntlAdapter: be consistent about prefixing error enums wi…
dilijev Sep 21, 2017
bf8ef01
Intl.js: Intl.NumberFormat constructor: change var to let
dilijev Sep 20, 2017
0061cb7
Intl.js: add 'latn' as default value for numberFormat.__numberingSystem
dilijev Sep 23, 2017
776eba7
Closes #3661: Provide ICU implementation of platform.currencyDigits
dilijev Sep 15, 2017
e2f3e6e
Closes #3664: Provide ICU implementation of platform.formatNumber
dilijev Sep 21, 2017
c1c09d3
platform.cacheNumberFormat; refactor ICU code to PlatformAgnostic.
dilijev Sep 21, 2017
85a052f
Update CMakeLists.txt for PlatformAgnostic
dilijev Sep 23, 2017
41a6268
Some xplat fixes.
dilijev Sep 23, 2017
1b764d2
Address review feedback and clean up.
dilijev Sep 25, 2017
6e153af
Closes #3716: Provide ICU implementation of platform.cacheNumberFormat
dilijev Sep 26, 2017
7c931ed
Ref #3664: Improve ICU implementation of platform.formatNumber
dilijev Sep 26, 2017
ed57ea6
Fix build errors on Linux --with-intl
dilijev Sep 27, 2017
cf88964
Ref #3664: Fix currency formatting in platform.formatNumber
dilijev Sep 27, 2017
c8d04f4
.gitignore: lib/wabt/built/
dilijev Sep 28, 2017
4f7e375
review: Use memset instead of zeroing the array in a loop.
dilijev Sep 28, 2017
39fefb7
review: remove gotos; reduce use of auto; check OOM first
dilijev Sep 28, 2017
e349a90
review: Remove unused code.
dilijev Sep 28, 2017
d22a23e
review: clean up and add notes about casting in Intl.cpp
dilijev Sep 28, 2017
e87f762
review: make AutoPtr design consistent.
dilijev Sep 28, 2017
66d4560
review: Add enum classes NumberFormatStyle and NumberFormatCurrencyDi…
dilijev Sep 29, 2017
9404757
review: use '#pragma once' in PlatformAgnostic headers.
dilijev Sep 29, 2017
c545900
Breaking apart and reclassifying tests.
dilijev Sep 28, 2017
c501bef
Refactor remainder of IcuIntlAdapter into PlatformAgnostic::Intl
dilijev Sep 29, 2017
029eea7
Add 'using namespace PlatformAgnostic::Intl' and '...::Resource' to i…
dilijev Sep 29, 2017
143466e
Fix whitespace in Intl.js
dilijev Sep 29, 2017
db0cde6
Update bytecode.
dilijev Sep 29, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ test/benchmarks/*.dpl
test/benchmarks/*.txt
testout*
packages.config
lib/wabt/built/

# CMake Files
cmake_install.cmake
Expand Down
7 changes: 6 additions & 1 deletion Build/Chakra.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@
<RuntimeLibrary Condition="'$(Configuration)'=='Debug' AND '$(RuntimeLib)'=='static_library'">MultiThreadedDebug</RuntimeLibrary>
<AdditionalIncludeDirectories>
$(ChakraCoreRootDirectory)\lib\common\placeholder;
$(IntDir)..\CoreManifests\
$(IntDir)..\CoreManifests;
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories Condition="'$(IntlICU)'=='true'">
$(IcuIncludeDir)\common;
$(IcuIncludeDir)\i18n;
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
</ClCompile>
Expand Down
6 changes: 2 additions & 4 deletions bin/ChakraCore/ChakraCore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
$(ChakraCoreRootDirectory)Lib\Jsrt;
$(IntDir);
$(ChakraJITIDLIntDir);
$(IcuIncludeDir)\common;
$(MSBuildThisFileDirectory)..\..\lib\JITClient;
%(AdditionalIncludeDirectories);
</AdditionalIncludeDirectories>
Expand All @@ -56,10 +55,9 @@
<AdditionalDependencies Condition="'$(IntlICU)'=='true'">
%(AdditionalDependencies);
<!-- TODO cleanup: we do need to link to ICU libraries in ChakraCore, but we probably will not need all of them -->
<!--$(IcuLibDir)\icudata.lib;-->
<!--$(IcuLibDir)\icui18n.lib;-->
<!--$(IcuLibDir)\icustubdata.lib;-->
$(IcuLibDir)\icutools.lib;
$(IcuLibDir)\icui18n.lib;
<!--$(IcuLibDir)\icudata.lib;-->
<!--$(IcuLibDir)\icuucx.lib;-->
</AdditionalDependencies>
<DelayLoadDLLs>%(DelayLoadDLLs);oleaut32.dll</DelayLoadDLLs>
Expand Down
3 changes: 1 addition & 2 deletions lib/Backend/Chakra.Backend.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
$(MSBuildThisFileDirectory)..\Parser;
$(MSBuildThisFileDirectory)..\WasmReader;
$(ChakraJITIDLIntDir);
$(IcuIncludeDir)\common;
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<PrecompiledHeader>Use</PrecompiledHeader>
Expand Down Expand Up @@ -483,4 +482,4 @@
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
<Import Project="$(BuildConfig_ARMASM_Path)armasm.targets" />
</ImportGroup>
</Project>
</Project>
1 change: 1 addition & 0 deletions lib/Common/CommonDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
#if defined(_WIN32) || defined(INTL_ICU)
#define ENABLE_INTL_OBJECT // Intl support
#endif
//#define INTL_ICU 1 // NOTE: uncomment this to allow the IDE to see INTL_ICU blocks
#ifdef INTL_ICU
#ifdef DBG
//#define INTL_ICU_DEBUG 1 // NOTE: uncomment this to display INTL_ICU-specific debug output
Expand Down
3 changes: 3 additions & 0 deletions lib/Common/Core/AllocSizeMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

#pragma once

class AllocSizeMath
{
static const size_t MaxMemory = static_cast<size_t>(-1);
Expand Down
6 changes: 1 addition & 5 deletions lib/Common/PlatformAgnostic/DateTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

#ifndef RUNTIME_PLATFORM_AGNOSTIC_COMMON_DATETIME
#define RUNTIME_PLATFORM_AGNOSTIC_COMMON_DATETIME
#pragma once

#include "PlatformAgnostic/DateTimeInternal.h"

Expand Down Expand Up @@ -77,5 +75,3 @@ namespace DateTime

} // namespace DateTime
} // namespace PlatformAgnostic

#endif // RUNTIME_PLATFORM_AGNOSTIC_COMMON_DATETIME
6 changes: 1 addition & 5 deletions lib/Common/PlatformAgnostic/DateTimeInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

#ifndef RUNTIME_PLATFORM_AGNOSTIC_DATETIME_INTERNAL
#define RUNTIME_PLATFORM_AGNOSTIC_DATETIME_INTERNAL
#pragma once

#include "Core/CommonTypedefs.h"

Expand Down Expand Up @@ -107,5 +105,3 @@ namespace DateTime

} // namespace DateTime
} // namespace PlatformAgnostic

#endif // RUNTIME_PLATFORM_AGNOSTIC_DATETIME_INTERNAL
6 changes: 1 addition & 5 deletions lib/Common/PlatformAgnostic/Debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

#ifndef RUNTIME_PLATFORM_AGNOSTIC_DEBUGGER
#define RUNTIME_PLATFORM_AGNOSTIC_DEBUGGER
#pragma once

#ifndef _WIN32

Expand Down Expand Up @@ -131,5 +129,3 @@ class IActiveScriptProfilerCallback
#define IActiveScriptProfilerCallback3 IActiveScriptProfilerCallback

#endif // !_WIN32

#endif // RUNTIME_PLATFORM_AGNOSTIC_DEBUGGER
6 changes: 1 addition & 5 deletions lib/Common/PlatformAgnostic/Numbers.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

#ifndef RUNTIME_PLATFORM_AGNOSTIC_COMMON_NUMBERS
#define RUNTIME_PLATFORM_AGNOSTIC_COMMON_NUMBERS
#pragma once

namespace PlatformAgnostic
{
Expand Down Expand Up @@ -51,5 +49,3 @@ namespace Numbers
};
} // namespace Numbers
} // namespace PlatformAgnostic

#endif // RUNTIME_PLATFORM_AGNOSTIC_COMMON_NUMBERS
6 changes: 1 addition & 5 deletions lib/Common/PlatformAgnostic/SystemInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

#ifndef RUNTIME_PLATFORM_AGNOSTIC_COMMON_SYSTEMINFO
#define RUNTIME_PLATFORM_AGNOSTIC_COMMON_SYSTEMINFO
#pragma once

namespace PlatformAgnostic
{
Expand Down Expand Up @@ -80,5 +78,3 @@ namespace PlatformAgnostic
#endif
};
} // namespace PlatformAgnostic

#endif // RUNTIME_PLATFORM_AGNOSTIC_COMMON_SYSTEMINFO
6 changes: 1 addition & 5 deletions lib/Common/PlatformAgnostic/Thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

#ifndef RUNTIME_PLATFORM_AGNOSTIC_COMMON_THREAD
#define RUNTIME_PLATFORM_AGNOSTIC_COMMON_THREAD
#pragma once

namespace PlatformAgnostic
{
Expand All @@ -26,5 +24,3 @@ class Thread
ThreadInitFlag init_flag);
};
} // namespace PlatformAgnostic

#endif // RUNTIME_PLATFORM_AGNOSTIC_COMMON_THREAD
3 changes: 1 addition & 2 deletions lib/JITServer/Chakra.JITServer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
$(MSBuildThisFileDirectory)..\Backend\$(PlatformPathNameAlt);
$(MSBuildThisFileDirectory)..\Backend;
$(ChakraJITIDLIntDir);
$(IcuIncludeDir)\common;
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<PrecompiledHeader>Use</PrecompiledHeader>
Expand All @@ -57,4 +56,4 @@
</ItemDefinitionGroup>
<Import Project="$(BuildConfigPropsPath)Chakra.Build.targets" Condition="exists('$(BuildConfigPropsPath)Chakra.Build.targets')" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
</Project>
3 changes: 1 addition & 2 deletions lib/Jsrt/Chakra.Jsrt.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
$(MSBuildThisFileDirectory);
$(MSBuildThisFileDirectory)..\Runtime;
$(ChakraJITIDLIntDir);
$(IcuIncludeDir)\common;
$(MSBuildThisFileDirectory)..\JITClient;
$(MSBuildThisFileDirectory)..\Runtime\ByteCode;
$(MSBuildThisFileDirectory)..\Common;
Expand Down Expand Up @@ -91,4 +90,4 @@
</ItemGroup>
<Import Project="$(BuildConfigPropsPath)Chakra.Build.targets" Condition="exists('$(BuildConfigPropsPath)Chakra.Build.targets')" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
</Project>
3 changes: 1 addition & 2 deletions lib/Jsrt/Core/Chakra.Jsrt.Core.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
$(MSBuildThisFileDirectory)..;
$(MSBuildThisFileDirectory)..\..\Runtime;
$(ChakraJITIDLIntDir);
$(IcuIncludeDir)\common;
$(MSBuildThisFileDirectory)..\..\JITClient;
$(MSBuildThisFileDirectory)..\..\Runtime\ByteCode;
$(MSBuildThisFileDirectory)..\..\Common;
Expand All @@ -50,4 +49,4 @@
</ItemGroup>
<Import Project="$(BuildConfigPropsPath)Chakra.Build.targets" Condition="exists('$(BuildConfigPropsPath)Chakra.Build.targets')" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
</Project>
1 change: 0 additions & 1 deletion lib/Parser/Chakra.Parser.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
$(MSBuildThisFileDirectory)..\Runtime;
$(MSBuildThisFileDirectory)..\Runtime\ByteCode;
$(ChakraJITIDLIntDir);
$(IcuIncludeDir)\common;
$(ChakraManifestsIncludeDirectory);
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
Expand Down
1 change: 0 additions & 1 deletion lib/Runtime/Base/Chakra.Runtime.Base.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
$(MSBuildThisFileDirectory)..\..\Runtime\ByteCode;
$(MSBuildThisFileDirectory)..\..\WasmReader;
$(ChakraJITIDLIntDir);
$(IcuIncludeDir)\common;
$(MSBuildThisFileDirectory)..\..\JITClient;
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
Expand Down
Loading