X87: [strong] Refactor ObjectStrength into a replacement for strong boolean args
authorcdai2 <chunyang.dai@intel.com>
Thu, 11 Jun 2015 16:00:39 +0000 (00:00 +0800)
committercdai2 <chunyang.dai@intel.com>
Thu, 11 Jun 2015 15:57:17 +0000 (15:57 +0000)
port dd8544495109804c632bfbcefc3c5c701e0a8c43 (r28839)

original commit message:

    Boolean "is_strong" parameters have begun to proliferate across areas where
    strong mode semantics are different. This CL repurposes the existing
    ObjectStrength enum as a replacement for them.

BUG=
R=weiliang.lin@intel.com

Review URL: https://codereview.chromium.org/1173973002

Cr-Commit-Position: refs/heads/master@{#28952}

src/x87/lithium-x87.h

index cc4620d99e6251ed8b024399a67003d019006118..2e95cab4ab2134bf25412dd3e02beaf3a58269c6 100644 (file)
@@ -1182,7 +1182,7 @@ class LCmpT final : public LTemplateInstruction<1, 3, 0> {
   DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
   DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
 
-  LanguageMode language_mode() { return hydrogen()->language_mode(); }
+  Strength strength() { return hydrogen()->strength(); }
 
   LOperand* context() { return inputs_[0]; }
   Token::Value op() const { return hydrogen()->token(); }
@@ -1549,7 +1549,7 @@ class LArithmeticT final : public LTemplateInstruction<1, 3, 0> {
 
   DECLARE_HYDROGEN_ACCESSOR(BinaryOperation)
 
-  LanguageMode language_mode() { return hydrogen()->language_mode(); }
+  Strength strength() { return hydrogen()->strength(); }
 
  private:
   Token::Value op_;