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
43344454
Commit
43344454
authored
Dec 09, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx testing
parent
0009190e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/asm_writing/rewriter.cpp
src/asm_writing/rewriter.cpp
+1
-0
src/runtime/objmodel.h
src/runtime/objmodel.h
+2
-1
No files found.
src/asm_writing/rewriter.cpp
View file @
43344454
...
...
@@ -154,6 +154,7 @@ 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/runtime/objmodel.h
View file @
43344454
...
...
@@ -54,7 +54,8 @@ extern "C" void my_assert(bool b);
extern
"C"
Box
*
getattr
(
Box
*
obj
,
BoxedString
*
attr
);
extern
"C"
Box
*
getattr_capi
(
Box
*
obj
,
BoxedString
*
attr
)
noexcept
;
extern
"C"
Box
*
getattrMaybeNonstring
(
Box
*
obj
,
Box
*
attr
);
extern
"C"
void
setattr
(
Box
*
obj
,
BoxedString
*
attr
,
Box
*
attr_val
);
// XXX: testing. this tail-calls in optimized builds so force it to inline for unoptimized as well to get the same behavior.
extern
"C"
void
setattr
(
Box
*
obj
,
BoxedString
*
attr
,
Box
*
attr_val
)
__attribute__
((
always_inline
));
extern
"C"
void
setattrMaybeNonstring
(
Box
*
obj
,
Box
*
attr
,
Box
*
attr_val
);
extern
"C"
void
delattr
(
Box
*
obj
,
BoxedString
*
attr
);
extern
"C"
void
delattrMaybeNonstring
(
Box
*
obj
,
Box
*
attr
);
...
...
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