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 5310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5321 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) | 5321 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) |
5322 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) | 5322 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
5323 | 5323 |
5324 | 5324 |
5325 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs. | 5325 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs. |
5326 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) { | 5326 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) { |
5327 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); | 5327 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); |
5328 } | 5328 } |
5329 | 5329 |
5330 | 5330 |
| 5331 Object* Code::raw_type_feedback_info() { |
| 5332 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset)); |
| 5333 } |
| 5334 |
| 5335 |
5331 Object* Code::type_feedback_info() { | 5336 Object* Code::type_feedback_info() { |
5332 ASSERT(kind() == FUNCTION); | 5337 ASSERT(kind() == FUNCTION); |
5333 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset)); | 5338 return raw_type_feedback_info(); |
5334 } | 5339 } |
5335 | 5340 |
5336 | 5341 |
5337 void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) { | 5342 void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) { |
5338 ASSERT(kind() == FUNCTION); | 5343 ASSERT(kind() == FUNCTION); |
5339 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); | 5344 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); |
5340 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kTypeFeedbackInfoOffset, | 5345 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kTypeFeedbackInfoOffset, |
5341 value, mode); | 5346 value, mode); |
5342 } | 5347 } |
5343 | 5348 |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6400 #undef WRITE_UINT32_FIELD | 6405 #undef WRITE_UINT32_FIELD |
6401 #undef READ_SHORT_FIELD | 6406 #undef READ_SHORT_FIELD |
6402 #undef WRITE_SHORT_FIELD | 6407 #undef WRITE_SHORT_FIELD |
6403 #undef READ_BYTE_FIELD | 6408 #undef READ_BYTE_FIELD |
6404 #undef WRITE_BYTE_FIELD | 6409 #undef WRITE_BYTE_FIELD |
6405 | 6410 |
6406 | 6411 |
6407 } } // namespace v8::internal | 6412 } } // namespace v8::internal |
6408 | 6413 |
6409 #endif // V8_OBJECTS_INL_H_ | 6414 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |