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 5222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5233 return GetHeap()->CopyFixedArray(this); | 5233 return GetHeap()->CopyFixedArray(this); |
5234 } | 5234 } |
5235 | 5235 |
5236 | 5236 |
5237 MaybeObject* FixedDoubleArray::Copy() { | 5237 MaybeObject* FixedDoubleArray::Copy() { |
5238 if (length() == 0) return this; | 5238 if (length() == 0) return this; |
5239 return GetHeap()->CopyFixedDoubleArray(this); | 5239 return GetHeap()->CopyFixedDoubleArray(this); |
5240 } | 5240 } |
5241 | 5241 |
5242 | 5242 |
5243 void TypeFeedbackCells::SetAstId(int index, Smi* id) { | 5243 void TypeFeedbackCells::SetAstId(int index, TypeFeedbackId id) { |
5244 set(1 + index * 2, id); | 5244 set(1 + index * 2, Smi::FromInt(id.ToInt())); |
5245 } | 5245 } |
5246 | 5246 |
5247 | 5247 |
5248 Smi* TypeFeedbackCells::AstId(int index) { | 5248 TypeFeedbackId TypeFeedbackCells::AstId(int index) { |
5249 return Smi::cast(get(1 + index * 2)); | 5249 return TypeFeedbackId(Smi::cast(get(1 + index * 2))->value()); |
5250 } | 5250 } |
5251 | 5251 |
5252 | 5252 |
5253 void TypeFeedbackCells::SetCell(int index, JSGlobalPropertyCell* cell) { | 5253 void TypeFeedbackCells::SetCell(int index, JSGlobalPropertyCell* cell) { |
5254 set(index * 2, cell); | 5254 set(index * 2, cell); |
5255 } | 5255 } |
5256 | 5256 |
5257 | 5257 |
5258 JSGlobalPropertyCell* TypeFeedbackCells::Cell(int index) { | 5258 JSGlobalPropertyCell* TypeFeedbackCells::Cell(int index) { |
5259 return JSGlobalPropertyCell::cast(get(index * 2)); | 5259 return JSGlobalPropertyCell::cast(get(index * 2)); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5390 #undef WRITE_UINT32_FIELD | 5390 #undef WRITE_UINT32_FIELD |
5391 #undef READ_SHORT_FIELD | 5391 #undef READ_SHORT_FIELD |
5392 #undef WRITE_SHORT_FIELD | 5392 #undef WRITE_SHORT_FIELD |
5393 #undef READ_BYTE_FIELD | 5393 #undef READ_BYTE_FIELD |
5394 #undef WRITE_BYTE_FIELD | 5394 #undef WRITE_BYTE_FIELD |
5395 | 5395 |
5396 | 5396 |
5397 } } // namespace v8::internal | 5397 } } // namespace v8::internal |
5398 | 5398 |
5399 #endif // V8_OBJECTS_INL_H_ | 5399 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |