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 5206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5217 kind() == BINARY_OP_IC || | 5217 kind() == BINARY_OP_IC || |
5218 kind() == STUB || | 5218 kind() == STUB || |
5219 kind() == LOAD_IC || | 5219 kind() == LOAD_IC || |
5220 kind() == KEYED_LOAD_IC || | 5220 kind() == KEYED_LOAD_IC || |
5221 kind() == STORE_IC || | 5221 kind() == STORE_IC || |
5222 kind() == KEYED_STORE_IC); | 5222 kind() == KEYED_STORE_IC); |
5223 WRITE_FIELD(this, kTypeFeedbackInfoOffset, Smi::FromInt(value)); | 5223 WRITE_FIELD(this, kTypeFeedbackInfoOffset, Smi::FromInt(value)); |
5224 } | 5224 } |
5225 | 5225 |
5226 | 5226 |
5227 void Code::set_deoptimizing_functions(Object* value) { | |
5228 ASSERT(kind() == OPTIMIZED_FUNCTION); | |
5229 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); | |
5230 } | |
5231 | |
5232 | |
5233 Object* Code::deoptimizing_functions() { | |
5234 ASSERT(kind() == OPTIMIZED_FUNCTION); | |
5235 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset)); | |
5236 } | |
5237 | |
5238 | |
5239 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) | 5227 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) |
5240 INT_ACCESSORS(Code, ic_age, kICAgeOffset) | 5228 INT_ACCESSORS(Code, ic_age, kICAgeOffset) |
5241 | 5229 |
5242 | 5230 |
5243 byte* Code::instruction_start() { | 5231 byte* Code::instruction_start() { |
5244 return FIELD_ADDR(this, kHeaderSize); | 5232 return FIELD_ADDR(this, kHeaderSize); |
5245 } | 5233 } |
5246 | 5234 |
5247 | 5235 |
5248 byte* Code::instruction_end() { | 5236 byte* Code::instruction_end() { |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6185 #undef WRITE_UINT32_FIELD | 6173 #undef WRITE_UINT32_FIELD |
6186 #undef READ_SHORT_FIELD | 6174 #undef READ_SHORT_FIELD |
6187 #undef WRITE_SHORT_FIELD | 6175 #undef WRITE_SHORT_FIELD |
6188 #undef READ_BYTE_FIELD | 6176 #undef READ_BYTE_FIELD |
6189 #undef WRITE_BYTE_FIELD | 6177 #undef WRITE_BYTE_FIELD |
6190 | 6178 |
6191 | 6179 |
6192 } } // namespace v8::internal | 6180 } } // namespace v8::internal |
6193 | 6181 |
6194 #endif // V8_OBJECTS_INL_H_ | 6182 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |