Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: src/assembler.h

Issue 837553009: Make fixups reference any constant (allow const float/double pool literals). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: tweak allocator to appease Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/assembler.h
diff --git a/src/assembler.h b/src/assembler.h
index cdbc50553a0a2bf4ea454537ff64fd82172f6cb2..ffb66f485099e9b507966f17659cf7659a0202b1 100644
--- a/src/assembler.h
+++ b/src/assembler.h
@@ -51,16 +51,20 @@ public:
FixupKind kind() const { return kind_; }
- const ConstantRelocatable *value() const { return value_; }
+ RelocOffsetT offset() const;
+
+ IceString symbol(GlobalContext *Ctx) const;
+
+ void emit(GlobalContext *Ctx) const;
protected:
- AssemblerFixup(FixupKind Kind, const ConstantRelocatable *Value)
+ AssemblerFixup(FixupKind Kind, const Constant *Value)
: position_(0), kind_(Kind), value_(Value) {}
private:
intptr_t position_;
FixupKind kind_;
- const ConstantRelocatable *value_;
+ const Constant *value_;
void set_position(intptr_t position) { position_ = position; }
@@ -230,7 +234,7 @@ public:
void emitIASBytes(GlobalContext *Ctx) const;
private:
- ArenaAllocator Allocator;
+ SizedArenaAllocator<32 * 1024> Allocator;
protected:
AssemblerBuffer buffer_;
« src/IceOperand.h ('K') | « src/IceTargetLoweringX8632.cpp ('k') | src/assembler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698