OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 417 |
418 virtual void FinishCode(Code* code) { code->set_compare_state(state_); } | 418 virtual void FinishCode(Code* code) { code->set_compare_state(state_); } |
419 | 419 |
420 virtual CodeStub::Major MajorKey() { return CompareIC; } | 420 virtual CodeStub::Major MajorKey() { return CompareIC; } |
421 virtual int MinorKey(); | 421 virtual int MinorKey(); |
422 | 422 |
423 virtual int GetCodeKind() { return Code::COMPARE_IC; } | 423 virtual int GetCodeKind() { return Code::COMPARE_IC; } |
424 | 424 |
425 void GenerateSmis(MacroAssembler* masm); | 425 void GenerateSmis(MacroAssembler* masm); |
426 void GenerateHeapNumbers(MacroAssembler* masm); | 426 void GenerateHeapNumbers(MacroAssembler* masm); |
| 427 void GenerateStrings(MacroAssembler* masm); |
427 void GenerateObjects(MacroAssembler* masm); | 428 void GenerateObjects(MacroAssembler* masm); |
428 void GenerateMiss(MacroAssembler* masm); | 429 void GenerateMiss(MacroAssembler* masm); |
429 | 430 |
430 bool strict() const { return op_ == Token::EQ_STRICT; } | 431 bool strict() const { return op_ == Token::EQ_STRICT; } |
431 Condition GetCondition() const { return CompareIC::ComputeCondition(op_); } | 432 Condition GetCondition() const { return CompareIC::ComputeCondition(op_); } |
432 | 433 |
433 Token::Value op_; | 434 Token::Value op_; |
434 CompareIC::State state_; | 435 CompareIC::State state_; |
435 }; | 436 }; |
436 | 437 |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 private: | 914 private: |
914 MacroAssembler* masm_; | 915 MacroAssembler* masm_; |
915 bool previous_allow_; | 916 bool previous_allow_; |
916 | 917 |
917 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); | 918 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); |
918 }; | 919 }; |
919 | 920 |
920 } } // namespace v8::internal | 921 } } // namespace v8::internal |
921 | 922 |
922 #endif // V8_CODE_STUBS_H_ | 923 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |