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

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

Issue 6960011: Compare IC: add SYMBOLS state. (Closed)
Patch Set: 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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