Skip to content

Commit bddda2d

Browse files
Merge remote-tracking branch 'origin/master' into linux
2 parents 8b36518 + 1e72545 commit bddda2d

5 files changed

Lines changed: 21 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ Contributions to ChakraCore are welcome. Here is how you can contribute to Chak
8989

9090
Please refer to [Contribution guidelines](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md) for more details.
9191

92+
### License
93+
94+
Code licensed under the [MIT License](https://github.com/Microsoft/ChakraCore/blob/master/LICENSE.txt).
95+
9296
## Roadmap
9397
For details on our planned features and future direction please refer to our [roadmap](https://github.com/Microsoft/ChakraCore/wiki/Roadmap).
9498

build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,11 @@ if [[ $? == 0 ]]; then
206206
fi
207207
fi
208208

209+
$MAKE $MULTICORE_BUILD 2>&1 | tee build.log
210+
_RET=${PIPESTATUS[0]}
211+
if [[ $_RET != 0 ]]; then
212+
echo Error: $MAKE return $_RET
213+
fi
214+
209215
popd > /dev/null
216+
exit $_RET

lib/Runtime/Base/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ add_library (Chakra.Runtime.Base STATIC
2828
ThreadContextTlsEntry.cpp
2929
ThreadServiceWrapperBase.cpp
3030
Utf8SourceInfo.cpp
31+
VTuneChakraProfile.cpp
3132
# WindowsFoundationAdapter.cpp
3233
# WindowsGlobalizationAdapter.cpp
3334
)

lib/Runtime/Base/VTuneChakraProfile.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,30 @@ bool VTuneChakraProfile::isJitProfilingActive = false;
1919
//
2020
void VTuneChakraProfile::Register()
2121
{
22+
#if ENABLE_NATIVE_CODEGEN
2223
isJitProfilingActive = (iJIT_IsProfilingActive() == iJIT_SAMPLING_ON);
24+
#endif
2325
}
2426

2527
//
2628
// Unregister and notify VTune that even sampling is done.
2729
//
2830
void VTuneChakraProfile::UnRegister()
2931
{
32+
#if ENABLE_NATIVE_CODEGEN
3033
if(isJitProfilingActive)
3134
{
3235
iJIT_NotifyEvent(iJVM_EVENT_TYPE_SHUTDOWN, NULL);
3336
}
37+
#endif
3438
}
3539

3640
//
3741
// Log JIT method native load event to VTune
3842
//
3943
void VTuneChakraProfile::LogMethodNativeLoadEvent(Js::FunctionBody* body, Js::FunctionEntryPointInfo* entryPoint)
4044
{
45+
#if ENABLE_NATIVE_CODEGEN
4146
if (isJitProfilingActive)
4247
{
4348
iJIT_Method_Load methodInfo;
@@ -105,13 +110,15 @@ void VTuneChakraProfile::LogMethodNativeLoadEvent(Js::FunctionBody* body, Js::Fu
105110
HeapDeleteArray(length, utf8MethodName);
106111
}
107112
}
113+
#endif
108114
}
109115

110116
//
111117
// Log loop body load event to VTune
112118
//
113119
void VTuneChakraProfile::LogLoopBodyLoadEvent(Js::FunctionBody* body, Js::LoopHeader* loopHeader, Js::LoopEntryPointInfo* entryPoint, uint16 loopNumber)
114120
{
121+
#if ENABLE_NATIVE_CODEGEN
115122
if (isJitProfilingActive)
116123
{
117124
iJIT_Method_Load methodInfo;
@@ -144,6 +151,7 @@ void VTuneChakraProfile::LogLoopBodyLoadEvent(Js::FunctionBody* body, Js::LoopHe
144151
HeapDeleteArray(length, utf8MethodName);
145152
}
146153
}
154+
#endif
147155
}
148156

149157
//

lib/Runtime/Base/VTuneChakraProfile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class VTuneChakraProfile
1515
static void Register();
1616
static void UnRegister();
1717

18-
static void LogMethodNativeLoadEvent(Js::FunctionBody* body, Js::FunctionEntryPointInfo* entryPoint);
18+
static void LogMethodNativeLoadEvent(Js::FunctionBody* body, Js::FunctionEntryPointInfo* entryPoint);
1919
static void LogLoopBodyLoadEvent(Js::FunctionBody* body, Js::LoopHeader* loopHeader, Js::LoopEntryPointInfo* entryPoint, uint16 loopNumber);
2020

2121
static const utf8char_t DynamicCode[];

0 commit comments

Comments
 (0)