OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4160 | CacheHolderField::encode(holder); | 4160 | CacheHolderField::encode(holder); |
4161 if (!Code::needs_extended_extra_ic_state(kind)) { | 4161 if (!Code::needs_extended_extra_ic_state(kind)) { |
4162 bits |= (argc << kArgumentsCountShift); | 4162 bits |= (argc << kArgumentsCountShift); |
4163 } | 4163 } |
4164 return static_cast<Flags>(bits); | 4164 return static_cast<Flags>(bits); |
4165 } | 4165 } |
4166 | 4166 |
4167 | 4167 |
4168 Code::Flags Code::ComputeMonomorphicFlags(Kind kind, | 4168 Code::Flags Code::ComputeMonomorphicFlags(Kind kind, |
4169 ExtraICState extra_ic_state, | 4169 ExtraICState extra_ic_state, |
| 4170 InlineCacheHolderFlag holder, |
4170 StubType type, | 4171 StubType type, |
4171 int argc, | 4172 int argc) { |
4172 InlineCacheHolderFlag holder) { | |
4173 return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, argc, holder); | 4173 return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, argc, holder); |
4174 } | 4174 } |
4175 | 4175 |
4176 | 4176 |
4177 Code::Kind Code::ExtractKindFromFlags(Flags flags) { | 4177 Code::Kind Code::ExtractKindFromFlags(Flags flags) { |
4178 return KindField::decode(flags); | 4178 return KindField::decode(flags); |
4179 } | 4179 } |
4180 | 4180 |
4181 | 4181 |
4182 InlineCacheState Code::ExtractICStateFromFlags(Flags flags) { | 4182 InlineCacheState Code::ExtractICStateFromFlags(Flags flags) { |
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6410 #undef WRITE_UINT32_FIELD | 6410 #undef WRITE_UINT32_FIELD |
6411 #undef READ_SHORT_FIELD | 6411 #undef READ_SHORT_FIELD |
6412 #undef WRITE_SHORT_FIELD | 6412 #undef WRITE_SHORT_FIELD |
6413 #undef READ_BYTE_FIELD | 6413 #undef READ_BYTE_FIELD |
6414 #undef WRITE_BYTE_FIELD | 6414 #undef WRITE_BYTE_FIELD |
6415 | 6415 |
6416 | 6416 |
6417 } } // namespace v8::internal | 6417 } } // namespace v8::internal |
6418 | 6418 |
6419 #endif // V8_OBJECTS_INL_H_ | 6419 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |