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 4547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4558 inline Kind kind(); | 4558 inline Kind kind(); |
4559 inline InlineCacheState ic_state(); // Only valid for IC stubs. | 4559 inline InlineCacheState ic_state(); // Only valid for IC stubs. |
4560 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. | 4560 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. |
4561 | 4561 |
4562 inline ExtraICState extended_extra_ic_state(); // Only valid for | 4562 inline ExtraICState extended_extra_ic_state(); // Only valid for |
4563 // non-call IC stubs. | 4563 // non-call IC stubs. |
4564 static bool needs_extended_extra_ic_state(Kind kind) { | 4564 static bool needs_extended_extra_ic_state(Kind kind) { |
4565 // TODO(danno): This is a bit of a hack right now since there are still | 4565 // TODO(danno): This is a bit of a hack right now since there are still |
4566 // clients of this API that pass "extra" values in for argc. These clients | 4566 // clients of this API that pass "extra" values in for argc. These clients |
4567 // should be retrofitted to used ExtendedExtraICState. | 4567 // should be retrofitted to used ExtendedExtraICState. |
4568 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC; | 4568 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC || |
| 4569 kind == UNARY_OP_IC; |
4569 } | 4570 } |
4570 | 4571 |
4571 inline StubType type(); // Only valid for monomorphic IC stubs. | 4572 inline StubType type(); // Only valid for monomorphic IC stubs. |
4572 inline int arguments_count(); // Only valid for call IC stubs. | 4573 inline int arguments_count(); // Only valid for call IC stubs. |
4573 | 4574 |
4574 // Testers for IC stub kinds. | 4575 // Testers for IC stub kinds. |
4575 inline bool is_inline_cache_stub(); | 4576 inline bool is_inline_cache_stub(); |
4576 inline bool is_debug_break(); | 4577 inline bool is_debug_break(); |
4577 inline bool is_load_stub() { return kind() == LOAD_IC; } | 4578 inline bool is_load_stub() { return kind() == LOAD_IC; } |
4578 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } | 4579 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } |
(...skipping 5105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9684 } else { | 9685 } else { |
9685 value &= ~(1 << bit_position); | 9686 value &= ~(1 << bit_position); |
9686 } | 9687 } |
9687 return value; | 9688 return value; |
9688 } | 9689 } |
9689 }; | 9690 }; |
9690 | 9691 |
9691 } } // namespace v8::internal | 9692 } } // namespace v8::internal |
9692 | 9693 |
9693 #endif // V8_OBJECTS_H_ | 9694 #endif // V8_OBJECTS_H_ |
OLD | NEW |