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
1f7b7ea5
Commit
1f7b7ea5
authored
Dec 08, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx: testing / workarounds
parent
3cc1f4d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
src/asm_writing/assembler.cpp
src/asm_writing/assembler.cpp
+3
-0
src/asm_writing/assembler.h
src/asm_writing/assembler.h
+2
-1
src/codegen/baseline_jit.cpp
src/codegen/baseline_jit.cpp
+3
-1
No files found.
src/asm_writing/assembler.cpp
View file @
1f7b7ea5
...
...
@@ -1141,6 +1141,7 @@ void Assembler::skipBytes(int num) {
ForwardJump
::
ForwardJump
(
Assembler
&
assembler
,
ConditionCode
condition
)
:
assembler
(
assembler
),
condition
(
condition
),
jmp_inst
(
assembler
.
curInstPointer
())
{
assembler
.
jmp_cond
(
JumpDestination
::
fromStart
(
assembler
.
bytesWritten
()
+
max_jump_size
),
condition
);
jmp_end
=
assembler
.
curInstPointer
();
}
ForwardJump
::~
ForwardJump
()
{
...
...
@@ -1149,6 +1150,8 @@ ForwardJump::~ForwardJump() {
RELEASE_ASSERT
(
offset
<
max_jump_size
,
""
);
assembler
.
setCurInstPointer
(
jmp_inst
);
assembler
.
jmp_cond
(
JumpDestination
::
fromStart
(
assembler
.
bytesWritten
()
+
offset
),
condition
);
while
(
assembler
.
curInstPointer
()
<
jmp_end
)
assembler
.
nop
();
assembler
.
setCurInstPointer
(
new_pos
);
}
}
...
...
src/asm_writing/assembler.h
View file @
1f7b7ea5
...
...
@@ -216,10 +216,11 @@ public:
// generated conditional jump with the correct offset depending on the number of bytes emitted in between.
class
ForwardJump
{
private:
const
int
max_jump_size
=
1
28
;
const
int
max_jump_size
=
1
048587
;
Assembler
&
assembler
;
ConditionCode
condition
;
uint8_t
*
jmp_inst
;
uint8_t
*
jmp_end
;
public:
ForwardJump
(
Assembler
&
assembler
,
ConditionCode
condition
);
...
...
src/codegen/baseline_jit.cpp
View file @
1f7b7ea5
...
...
@@ -561,7 +561,9 @@ void JitFragmentWriter::emitSetLocal(InternedString s, int vreg, bool set_closur
}
else
{
RewriterVar
*
prev
=
vregs_array
->
getAttr
(
8
*
vreg
);
vregs_array
->
setAttr
(
8
*
vreg
,
v
);
prev
->
xdecref
();
// XXX: this either needs to be an xdecref or we should check liveness analysis.
prev
->
decref
();
//prev->xdecref();
}
}
...
...
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