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 4480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4491 | 4491 |
4492 Code::Flags Code::ComputeMonomorphicFlags(Kind kind, | 4492 Code::Flags Code::ComputeMonomorphicFlags(Kind kind, |
4493 ExtraICState extra_ic_state, | 4493 ExtraICState extra_ic_state, |
4494 InlineCacheHolderFlag holder, | 4494 InlineCacheHolderFlag holder, |
4495 StubType type) { | 4495 StubType type) { |
4496 return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, holder); | 4496 return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, holder); |
4497 } | 4497 } |
4498 | 4498 |
4499 | 4499 |
4500 Code::Flags Code::ComputeHandlerFlags(Kind handler_kind, | 4500 Code::Flags Code::ComputeHandlerFlags(Kind handler_kind, |
4501 ExtraICState extra_ic_state, | |
4502 StubType type, | 4501 StubType type, |
4503 InlineCacheHolderFlag holder) { | 4502 InlineCacheHolderFlag holder) { |
4504 ExtraICState extra = HandlerKindField::encode(handler_kind) | extra_ic_state; | 4503 return ComputeFlags(Code::HANDLER, MONOMORPHIC, handler_kind, type, holder); |
4505 return ComputeFlags(Code::HANDLER, MONOMORPHIC, extra, type, holder); | |
4506 } | 4504 } |
4507 | 4505 |
4508 | 4506 |
4509 Code::Kind Code::ExtractKindFromFlags(Flags flags) { | 4507 Code::Kind Code::ExtractKindFromFlags(Flags flags) { |
4510 return KindField::decode(flags); | 4508 return KindField::decode(flags); |
4511 } | 4509 } |
4512 | 4510 |
4513 | 4511 |
4514 InlineCacheState Code::ExtractICStateFromFlags(Flags flags) { | 4512 InlineCacheState Code::ExtractICStateFromFlags(Flags flags) { |
4515 return ICStateField::decode(flags); | 4513 return ICStateField::decode(flags); |
(...skipping 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6736 #undef READ_UINT32_FIELD | 6734 #undef READ_UINT32_FIELD |
6737 #undef WRITE_UINT32_FIELD | 6735 #undef WRITE_UINT32_FIELD |
6738 #undef READ_SHORT_FIELD | 6736 #undef READ_SHORT_FIELD |
6739 #undef WRITE_SHORT_FIELD | 6737 #undef WRITE_SHORT_FIELD |
6740 #undef READ_BYTE_FIELD | 6738 #undef READ_BYTE_FIELD |
6741 #undef WRITE_BYTE_FIELD | 6739 #undef WRITE_BYTE_FIELD |
6742 | 6740 |
6743 } } // namespace v8::internal | 6741 } } // namespace v8::internal |
6744 | 6742 |
6745 #endif // V8_OBJECTS_INL_H_ | 6743 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |