OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |