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

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: go back to one arenaallocator type alias 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
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/assembler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.h
diff --git a/src/assembler.h b/src/assembler.h
index cdbc50553a0a2bf4ea454537ff64fd82172f6cb2..44159e0bd31aac3d6edc435fbc9f3aec1c3db83e 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;
+ ArenaAllocator<32 * 1024> Allocator;
protected:
AssemblerBuffer buffer_;
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/assembler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698