| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // The copy constructor and assignment operators could each create a new | 63 // The copy constructor and assignment operators could each create a new |
| 64 // register reference. | 64 // register reference. |
| 65 Result(const Result& other) { | 65 Result(const Result& other) { |
| 66 other.CopyTo(this); | 66 other.CopyTo(this); |
| 67 } | 67 } |
| 68 | 68 |
| 69 Result& operator=(const Result& other) { | 69 Result& operator=(const Result& other) { |
| 70 if (this != &other) { | 70 if (this != &other) { |
| 71 Unuse(); | 71 Unuse(); |
| 72 other.CopyTo(this); | 72 other.CopyTo(this); |
| 73 // other.Unuse(); | |
| 74 } | 73 } |
| 75 return *this; | 74 return *this; |
| 76 } | 75 } |
| 77 | 76 |
| 78 ~Result() { Unuse(); } | 77 ~Result() { Unuse(); } |
| 79 | 78 |
| 80 void Unuse(); | 79 void Unuse(); |
| 81 | 80 |
| 82 Type type() const { return type_; } | 81 Type type() const { return type_; } |
| 83 | 82 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 221 } |
| 223 | 222 |
| 224 private: | 223 private: |
| 225 CodeGenerator* cgen_; | 224 CodeGenerator* cgen_; |
| 226 RegisterFile registers_; | 225 RegisterFile registers_; |
| 227 }; | 226 }; |
| 228 | 227 |
| 229 } } // namespace v8::internal | 228 } } // namespace v8::internal |
| 230 | 229 |
| 231 #endif // V8_REGISTER_ALLOCATOR_IA32_H_ | 230 #endif // V8_REGISTER_ALLOCATOR_IA32_H_ |
| OLD | NEW |