| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 return runtime_operands_type_ != BinaryOpIC::STRINGS; | 191 return runtime_operands_type_ != BinaryOpIC::STRINGS; |
| 192 } | 192 } |
| 193 | 193 |
| 194 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } | 194 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } |
| 195 | 195 |
| 196 virtual InlineCacheState GetICState() { | 196 virtual InlineCacheState GetICState() { |
| 197 return BinaryOpIC::ToState(runtime_operands_type_); | 197 return BinaryOpIC::ToState(runtime_operands_type_); |
| 198 } | 198 } |
| 199 | 199 |
| 200 friend class CodeGenerator; | 200 friend class CodeGenerator; |
| 201 friend class LCodeGen; |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 | 204 |
| 204 class TypeRecordingBinaryOpStub: public CodeStub { | 205 class TypeRecordingBinaryOpStub: public CodeStub { |
| 205 public: | 206 public: |
| 206 TypeRecordingBinaryOpStub(Token::Value op, OverwriteMode mode) | 207 TypeRecordingBinaryOpStub(Token::Value op, OverwriteMode mode) |
| 207 : op_(op), | 208 : op_(op), |
| 208 mode_(mode), | 209 mode_(mode), |
| 209 operands_type_(TRBinaryOpIC::UNINITIALIZED), | 210 operands_type_(TRBinaryOpIC::UNINITIALIZED), |
| 210 result_type_(TRBinaryOpIC::UNINITIALIZED), | 211 result_type_(TRBinaryOpIC::UNINITIALIZED), |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 void Print() { | 443 void Print() { |
| 443 PrintF("NumberToStringStub\n"); | 444 PrintF("NumberToStringStub\n"); |
| 444 } | 445 } |
| 445 #endif | 446 #endif |
| 446 }; | 447 }; |
| 447 | 448 |
| 448 | 449 |
| 449 } } // namespace v8::internal | 450 } } // namespace v8::internal |
| 450 | 451 |
| 451 #endif // V8_X64_CODE_STUBS_X64_H_ | 452 #endif // V8_X64_CODE_STUBS_X64_H_ |
| OLD | NEW |