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

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

Issue 10263008: Implement clearing of CompareICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Vyacheslav Egorov. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/ia32/assembler-ia32.h » ('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 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
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
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_
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698