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

Side by Side Diff: src/objects-inl.h

Issue 941503003: Revert "Remove IC age from Code." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/objects.cc ('k') | test/cctest/test-heap.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6437 matching lines...) Expand 10 before | Expand all | Expand 10 after
6448 } 6448 }
6449 6449
6450 6450
6451 void Code::set_stub_key(uint32_t key) { 6451 void Code::set_stub_key(uint32_t key) {
6452 DCHECK(IsCodeStubOrIC()); 6452 DCHECK(IsCodeStubOrIC());
6453 set_raw_type_feedback_info(Smi::FromInt(key)); 6453 set_raw_type_feedback_info(Smi::FromInt(key));
6454 } 6454 }
6455 6455
6456 6456
6457 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) 6457 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset)
6458 INT_ACCESSORS(Code, ic_age, kICAgeOffset)
6458 6459
6459 6460
6460 byte* Code::instruction_start() { 6461 byte* Code::instruction_start() {
6461 return FIELD_ADDR(this, kHeaderSize); 6462 return FIELD_ADDR(this, kHeaderSize);
6462 } 6463 }
6463 6464
6464 6465
6465 byte* Code::instruction_end() { 6466 byte* Code::instruction_end() {
6466 return instruction_start() + instruction_size(); 6467 return instruction_start() + instruction_size();
6467 } 6468 }
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
7630 #undef READ_SHORT_FIELD 7631 #undef READ_SHORT_FIELD
7631 #undef WRITE_SHORT_FIELD 7632 #undef WRITE_SHORT_FIELD
7632 #undef READ_BYTE_FIELD 7633 #undef READ_BYTE_FIELD
7633 #undef WRITE_BYTE_FIELD 7634 #undef WRITE_BYTE_FIELD
7634 #undef NOBARRIER_READ_BYTE_FIELD 7635 #undef NOBARRIER_READ_BYTE_FIELD
7635 #undef NOBARRIER_WRITE_BYTE_FIELD 7636 #undef NOBARRIER_WRITE_BYTE_FIELD
7636 7637
7637 } } // namespace v8::internal 7638 } } // namespace v8::internal
7638 7639
7639 #endif // V8_OBJECTS_INL_H_ 7640 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698