| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2699 } | 2698 } |
| 2700 | 2699 |
| 2701 | 2700 |
| 2702 void Code::set_check_type(CheckType value) { | 2701 void Code::set_check_type(CheckType value) { |
| 2703 ASSERT(is_call_stub() || is_keyed_call_stub()); | 2702 ASSERT(is_call_stub() || is_keyed_call_stub()); |
| 2704 WRITE_BYTE_FIELD(this, kCheckTypeOffset, value); | 2703 WRITE_BYTE_FIELD(this, kCheckTypeOffset, value); |
| 2705 } | 2704 } |
| 2706 | 2705 |
| 2707 | 2706 |
| 2708 ExternalArrayType Code::external_array_type() { | 2707 ExternalArrayType Code::external_array_type() { |
| 2709 ASSERT(is_external_array_load_stub() || is_external_array_store_stub()); | 2708 ASSERT(is_keyed_load_stub() || is_keyed_store_stub()); |
| 2710 byte type = READ_BYTE_FIELD(this, kExternalArrayTypeOffset); | 2709 byte type = READ_BYTE_FIELD(this, kExternalArrayTypeOffset); |
| 2711 return static_cast<ExternalArrayType>(type); | 2710 return static_cast<ExternalArrayType>(type); |
| 2712 } | 2711 } |
| 2713 | 2712 |
| 2714 | 2713 |
| 2715 void Code::set_external_array_type(ExternalArrayType value) { | 2714 void Code::set_external_array_type(ExternalArrayType value) { |
| 2716 ASSERT(is_external_array_load_stub() || is_external_array_store_stub()); | 2715 ASSERT(is_keyed_load_stub() || is_keyed_store_stub()); |
| 2717 WRITE_BYTE_FIELD(this, kExternalArrayTypeOffset, value); | 2716 WRITE_BYTE_FIELD(this, kExternalArrayTypeOffset, value); |
| 2718 } | 2717 } |
| 2719 | 2718 |
| 2720 | 2719 |
| 2721 byte Code::type_recording_unary_op_type() { | 2720 byte Code::type_recording_unary_op_type() { |
| 2722 ASSERT(is_type_recording_unary_op_stub()); | 2721 ASSERT(is_type_recording_unary_op_stub()); |
| 2723 return READ_BYTE_FIELD(this, kUnaryOpTypeOffset); | 2722 return READ_BYTE_FIELD(this, kUnaryOpTypeOffset); |
| 2724 } | 2723 } |
| 2725 | 2724 |
| 2726 | 2725 |
| (...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4206 #undef WRITE_INT_FIELD | 4205 #undef WRITE_INT_FIELD |
| 4207 #undef READ_SHORT_FIELD | 4206 #undef READ_SHORT_FIELD |
| 4208 #undef WRITE_SHORT_FIELD | 4207 #undef WRITE_SHORT_FIELD |
| 4209 #undef READ_BYTE_FIELD | 4208 #undef READ_BYTE_FIELD |
| 4210 #undef WRITE_BYTE_FIELD | 4209 #undef WRITE_BYTE_FIELD |
| 4211 | 4210 |
| 4212 | 4211 |
| 4213 } } // namespace v8::internal | 4212 } } // namespace v8::internal |
| 4214 | 4213 |
| 4215 #endif // V8_OBJECTS_INL_H_ | 4214 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |