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