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

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: Rebase Created 7 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 | Annotate | Revision Log
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 5690 matching lines...) Expand 10 before | Expand all | Expand 10 after
5701 Handle<Object> TypeFeedbackCells::UninitializedSentinel(Isolate* isolate) { 5701 Handle<Object> TypeFeedbackCells::UninitializedSentinel(Isolate* isolate) {
5702 return isolate->factory()->the_hole_value(); 5702 return isolate->factory()->the_hole_value();
5703 } 5703 }
5704 5704
5705 5705
5706 Handle<Object> TypeFeedbackCells::MegamorphicSentinel(Isolate* isolate) { 5706 Handle<Object> TypeFeedbackCells::MegamorphicSentinel(Isolate* isolate) {
5707 return isolate->factory()->undefined_value(); 5707 return isolate->factory()->undefined_value();
5708 } 5708 }
5709 5709
5710 5710
5711 Handle<Object> TypeFeedbackCells::MonomorphicArraySentinel(
5712 ElementsKind elements_kind) {
5713 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)));
5714 }
5715
5711 Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) { 5716 Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) {
5712 return heap->the_hole_value(); 5717 return heap->the_hole_value();
5713 } 5718 }
5714 5719
5715 5720
5716 int TypeFeedbackInfo::ic_total_count() { 5721 int TypeFeedbackInfo::ic_total_count() {
5717 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); 5722 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value();
5718 return ICTotalCountField::decode(current); 5723 return ICTotalCountField::decode(current);
5719 } 5724 }
5720 5725
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5902 #undef WRITE_UINT32_FIELD 5907 #undef WRITE_UINT32_FIELD
5903 #undef READ_SHORT_FIELD 5908 #undef READ_SHORT_FIELD
5904 #undef WRITE_SHORT_FIELD 5909 #undef WRITE_SHORT_FIELD
5905 #undef READ_BYTE_FIELD 5910 #undef READ_BYTE_FIELD
5906 #undef WRITE_BYTE_FIELD 5911 #undef WRITE_BYTE_FIELD
5907 5912
5908 5913
5909 } } // namespace v8::internal 5914 } } // namespace v8::internal
5910 5915
5911 #endif // V8_OBJECTS_INL_H_ 5916 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698