| 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 4863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4874 inline Kind kind(); | 4874 inline Kind kind(); |
| 4875 inline InlineCacheState ic_state(); // Only valid for IC stubs. | 4875 inline InlineCacheState ic_state(); // Only valid for IC stubs. |
| 4876 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. | 4876 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. |
| 4877 | 4877 |
| 4878 inline ExtraICState extended_extra_ic_state(); // Only valid for | 4878 inline ExtraICState extended_extra_ic_state(); // Only valid for |
| 4879 // non-call IC stubs. | 4879 // non-call IC stubs. |
| 4880 static bool needs_extended_extra_ic_state(Kind kind) { | 4880 static bool needs_extended_extra_ic_state(Kind kind) { |
| 4881 // TODO(danno): This is a bit of a hack right now since there are still | 4881 // TODO(danno): This is a bit of a hack right now since there are still |
| 4882 // clients of this API that pass "extra" values in for argc. These clients | 4882 // clients of this API that pass "extra" values in for argc. These clients |
| 4883 // should be retrofitted to used ExtendedExtraICState. | 4883 // should be retrofitted to used ExtendedExtraICState. |
| 4884 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC; | 4884 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC || |
| 4885 kind == BINARY_OP_IC; |
| 4885 } | 4886 } |
| 4886 | 4887 |
| 4887 inline StubType type(); // Only valid for monomorphic IC stubs. | 4888 inline StubType type(); // Only valid for monomorphic IC stubs. |
| 4888 inline int arguments_count(); // Only valid for call IC stubs. | 4889 inline int arguments_count(); // Only valid for call IC stubs. |
| 4889 | 4890 |
| 4890 // Testers for IC stub kinds. | 4891 // Testers for IC stub kinds. |
| 4891 inline bool is_inline_cache_stub(); | 4892 inline bool is_inline_cache_stub(); |
| 4892 inline bool is_debug_stub(); | 4893 inline bool is_debug_stub(); |
| 4893 inline bool is_load_stub() { return kind() == LOAD_IC; } | 4894 inline bool is_load_stub() { return kind() == LOAD_IC; } |
| 4894 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } | 4895 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } |
| (...skipping 5338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10233 } else { | 10234 } else { |
| 10234 value &= ~(1 << bit_position); | 10235 value &= ~(1 << bit_position); |
| 10235 } | 10236 } |
| 10236 return value; | 10237 return value; |
| 10237 } | 10238 } |
| 10238 }; | 10239 }; |
| 10239 | 10240 |
| 10240 } } // namespace v8::internal | 10241 } } // namespace v8::internal |
| 10241 | 10242 |
| 10242 #endif // V8_OBJECTS_H_ | 10243 #endif // V8_OBJECTS_H_ |
| OLD | NEW |