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/arm64/assembler-arm64.h

Issue 609843002: Refactor FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be architecture independent (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Re-factoring to enable FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be used by oth… Created 6 years, 2 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/arm64/assembler-arm64.h
diff --git a/src/arm64/assembler-arm64.h b/src/arm64/assembler-arm64.h
index 9b1c5e6746df488b42e11d96febf63d772202a89..280158c54cf83178e6d5f578677067445e3420b7 100644
--- a/src/arm64/assembler-arm64.h
+++ b/src/arm64/assembler-arm64.h
@@ -1895,6 +1895,12 @@ class Assembler : public AssemblerBase {
// Generate the constant pool for the generated code.
void PopulateConstantPool(ConstantPoolArray* constant_pool);
+ bool is_constant_pool_available() const {
+ // Constant pool is not supported on arm64.
+ UNREACHABLE();
+ return false;
+ }
+
rmcilroy 2014/10/02 15:01:37 I think we should put both is_constant_pool_avail
baixo 2014/10/09 09:08:14 Done.
// Returns true if we should emit a veneer as soon as possible for a branch
// which can at most reach to specified pc.
bool ShouldEmitVeneer(int max_reachable_pc,
@@ -2012,6 +2018,12 @@ class Assembler : public AssemblerBase {
Label* label,
Instruction* label_veneer = NULL);
+ void set_constant_pool_available(bool available) {
+ // Constant pool is not supported on arm64.
+ UNREACHABLE();
+ }
+
+
rmcilroy 2014/10/02 15:01:37 nit - remove extra newline.
baixo 2014/10/09 09:08:14 Done.
private:
// Instruction helpers.
void MoveWide(const Register& rd,
@@ -2248,6 +2260,10 @@ class Assembler : public AssemblerBase {
friend class PositionsRecorder;
friend class EnsureSpace;
friend class ConstPool;
+
+ // constant pool
rmcilroy 2014/10/02 15:01:37 These should move to BaseAssembler if you is_const
baixo 2014/10/09 09:08:14 Done.
+ friend class FrameAndConstantPoolScope;
+ friend class ConstantPoolUnavailableScope;
};
class PatchingAssembler : public Assembler {

Powered by Google App Engine
This is Rietveld 408576698