| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|     2 // Redistribution and use in source and binary forms, with or without |     2 // Redistribution and use in source and binary forms, with or without | 
|     3 // modification, are permitted provided that the following conditions are |     3 // modification, are permitted provided that the following conditions are | 
|     4 // met: |     4 // met: | 
|     5 // |     5 // | 
|     6 //     * Redistributions of source code must retain the above copyright |     6 //     * Redistributions of source code must retain the above copyright | 
|     7 //       notice, this list of conditions and the following disclaimer. |     7 //       notice, this list of conditions and the following disclaimer. | 
|     8 //     * Redistributions in binary form must reproduce the above |     8 //     * Redistributions in binary form must reproduce the above | 
|     9 //       copyright notice, this list of conditions and the following |     9 //       copyright notice, this list of conditions and the following | 
|    10 //       disclaimer in the documentation and/or other materials provided |    10 //       disclaimer in the documentation and/or other materials provided | 
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   938   bool ToStringCanBeObserved() const { |   938   bool ToStringCanBeObserved() const { | 
|   939     return type().ToStringOrToNumberCanBeObserved(representation()); |   939     return type().ToStringOrToNumberCanBeObserved(representation()); | 
|   940   } |   940   } | 
|   941  |   941  | 
|   942   // Returns true conservatively if the program might be able to observe a |   942   // Returns true conservatively if the program might be able to observe a | 
|   943   // ToNumber() operation on this value. |   943   // ToNumber() operation on this value. | 
|   944   bool ToNumberCanBeObserved() const { |   944   bool ToNumberCanBeObserved() const { | 
|   945     return type().ToStringOrToNumberCanBeObserved(representation()); |   945     return type().ToStringOrToNumberCanBeObserved(representation()); | 
|   946   } |   946   } | 
|   947  |   947  | 
 |   948   MinusZeroMode GetMinusZeroMode() { | 
 |   949     return CheckFlag(kBailoutOnMinusZero) | 
 |   950         ? FAIL_ON_MINUS_ZERO : TREAT_MINUS_ZERO_AS_ZERO; | 
 |   951   } | 
 |   952  | 
|   948  protected: |   953  protected: | 
|   949   // This function must be overridden for instructions with flag kUseGVN, to |   954   // This function must be overridden for instructions with flag kUseGVN, to | 
|   950   // compare the non-Operand parts of the instruction. |   955   // compare the non-Operand parts of the instruction. | 
|   951   virtual bool DataEquals(HValue* other) { |   956   virtual bool DataEquals(HValue* other) { | 
|   952     UNREACHABLE(); |   957     UNREACHABLE(); | 
|   953     return false; |   958     return false; | 
|   954   } |   959   } | 
|   955  |   960  | 
|   956   virtual Representation RepresentationFromInputs() { |   961   virtual Representation RepresentationFromInputs() { | 
|   957     return representation(); |   962     return representation(); | 
| (...skipping 5838 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  6796   virtual bool IsDeletable() const V8_OVERRIDE { return true; } |  6801   virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 
|  6797 }; |  6802 }; | 
|  6798  |  6803  | 
|  6799  |  6804  | 
|  6800 #undef DECLARE_INSTRUCTION |  6805 #undef DECLARE_INSTRUCTION | 
|  6801 #undef DECLARE_CONCRETE_INSTRUCTION |  6806 #undef DECLARE_CONCRETE_INSTRUCTION | 
|  6802  |  6807  | 
|  6803 } }  // namespace v8::internal |  6808 } }  // namespace v8::internal | 
|  6804  |  6809  | 
|  6805 #endif  // V8_HYDROGEN_INSTRUCTIONS_H_ |  6810 #endif  // V8_HYDROGEN_INSTRUCTIONS_H_ | 
| OLD | NEW |