Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swb: run write-barrier check/analyze from build.sh #1735

Merged
merged 4 commits into from
Oct 14, 2016

Conversation

jianchun
Copy link

Enable build.sh to run write-barrier check/analyze:

build.sh -n -d --wb-check lib/Runtime/Base/FunctionBody.cpp

// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

//===- RecyclerChecker.cpp ---------------------------------------------===//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this license is from the original sample I was working off of- I don't know if it needs to be preserved since this code is considerably different than the sample. In any case, the comment following the license should be fixed :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@digitalinfinity I'll remove the old license then. How about the 2 modules/Find???.cmake files? Do they need any license copy, or should we insert our license? (I'm currently excluding them from Jenkins.)

Jianchun Xu added 3 commits October 14, 2016 10:55
Revert enabling GLOBAL_FORCE_USE_WRITE_BARRIER on Windows. That should be
a test feature and also not ready to turn on.

`template<ObjectInfoBits>` does not accept `library->Enum...` for
instantiation. Should use `JavascriptLibrary::Enum...`.

Fix a few assertions.

Fix one case of `insertBeforeInstr/assignInstr` name regression.
Enable build.sh to run write-barrier check/analyze:

```
build.sh -n -d --wb-check lib/Runtime/Base/FunctionBody.cpp
```
@@ -154,8 +154,6 @@
#ifdef RECYCLER_WRITE_BARRIER
#if defined(__clang__)
#define GLOBAL_FORCE_USE_WRITE_BARRIER 1
#else
#define GLOBAL_FORCE_USE_WRITE_BARRIER 1 // force turn on write barrier in windows
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 [](start = 39, length = 2)

change to 0 instead of removing it? when we want to test it windows it's easier to turn on

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just go to line 155 and do #if 1 //defined...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or the force on windows functionality should be from a command line switch and populate here?

AsmJsModule.cpp calls TypedArray<..., true>::Create and results in link
error because the implementation is in cpp file and no explicit
instantiation. Also it would miss constructor implementation for the same
reason.

Fixed by moving both constructor and Create template implementations to
header file.
@jianchun
Copy link
Author

@dotnet-bot test linux tests please

@leirocks
Copy link
Contributor

:shipit:

@jianchun jianchun merged commit e1da27a into chakra-core:swb Oct 14, 2016
jianchun pushed a commit that referenced this pull request Oct 14, 2016
…ld.sh

Merge pull request #1735 from jianchun:swbscript

Enable build.sh to run write-barrier check/analyze:

```
build.sh -n -d --wb-check lib/Runtime/Base/FunctionBody.cpp
```

Also fix some build breaks and failures/assertions, fix copyright headers and tabs.
@jianchun jianchun deleted the swbscript branch October 14, 2016 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants