OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2492 matching lines...) Loading... |
2503 return READ_UINT32_FIELD(this, kStackSlotsOffset); | 2503 return READ_UINT32_FIELD(this, kStackSlotsOffset); |
2504 } | 2504 } |
2505 | 2505 |
2506 | 2506 |
2507 void Code::set_stack_slots(unsigned slots) { | 2507 void Code::set_stack_slots(unsigned slots) { |
2508 ASSERT(kind() == OPTIMIZED_FUNCTION); | 2508 ASSERT(kind() == OPTIMIZED_FUNCTION); |
2509 WRITE_UINT32_FIELD(this, kStackSlotsOffset, slots); | 2509 WRITE_UINT32_FIELD(this, kStackSlotsOffset, slots); |
2510 } | 2510 } |
2511 | 2511 |
2512 | 2512 |
2513 unsigned Code::safepoint_table_start() { | 2513 unsigned Code::safepoint_table_offset() { |
2514 ASSERT(kind() == OPTIMIZED_FUNCTION); | 2514 ASSERT(kind() == OPTIMIZED_FUNCTION); |
2515 return READ_UINT32_FIELD(this, kSafepointTableStartOffset); | 2515 return READ_UINT32_FIELD(this, kSafepointTableOffsetOffset); |
2516 } | 2516 } |
2517 | 2517 |
2518 | 2518 |
2519 void Code::set_safepoint_table_start(unsigned offset) { | 2519 void Code::set_safepoint_table_offset(unsigned offset) { |
2520 ASSERT(kind() == OPTIMIZED_FUNCTION); | 2520 ASSERT(kind() == OPTIMIZED_FUNCTION); |
2521 ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize))); | 2521 ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize))); |
2522 WRITE_UINT32_FIELD(this, kSafepointTableStartOffset, offset); | 2522 WRITE_UINT32_FIELD(this, kSafepointTableOffsetOffset, offset); |
2523 } | 2523 } |
2524 | 2524 |
2525 | 2525 |
2526 unsigned Code::stack_check_table_start() { | 2526 unsigned Code::stack_check_table_offset() { |
2527 ASSERT(kind() == FUNCTION); | 2527 ASSERT(kind() == FUNCTION); |
2528 return READ_UINT32_FIELD(this, kStackCheckTableStartOffset); | 2528 return READ_UINT32_FIELD(this, kStackCheckTableOffsetOffset); |
2529 } | 2529 } |
2530 | 2530 |
2531 | 2531 |
2532 void Code::set_stack_check_table_start(unsigned offset) { | 2532 void Code::set_stack_check_table_offset(unsigned offset) { |
2533 ASSERT(kind() == FUNCTION); | 2533 ASSERT(kind() == FUNCTION); |
2534 ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize))); | 2534 ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize))); |
2535 WRITE_UINT32_FIELD(this, kStackCheckTableStartOffset, offset); | 2535 WRITE_UINT32_FIELD(this, kStackCheckTableOffsetOffset, offset); |
2536 } | 2536 } |
2537 | 2537 |
2538 | 2538 |
2539 CheckType Code::check_type() { | 2539 CheckType Code::check_type() { |
2540 ASSERT(is_call_stub() || is_keyed_call_stub()); | 2540 ASSERT(is_call_stub() || is_keyed_call_stub()); |
2541 byte type = READ_BYTE_FIELD(this, kCheckTypeOffset); | 2541 byte type = READ_BYTE_FIELD(this, kCheckTypeOffset); |
2542 return static_cast<CheckType>(type); | 2542 return static_cast<CheckType>(type); |
2543 } | 2543 } |
2544 | 2544 |
2545 | 2545 |
(...skipping 1355 matching lines...) Loading... |
3901 #undef WRITE_INT_FIELD | 3901 #undef WRITE_INT_FIELD |
3902 #undef READ_SHORT_FIELD | 3902 #undef READ_SHORT_FIELD |
3903 #undef WRITE_SHORT_FIELD | 3903 #undef WRITE_SHORT_FIELD |
3904 #undef READ_BYTE_FIELD | 3904 #undef READ_BYTE_FIELD |
3905 #undef WRITE_BYTE_FIELD | 3905 #undef WRITE_BYTE_FIELD |
3906 | 3906 |
3907 | 3907 |
3908 } } // namespace v8::internal | 3908 } } // namespace v8::internal |
3909 | 3909 |
3910 #endif // V8_OBJECTS_INL_H_ | 3910 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |