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
b5d22ec7
Commit
b5d22ec7
authored
May 20, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn these optimizations back on
parent
1cfb7acf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
src/asm_writing/rewriter.cpp
src/asm_writing/rewriter.cpp
+0
-1
src/codegen/ast_interpreter.cpp
src/codegen/ast_interpreter.cpp
+2
-3
src/codegen/baseline_jit.cpp
src/codegen/baseline_jit.cpp
+1
-2
No files found.
src/asm_writing/rewriter.cpp
View file @
b5d22ec7
...
...
@@ -163,7 +163,6 @@ bool Rewriter::ConstLoader::tryRegRegMove(uint64_t val, assembler::Register dst_
bool
Rewriter
::
ConstLoader
::
tryLea
(
uint64_t
val
,
assembler
::
Register
dst_reg
)
{
assert
(
rewriter
->
phase_emitting
);
return
false
;
// for large constants it maybe beneficial to create the value with a LEA from a known const value
if
(
isLargeConstant
(
val
))
{
...
...
src/codegen/ast_interpreter.cpp
View file @
b5d22ec7
...
...
@@ -679,9 +679,8 @@ Value ASTInterpreter::visit_jump(AST_Jump* node) {
// we may have started JITing because the OSR thresholds got triggered in this case we don't want to jit
// additional blocks ouside of the loop if the function is cold.
// XXX reenable this
// if (getMD()->times_interpreted < REOPT_THRESHOLD_INTERPRETER)
// should_jit = false;
if
(
getMD
()
->
times_interpreted
<
REOPT_THRESHOLD_INTERPRETER
)
should_jit
=
false
;
}
if
(
backedge
)
...
...
src/codegen/baseline_jit.cpp
View file @
b5d22ec7
...
...
@@ -179,8 +179,7 @@ RewriterVar* JitFragmentWriter::emitAugbinop(AST_expr* node, RewriterVar* lhs, R
}
RewriterVar
*
JitFragmentWriter
::
emitBinop
(
AST_expr
*
node
,
RewriterVar
*
lhs
,
RewriterVar
*
rhs
,
int
op_type
)
{
/// XXX increase this too much for testing
return
emitPPCall
((
void
*
)
binop
,
{
lhs
,
rhs
,
imm
(
op_type
)
},
2
,
640
,
node
).
first
->
setType
(
RefType
::
OWNED
);
return
emitPPCall
((
void
*
)
binop
,
{
lhs
,
rhs
,
imm
(
op_type
)
},
2
,
240
,
node
).
first
->
setType
(
RefType
::
OWNED
);
}
RewriterVar
*
JitFragmentWriter
::
emitCallattr
(
AST_expr
*
node
,
RewriterVar
*
obj
,
BoxedString
*
attr
,
CallattrFlags
flags
,
...
...
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