Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
d00c49ac
Commit
d00c49ac
authored
Aug 08, 2016
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove pointers_in_code it's unused
parent
81c744b5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
12 deletions
+0
-12
src/codegen/irgen.cpp
src/codegen/irgen.cpp
+0
-1
src/codegen/irgen/util.cpp
src/codegen/irgen/util.cpp
+0
-8
src/core/types.h
src/core/types.h
+0
-3
No files found.
src/codegen/irgen.cpp
View file @
d00c49ac
...
...
@@ -1088,7 +1088,6 @@ std::pair<CompiledFunction*, llvm::Function*> doCompile(FunctionMetadata* md, So
}
CompiledFunction
*
cf
=
new
CompiledFunction
(
md
,
spec
,
NULL
,
effort
,
exception_style
,
entry_descriptor
);
setPointersInCodeStorage
(
&
cf
->
pointers_in_code
);
// Make sure that the instruction memory keeps the module object alive.
// TODO: implement this for real
...
...
src/codegen/irgen/util.cpp
View file @
d00c49ac
...
...
@@ -100,18 +100,10 @@ llvm::Constant* getStringConstantPtr(llvm::StringRef str) {
static
llvm
::
StringMap
<
const
void
*>
relocatable_syms
;
// Pointer to a vector where we want to keep track of all the pointers written directly into
// the compiled code, which the GC needs to be aware of.
std
::
vector
<
const
void
*>*
pointers_in_code
;
void
clearRelocatableSymsMap
()
{
relocatable_syms
.
clear
();
}
void
setPointersInCodeStorage
(
std
::
vector
<
const
void
*>*
v
)
{
pointers_in_code
=
v
;
}
const
void
*
getValueOfRelocatableSym
(
const
std
::
string
&
str
)
{
auto
it
=
relocatable_syms
.
find
(
str
);
if
(
it
!=
relocatable_syms
.
end
())
...
...
src/core/types.h
View file @
d00c49ac
...
...
@@ -345,9 +345,6 @@ public:
// Otherwise this field is NULL.
const
OSREntryDescriptor
*
entry_descriptor
;
// Pointers that were written directly into the code, which the GC should be aware of.
std
::
vector
<
const
void
*>
pointers_in_code
;
// The function pointer to the generated code. For convenience, it can be accessed
// as one of many different types.
// TODO: we instead make these accessor-functions that make sure that the code actually
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment