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 3998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4009 return static_cast<CheckType>(type); | 4009 return static_cast<CheckType>(type); |
4010 } | 4010 } |
4011 | 4011 |
4012 | 4012 |
4013 void Code::set_check_type(CheckType value) { | 4013 void Code::set_check_type(CheckType value) { |
4014 ASSERT(is_call_stub() || is_keyed_call_stub()); | 4014 ASSERT(is_call_stub() || is_keyed_call_stub()); |
4015 WRITE_BYTE_FIELD(this, kCheckTypeOffset, value); | 4015 WRITE_BYTE_FIELD(this, kCheckTypeOffset, value); |
4016 } | 4016 } |
4017 | 4017 |
4018 | 4018 |
4019 byte Code::unary_op_type() { | |
4020 ASSERT(is_unary_op_stub()); | |
4021 return UnaryOpTypeField::decode( | |
4022 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); | |
4023 } | |
4024 | |
4025 | |
4026 void Code::set_unary_op_type(byte value) { | |
4027 ASSERT(is_unary_op_stub()); | |
4028 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); | |
4029 int updated = UnaryOpTypeField::update(previous, value); | |
4030 WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); | |
4031 } | |
4032 | |
4033 | |
4034 byte Code::to_boolean_state() { | 4019 byte Code::to_boolean_state() { |
4035 return extended_extra_ic_state(); | 4020 return extended_extra_ic_state(); |
4036 } | 4021 } |
4037 | 4022 |
4038 | 4023 |
4039 bool Code::has_function_cache() { | 4024 bool Code::has_function_cache() { |
4040 ASSERT(kind() == STUB); | 4025 ASSERT(kind() == STUB); |
4041 return HasFunctionCacheField::decode( | 4026 return HasFunctionCacheField::decode( |
4042 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); | 4027 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); |
4043 } | 4028 } |
(...skipping 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6237 #undef WRITE_UINT32_FIELD | 6222 #undef WRITE_UINT32_FIELD |
6238 #undef READ_SHORT_FIELD | 6223 #undef READ_SHORT_FIELD |
6239 #undef WRITE_SHORT_FIELD | 6224 #undef WRITE_SHORT_FIELD |
6240 #undef READ_BYTE_FIELD | 6225 #undef READ_BYTE_FIELD |
6241 #undef WRITE_BYTE_FIELD | 6226 #undef WRITE_BYTE_FIELD |
6242 | 6227 |
6243 | 6228 |
6244 } } // namespace v8::internal | 6229 } } // namespace v8::internal |
6245 | 6230 |
6246 #endif // V8_OBJECTS_INL_H_ | 6231 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |