Reviewers: Rodolph Perfetta (ARM), ulan,

Description:
A64: Relax assert in register copy ctor.

It's ok to copy a "NoReg"-type regsiter

BUG=none
[email protected],[email protected]
LOG=n

Please review this at https://codereview.chromium.org/140893010/

SVN Base: https://v8.googlecode.com/svn/branches/experimental/a64

Affected files (+2, -2 lines):
  M src/a64/assembler-a64.h


Index: src/a64/assembler-a64.h
diff --git a/src/a64/assembler-a64.h b/src/a64/assembler-a64.h
index a27e1049c2452dbcf8a8948ea6d3161c334029fe..edda91e8418ab497318b4bc673861605f94794de 100644
--- a/src/a64/assembler-a64.h
+++ b/src/a64/assembler-a64.h
@@ -129,7 +129,7 @@ struct Register : public CPURegister {
     reg_code = r.reg_code;
     reg_size = r.reg_size;
     reg_type = r.reg_type;
-    ASSERT(IsValid());
+    ASSERT(IsValid() || IsNone());
   }

   bool IsValid() const {
@@ -232,7 +232,7 @@ struct FPRegister : public CPURegister {
     reg_code = r.reg_code;
     reg_size = r.reg_size;
     reg_type = r.reg_type;
-    ASSERT(IsValid());
+    ASSERT(IsValid() || IsNone());
   }

   bool IsValid() const {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to