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/objects-inl.h

Issue 11818021: Allocation Info Tracking, continued. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A partial delta against Toon's previous review Created 7 years, 9 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/runtime.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 // 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 5714 matching lines...) Expand 10 before | Expand all | Expand 10 after
5725 Handle<Object> TypeFeedbackCells::UninitializedSentinel(Isolate* isolate) { 5725 Handle<Object> TypeFeedbackCells::UninitializedSentinel(Isolate* isolate) {
5726 return isolate->factory()->the_hole_value(); 5726 return isolate->factory()->the_hole_value();
5727 } 5727 }
5728 5728
5729 5729
5730 Handle<Object> TypeFeedbackCells::MegamorphicSentinel(Isolate* isolate) { 5730 Handle<Object> TypeFeedbackCells::MegamorphicSentinel(Isolate* isolate) {
5731 return isolate->factory()->undefined_value(); 5731 return isolate->factory()->undefined_value();
5732 } 5732 }
5733 5733
5734 5734
5735 Handle<Object> TypeFeedbackCells::MonomorphicArraySentinel( 5735 Handle<Object> TypeFeedbackCells::MonomorphicArraySentinel(Isolate* isolate,
5736 ElementsKind elements_kind) { 5736 ElementsKind elements_kind) {
5737 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind))); 5737 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate);
5738 } 5738 }
5739 5739
5740
5740 Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) { 5741 Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) {
5741 return heap->the_hole_value(); 5742 return heap->the_hole_value();
5742 } 5743 }
5743 5744
5744 5745
5745 int TypeFeedbackInfo::ic_total_count() { 5746 int TypeFeedbackInfo::ic_total_count() {
5746 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); 5747 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value();
5747 return ICTotalCountField::decode(current); 5748 return ICTotalCountField::decode(current);
5748 } 5749 }
5749 5750
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5931 #undef WRITE_UINT32_FIELD 5932 #undef WRITE_UINT32_FIELD
5932 #undef READ_SHORT_FIELD 5933 #undef READ_SHORT_FIELD
5933 #undef WRITE_SHORT_FIELD 5934 #undef WRITE_SHORT_FIELD
5934 #undef READ_BYTE_FIELD 5935 #undef READ_BYTE_FIELD
5935 #undef WRITE_BYTE_FIELD 5936 #undef WRITE_BYTE_FIELD
5936 5937
5937 5938
5938 } } // namespace v8::internal 5939 } } // namespace v8::internal
5939 5940
5940 #endif // V8_OBJECTS_INL_H_ 5941 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698