| 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 5112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5123 inline ExtraICState extended_extra_ic_state(); // Only valid for | 5123 inline ExtraICState extended_extra_ic_state(); // Only valid for |
| 5124 // non-call IC stubs. | 5124 // non-call IC stubs. |
| 5125 static bool needs_extended_extra_ic_state(Kind kind) { | 5125 static bool needs_extended_extra_ic_state(Kind kind) { |
| 5126 // TODO(danno): This is a bit of a hack right now since there are still | 5126 // TODO(danno): This is a bit of a hack right now since there are still |
| 5127 // clients of this API that pass "extra" values in for argc. These clients | 5127 // clients of this API that pass "extra" values in for argc. These clients |
| 5128 // should be retrofitted to used ExtendedExtraICState. | 5128 // should be retrofitted to used ExtendedExtraICState. |
| 5129 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC || | 5129 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC || |
| 5130 kind == BINARY_OP_IC; | 5130 kind == BINARY_OP_IC; |
| 5131 } | 5131 } |
| 5132 | 5132 |
| 5133 bool IsContextual(); // Only valid for IC stubs. |
| 5133 inline StubType type(); // Only valid for monomorphic IC stubs. | 5134 inline StubType type(); // Only valid for monomorphic IC stubs. |
| 5134 inline int arguments_count(); // Only valid for call IC stubs. | 5135 inline int arguments_count(); // Only valid for call IC stubs. |
| 5135 | 5136 |
| 5136 // Testers for IC stub kinds. | 5137 // Testers for IC stub kinds. |
| 5137 inline bool is_inline_cache_stub(); | 5138 inline bool is_inline_cache_stub(); |
| 5138 inline bool is_debug_stub(); | 5139 inline bool is_debug_stub(); |
| 5139 inline bool is_handler() { return kind() == HANDLER; } | 5140 inline bool is_handler() { return kind() == HANDLER; } |
| 5140 inline bool is_load_stub() { return kind() == LOAD_IC; } | 5141 inline bool is_load_stub() { return kind() == LOAD_IC; } |
| 5141 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } | 5142 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } |
| 5142 inline bool is_store_stub() { return kind() == STORE_IC; } | 5143 inline bool is_store_stub() { return kind() == STORE_IC; } |
| (...skipping 5463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10606 } else { | 10607 } else { |
| 10607 value &= ~(1 << bit_position); | 10608 value &= ~(1 << bit_position); |
| 10608 } | 10609 } |
| 10609 return value; | 10610 return value; |
| 10610 } | 10611 } |
| 10611 }; | 10612 }; |
| 10612 | 10613 |
| 10613 } } // namespace v8::internal | 10614 } } // namespace v8::internal |
| 10614 | 10615 |
| 10615 #endif // V8_OBJECTS_H_ | 10616 #endif // V8_OBJECTS_H_ |
| OLD | NEW |