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