| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 return state == UNINITIALIZED || state == PREMONOMORPHIC; | 158 return state == UNINITIALIZED || state == PREMONOMORPHIC; |
| 159 } | 159 } |
| 160 | 160 |
| 161 // Utility functions to convert maps to types and back. There are two special | 161 // Utility functions to convert maps to types and back. There are two special |
| 162 // cases: | 162 // cases: |
| 163 // - The heap_number_map is used as a marker which includes heap numbers as | 163 // - The heap_number_map is used as a marker which includes heap numbers as |
| 164 // well as smis. | 164 // well as smis. |
| 165 // - The oddball map is only used for booleans. | 165 // - The oddball map is only used for booleans. |
| 166 static Handle<Map> TypeToMap(Type* type, Isolate* isolate); | 166 static Handle<Map> TypeToMap(Type* type, Isolate* isolate); |
| 167 static Type* MapToType(Handle<Map> type); | 167 static Type* MapToType(Handle<Map> type); |
| 168 static Handle<Type> CurrentTypeOf(Handle<Object> object, Isolate* isolate); |
| 168 | 169 |
| 169 protected: | 170 protected: |
| 170 // Get the call-site target; used for determining the state. | 171 // Get the call-site target; used for determining the state. |
| 171 Handle<Code> target() const { return target_; } | 172 Handle<Code> target() const { return target_; } |
| 172 | 173 |
| 173 Address fp() const { return fp_; } | 174 Address fp() const { return fp_; } |
| 174 Address pc() const { return *pc_address_; } | 175 Address pc() const { return *pc_address_; } |
| 175 Isolate* isolate() const { return isolate_; } | 176 Isolate* isolate() const { return isolate_; } |
| 176 | 177 |
| 177 #ifdef ENABLE_DEBUGGER_SUPPORT | 178 #ifdef ENABLE_DEBUGGER_SUPPORT |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedCallIC_MissFromStubFailure); | 911 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedCallIC_MissFromStubFailure); |
| 911 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); | 912 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); |
| 912 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); | 913 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); |
| 913 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); | 914 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); |
| 914 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); | 915 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); |
| 915 | 916 |
| 916 | 917 |
| 917 } } // namespace v8::internal | 918 } } // namespace v8::internal |
| 918 | 919 |
| 919 #endif // V8_IC_H_ | 920 #endif // V8_IC_H_ |
| OLD | NEW |