| 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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 const int pos = position_.operand_position(index); | 1235 const int pos = position_.operand_position(index); |
| 1236 return (pos != RelocInfo::kNoPosition) ? pos : position(); | 1236 return (pos != RelocInfo::kNoPosition) ? pos : position(); |
| 1237 } | 1237 } |
| 1238 void set_operand_position(Zone* zone, int index, int pos) { | 1238 void set_operand_position(Zone* zone, int index, int pos) { |
| 1239 ASSERT(0 <= index && index < OperandCount()); | 1239 ASSERT(0 <= index && index < OperandCount()); |
| 1240 position_.ensure_storage_for_operand_positions(zone, OperandCount()); | 1240 position_.ensure_storage_for_operand_positions(zone, OperandCount()); |
| 1241 position_.set_operand_position(index, pos); | 1241 position_.set_operand_position(index, pos); |
| 1242 } | 1242 } |
| 1243 | 1243 |
| 1244 bool CanTruncateToInt32() const { return CheckFlag(kTruncatingToInt32); } | 1244 bool CanTruncateToInt32() const { return CheckFlag(kTruncatingToInt32); } |
| 1245 bool CanTruncateToSmi() const { return CheckFlag(kTruncatingToSmi); } |
| 1245 | 1246 |
| 1246 virtual LInstruction* CompileToLithium(LChunkBuilder* builder) = 0; | 1247 virtual LInstruction* CompileToLithium(LChunkBuilder* builder) = 0; |
| 1247 | 1248 |
| 1248 #ifdef DEBUG | 1249 #ifdef DEBUG |
| 1249 virtual void Verify() V8_OVERRIDE; | 1250 virtual void Verify() V8_OVERRIDE; |
| 1250 #endif | 1251 #endif |
| 1251 | 1252 |
| 1252 virtual bool HasStackCheck() { return false; } | 1253 virtual bool HasStackCheck() { return false; } |
| 1253 | 1254 |
| 1254 DECLARE_ABSTRACT_INSTRUCTION(Instruction) | 1255 DECLARE_ABSTRACT_INSTRUCTION(Instruction) |
| (...skipping 6188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7443 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7444 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7444 }; | 7445 }; |
| 7445 | 7446 |
| 7446 | 7447 |
| 7447 #undef DECLARE_INSTRUCTION | 7448 #undef DECLARE_INSTRUCTION |
| 7448 #undef DECLARE_CONCRETE_INSTRUCTION | 7449 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7449 | 7450 |
| 7450 } } // namespace v8::internal | 7451 } } // namespace v8::internal |
| 7451 | 7452 |
| 7452 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7453 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |