| 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 5337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5348 } | 5348 } |
| 5349 | 5349 |
| 5350 | 5350 |
| 5351 Object** Code::code_to_deoptimize_link_slot() { | 5351 Object** Code::code_to_deoptimize_link_slot() { |
| 5352 ASSERT(kind() == OPTIMIZED_FUNCTION); | 5352 ASSERT(kind() == OPTIMIZED_FUNCTION); |
| 5353 return HeapObject::RawField(this, kTypeFeedbackInfoOffset); | 5353 return HeapObject::RawField(this, kTypeFeedbackInfoOffset); |
| 5354 } | 5354 } |
| 5355 | 5355 |
| 5356 | 5356 |
| 5357 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) | 5357 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) |
| 5358 ACCESSORS(Code, profiling_budget, Cell, kProfilingBudgetOffset) |
| 5358 INT_ACCESSORS(Code, ic_age, kICAgeOffset) | 5359 INT_ACCESSORS(Code, ic_age, kICAgeOffset) |
| 5359 | 5360 |
| 5360 | 5361 |
| 5362 void Code::ResetProfilingBudget(int value) { |
| 5363 profiling_budget()->set_value(Smi::FromInt(value)); |
| 5364 } |
| 5365 |
| 5366 |
| 5361 byte* Code::instruction_start() { | 5367 byte* Code::instruction_start() { |
| 5362 return FIELD_ADDR(this, kHeaderSize); | 5368 return FIELD_ADDR(this, kHeaderSize); |
| 5363 } | 5369 } |
| 5364 | 5370 |
| 5365 | 5371 |
| 5366 byte* Code::instruction_end() { | 5372 byte* Code::instruction_end() { |
| 5367 return instruction_start() + instruction_size(); | 5373 return instruction_start() + instruction_size(); |
| 5368 } | 5374 } |
| 5369 | 5375 |
| 5370 | 5376 |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6333 #undef WRITE_UINT32_FIELD | 6339 #undef WRITE_UINT32_FIELD |
| 6334 #undef READ_SHORT_FIELD | 6340 #undef READ_SHORT_FIELD |
| 6335 #undef WRITE_SHORT_FIELD | 6341 #undef WRITE_SHORT_FIELD |
| 6336 #undef READ_BYTE_FIELD | 6342 #undef READ_BYTE_FIELD |
| 6337 #undef WRITE_BYTE_FIELD | 6343 #undef WRITE_BYTE_FIELD |
| 6338 | 6344 |
| 6339 | 6345 |
| 6340 } } // namespace v8::internal | 6346 } } // namespace v8::internal |
| 6341 | 6347 |
| 6342 #endif // V8_OBJECTS_INL_H_ | 6348 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |