| 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 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2778 } | 2778 } |
| 2779 | 2779 |
| 2780 | 2780 |
| 2781 Code::Flags Code::ComputeFlags(Kind kind, | 2781 Code::Flags Code::ComputeFlags(Kind kind, |
| 2782 InLoopFlag in_loop, | 2782 InLoopFlag in_loop, |
| 2783 InlineCacheState ic_state, | 2783 InlineCacheState ic_state, |
| 2784 ExtraICState extra_ic_state, | 2784 ExtraICState extra_ic_state, |
| 2785 PropertyType type, | 2785 PropertyType type, |
| 2786 int argc, | 2786 int argc, |
| 2787 InlineCacheHolderFlag holder) { | 2787 InlineCacheHolderFlag holder) { |
| 2788 // Extra IC state is only allowed for monomorphic call IC stubs | 2788 // Extra IC state is only allowed for call IC stubs or for store IC |
| 2789 // or for store IC stubs. | 2789 // stubs. |
| 2790 ASSERT(extra_ic_state == kNoExtraICState || | 2790 ASSERT(extra_ic_state == kNoExtraICState || |
| 2791 (kind == CALL_IC && (ic_state == MONOMORPHIC || | 2791 (kind == CALL_IC) || |
| 2792 ic_state == MONOMORPHIC_PROTOTYPE_FAILURE)) || | |
| 2793 (kind == STORE_IC) || | 2792 (kind == STORE_IC) || |
| 2794 (kind == KEYED_STORE_IC)); | 2793 (kind == KEYED_STORE_IC)); |
| 2795 // Compute the bit mask. | 2794 // Compute the bit mask. |
| 2796 int bits = kind << kFlagsKindShift; | 2795 int bits = kind << kFlagsKindShift; |
| 2797 if (in_loop) bits |= kFlagsICInLoopMask; | 2796 if (in_loop) bits |= kFlagsICInLoopMask; |
| 2798 bits |= ic_state << kFlagsICStateShift; | 2797 bits |= ic_state << kFlagsICStateShift; |
| 2799 bits |= type << kFlagsTypeShift; | 2798 bits |= type << kFlagsTypeShift; |
| 2800 bits |= extra_ic_state << kFlagsExtraICStateShift; | 2799 bits |= extra_ic_state << kFlagsExtraICStateShift; |
| 2801 bits |= argc << kFlagsArgumentsCountShift; | 2800 bits |= argc << kFlagsArgumentsCountShift; |
| 2802 if (holder == PROTOTYPE_MAP) bits |= kFlagsCacheInPrototypeMapMask; | 2801 if (holder == PROTOTYPE_MAP) bits |= kFlagsCacheInPrototypeMapMask; |
| (...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4228 #undef WRITE_INT_FIELD | 4227 #undef WRITE_INT_FIELD |
| 4229 #undef READ_SHORT_FIELD | 4228 #undef READ_SHORT_FIELD |
| 4230 #undef WRITE_SHORT_FIELD | 4229 #undef WRITE_SHORT_FIELD |
| 4231 #undef READ_BYTE_FIELD | 4230 #undef READ_BYTE_FIELD |
| 4232 #undef WRITE_BYTE_FIELD | 4231 #undef WRITE_BYTE_FIELD |
| 4233 | 4232 |
| 4234 | 4233 |
| 4235 } } // namespace v8::internal | 4234 } } // namespace v8::internal |
| 4236 | 4235 |
| 4237 #endif // V8_OBJECTS_INL_H_ | 4236 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |