Commit 43344454 authored by Kevin Modzelewski's avatar Kevin Modzelewski

xxx testing

parent 0009190e
......@@ -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)) {
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment