| 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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 virtual void Generate(MacroAssembler* masm); | 491 virtual void Generate(MacroAssembler* masm); |
| 492 | 492 |
| 493 void set_known_map(Handle<Map> map) { known_map_ = map; } | 493 void set_known_map(Handle<Map> map) { known_map_ = map; } |
| 494 | 494 |
| 495 private: | 495 private: |
| 496 class OpField: public BitField<int, 0, 3> { }; | 496 class OpField: public BitField<int, 0, 3> { }; |
| 497 class StateField: public BitField<int, 3, 5> { }; | 497 class StateField: public BitField<int, 3, 5> { }; |
| 498 | 498 |
| 499 virtual void FinishCode(Handle<Code> code) { | 499 virtual void FinishCode(Handle<Code> code) { |
| 500 code->set_compare_state(state_); | 500 code->set_compare_state(state_); |
| 501 code->set_compare_operation(op_); |
| 501 } | 502 } |
| 502 | 503 |
| 503 virtual CodeStub::Major MajorKey() { return CompareIC; } | 504 virtual CodeStub::Major MajorKey() { return CompareIC; } |
| 504 virtual int MinorKey(); | 505 virtual int MinorKey(); |
| 505 | 506 |
| 506 virtual int GetCodeKind() { return Code::COMPARE_IC; } | 507 virtual int GetCodeKind() { return Code::COMPARE_IC; } |
| 507 | 508 |
| 508 void GenerateSmis(MacroAssembler* masm); | 509 void GenerateSmis(MacroAssembler* masm); |
| 509 void GenerateHeapNumbers(MacroAssembler* masm); | 510 void GenerateHeapNumbers(MacroAssembler* masm); |
| 510 void GenerateSymbols(MacroAssembler* masm); | 511 void GenerateSymbols(MacroAssembler* masm); |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 int MinorKey() { return 0; } | 1141 int MinorKey() { return 0; } |
| 1141 | 1142 |
| 1142 void Generate(MacroAssembler* masm); | 1143 void Generate(MacroAssembler* masm); |
| 1143 | 1144 |
| 1144 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub); | 1145 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub); |
| 1145 }; | 1146 }; |
| 1146 | 1147 |
| 1147 } } // namespace v8::internal | 1148 } } // namespace v8::internal |
| 1148 | 1149 |
| 1149 #endif // V8_CODE_STUBS_H_ | 1150 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |