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 5690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |