| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2581 } | 2581 } |
| 2582 | 2582 |
| 2583 | 2583 |
| 2584 Code::ExtraICState Code::extra_ic_state() { | 2584 Code::ExtraICState Code::extra_ic_state() { |
| 2585 ASSERT(is_inline_cache_stub()); | 2585 ASSERT(is_inline_cache_stub()); |
| 2586 return ExtractExtraICStateFromFlags(flags()); | 2586 return ExtractExtraICStateFromFlags(flags()); |
| 2587 } | 2587 } |
| 2588 | 2588 |
| 2589 | 2589 |
| 2590 PropertyType Code::type() { | 2590 PropertyType Code::type() { |
| 2591 ASSERT(ic_state() == MONOMORPHIC); | |
| 2592 return ExtractTypeFromFlags(flags()); | 2591 return ExtractTypeFromFlags(flags()); |
| 2593 } | 2592 } |
| 2594 | 2593 |
| 2595 | 2594 |
| 2596 int Code::arguments_count() { | 2595 int Code::arguments_count() { |
| 2597 ASSERT(is_call_stub() || is_keyed_call_stub() || kind() == STUB); | 2596 ASSERT(is_call_stub() || is_keyed_call_stub() || kind() == STUB); |
| 2598 return ExtractArgumentsCountFromFlags(flags()); | 2597 return ExtractArgumentsCountFromFlags(flags()); |
| 2599 } | 2598 } |
| 2600 | 2599 |
| 2601 | 2600 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2698 } | 2697 } |
| 2699 | 2698 |
| 2700 | 2699 |
| 2701 void Code::set_check_type(CheckType value) { | 2700 void Code::set_check_type(CheckType value) { |
| 2702 ASSERT(is_call_stub() || is_keyed_call_stub()); | 2701 ASSERT(is_call_stub() || is_keyed_call_stub()); |
| 2703 WRITE_BYTE_FIELD(this, kCheckTypeOffset, value); | 2702 WRITE_BYTE_FIELD(this, kCheckTypeOffset, value); |
| 2704 } | 2703 } |
| 2705 | 2704 |
| 2706 | 2705 |
| 2707 ExternalArrayType Code::external_array_type() { | 2706 ExternalArrayType Code::external_array_type() { |
| 2708 ASSERT(is_external_array_load_stub() || is_external_array_store_stub()); | 2707 ASSERT(is_keyed_load_stub() || is_keyed_store_stub()); |
| 2709 byte type = READ_BYTE_FIELD(this, kExternalArrayTypeOffset); | 2708 byte type = READ_BYTE_FIELD(this, kExternalArrayTypeOffset); |
| 2710 return static_cast<ExternalArrayType>(type); | 2709 return static_cast<ExternalArrayType>(type); |
| 2711 } | 2710 } |
| 2712 | 2711 |
| 2713 | 2712 |
| 2714 void Code::set_external_array_type(ExternalArrayType value) { | 2713 void Code::set_external_array_type(ExternalArrayType value) { |
| 2715 ASSERT(is_external_array_load_stub() || is_external_array_store_stub()); | 2714 ASSERT(is_keyed_load_stub() || is_keyed_store_stub()); |
| 2716 WRITE_BYTE_FIELD(this, kExternalArrayTypeOffset, value); | 2715 WRITE_BYTE_FIELD(this, kExternalArrayTypeOffset, value); |
| 2717 } | 2716 } |
| 2718 | 2717 |
| 2719 | 2718 |
| 2720 byte Code::type_recording_binary_op_type() { | 2719 byte Code::type_recording_binary_op_type() { |
| 2721 ASSERT(is_type_recording_binary_op_stub()); | 2720 ASSERT(is_type_recording_binary_op_stub()); |
| 2722 return READ_BYTE_FIELD(this, kBinaryOpTypeOffset); | 2721 return READ_BYTE_FIELD(this, kBinaryOpTypeOffset); |
| 2723 } | 2722 } |
| 2724 | 2723 |
| 2725 | 2724 |
| (...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4192 #undef WRITE_INT_FIELD | 4191 #undef WRITE_INT_FIELD |
| 4193 #undef READ_SHORT_FIELD | 4192 #undef READ_SHORT_FIELD |
| 4194 #undef WRITE_SHORT_FIELD | 4193 #undef WRITE_SHORT_FIELD |
| 4195 #undef READ_BYTE_FIELD | 4194 #undef READ_BYTE_FIELD |
| 4196 #undef WRITE_BYTE_FIELD | 4195 #undef WRITE_BYTE_FIELD |
| 4197 | 4196 |
| 4198 | 4197 |
| 4199 } } // namespace v8::internal | 4198 } } // namespace v8::internal |
| 4200 | 4199 |
| 4201 #endif // V8_OBJECTS_INL_H_ | 4200 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |