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 4908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4919 } | 4919 } |
4920 inline InlineCacheState ic_state(); // Only valid for IC stubs. | 4920 inline InlineCacheState ic_state(); // Only valid for IC stubs. |
4921 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. | 4921 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. |
4922 | 4922 |
4923 inline ExtraICState extended_extra_ic_state(); // Only valid for | 4923 inline ExtraICState extended_extra_ic_state(); // Only valid for |
4924 // non-call IC stubs. | 4924 // non-call IC stubs. |
4925 static bool needs_extended_extra_ic_state(Kind kind) { | 4925 static bool needs_extended_extra_ic_state(Kind kind) { |
4926 // TODO(danno): This is a bit of a hack right now since there are still | 4926 // TODO(danno): This is a bit of a hack right now since there are still |
4927 // clients of this API that pass "extra" values in for argc. These clients | 4927 // clients of this API that pass "extra" values in for argc. These clients |
4928 // should be retrofitted to used ExtendedExtraICState. | 4928 // should be retrofitted to used ExtendedExtraICState. |
4929 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC; | 4929 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC || |
| 4930 kind == BINARY_OP_IC; |
4930 } | 4931 } |
4931 | 4932 |
4932 inline StubType type(); // Only valid for monomorphic IC stubs. | 4933 inline StubType type(); // Only valid for monomorphic IC stubs. |
4933 inline int arguments_count(); // Only valid for call IC stubs. | 4934 inline int arguments_count(); // Only valid for call IC stubs. |
4934 | 4935 |
4935 // Testers for IC stub kinds. | 4936 // Testers for IC stub kinds. |
4936 inline bool is_inline_cache_stub(); | 4937 inline bool is_inline_cache_stub(); |
4937 inline bool is_debug_stub(); | 4938 inline bool is_debug_stub(); |
4938 inline bool is_handler() { return kind() == HANDLER; } | 4939 inline bool is_handler() { return kind() == HANDLER; } |
4939 inline bool is_load_stub() { return kind() == LOAD_IC; } | 4940 inline bool is_load_stub() { return kind() == LOAD_IC; } |
(...skipping 5344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10284 } else { | 10285 } else { |
10285 value &= ~(1 << bit_position); | 10286 value &= ~(1 << bit_position); |
10286 } | 10287 } |
10287 return value; | 10288 return value; |
10288 } | 10289 } |
10289 }; | 10290 }; |
10290 | 10291 |
10291 } } // namespace v8::internal | 10292 } } // namespace v8::internal |
10292 | 10293 |
10293 #endif // V8_OBJECTS_H_ | 10294 #endif // V8_OBJECTS_H_ |
OLD | NEW |