Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/code-stubs.h

Issue 6937001: Compare IC: add STRINGS state. (Closed)
Patch Set: Ports Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698