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 4009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4020 Kind kind = this->kind(); | 4020 Kind kind = this->kind(); |
4021 switch (kind) { | 4021 switch (kind) { |
4022 #define CASE(name) case name: return true; | 4022 #define CASE(name) case name: return true; |
4023 IC_KIND_LIST(CASE) | 4023 IC_KIND_LIST(CASE) |
4024 #undef CASE | 4024 #undef CASE |
4025 default: return false; | 4025 default: return false; |
4026 } | 4026 } |
4027 } | 4027 } |
4028 | 4028 |
4029 | 4029 |
| 4030 bool Code::is_keyed_stub() { |
| 4031 return is_keyed_load_stub() || is_keyed_store_stub() || is_keyed_call_stub(); |
| 4032 } |
| 4033 |
| 4034 |
4030 bool Code::is_debug_stub() { | 4035 bool Code::is_debug_stub() { |
4031 return ic_state() == DEBUG_STUB; | 4036 return ic_state() == DEBUG_STUB; |
4032 } | 4037 } |
4033 | 4038 |
4034 | 4039 |
4035 Code::Flags Code::ComputeFlags(Kind kind, | 4040 Code::Flags Code::ComputeFlags(Kind kind, |
4036 InlineCacheState ic_state, | 4041 InlineCacheState ic_state, |
4037 ExtraICState extra_ic_state, | 4042 ExtraICState extra_ic_state, |
4038 StubType type, | 4043 StubType type, |
4039 int argc, | 4044 int argc, |
(...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6253 #undef WRITE_UINT32_FIELD | 6258 #undef WRITE_UINT32_FIELD |
6254 #undef READ_SHORT_FIELD | 6259 #undef READ_SHORT_FIELD |
6255 #undef WRITE_SHORT_FIELD | 6260 #undef WRITE_SHORT_FIELD |
6256 #undef READ_BYTE_FIELD | 6261 #undef READ_BYTE_FIELD |
6257 #undef WRITE_BYTE_FIELD | 6262 #undef WRITE_BYTE_FIELD |
6258 | 6263 |
6259 | 6264 |
6260 } } // namespace v8::internal | 6265 } } // namespace v8::internal |
6261 | 6266 |
6262 #endif // V8_OBJECTS_INL_H_ | 6267 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |