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

Side by Side Diff: src/objects-inl.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/objects.cc ('k') | src/x64/assembler-x64.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 3173 matching lines...) Expand 10 before | Expand all | Expand 10 after
3184 return READ_BYTE_FIELD(this, kCompareStateOffset); 3184 return READ_BYTE_FIELD(this, kCompareStateOffset);
3185 } 3185 }
3186 3186
3187 3187
3188 void Code::set_compare_state(byte value) { 3188 void Code::set_compare_state(byte value) {
3189 ASSERT(is_compare_ic_stub()); 3189 ASSERT(is_compare_ic_stub());
3190 WRITE_BYTE_FIELD(this, kCompareStateOffset, value); 3190 WRITE_BYTE_FIELD(this, kCompareStateOffset, value);
3191 } 3191 }
3192 3192
3193 3193
3194 byte Code::compare_operation() {
3195 ASSERT(is_compare_ic_stub());
3196 return READ_BYTE_FIELD(this, kCompareOperationOffset);
3197 }
3198
3199
3200 void Code::set_compare_operation(byte value) {
3201 ASSERT(is_compare_ic_stub());
3202 WRITE_BYTE_FIELD(this, kCompareOperationOffset, value);
3203 }
3204
3205
3194 byte Code::to_boolean_state() { 3206 byte Code::to_boolean_state() {
3195 ASSERT(is_to_boolean_ic_stub()); 3207 ASSERT(is_to_boolean_ic_stub());
3196 return READ_BYTE_FIELD(this, kToBooleanTypeOffset); 3208 return READ_BYTE_FIELD(this, kToBooleanTypeOffset);
3197 } 3209 }
3198 3210
3199 3211
3200 void Code::set_to_boolean_state(byte value) { 3212 void Code::set_to_boolean_state(byte value) {
3201 ASSERT(is_to_boolean_ic_stub()); 3213 ASSERT(is_to_boolean_ic_stub());
3202 WRITE_BYTE_FIELD(this, kToBooleanTypeOffset, value); 3214 WRITE_BYTE_FIELD(this, kToBooleanTypeOffset, value);
3203 } 3215 }
(...skipping 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after
4966 #undef WRITE_UINT32_FIELD 4978 #undef WRITE_UINT32_FIELD
4967 #undef READ_SHORT_FIELD 4979 #undef READ_SHORT_FIELD
4968 #undef WRITE_SHORT_FIELD 4980 #undef WRITE_SHORT_FIELD
4969 #undef READ_BYTE_FIELD 4981 #undef READ_BYTE_FIELD
4970 #undef WRITE_BYTE_FIELD 4982 #undef WRITE_BYTE_FIELD
4971 4983
4972 4984
4973 } } // namespace v8::internal 4985 } } // namespace v8::internal
4974 4986
4975 #endif // V8_OBJECTS_INL_H_ 4987 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698