| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_IC_IC_COMPILER_H_ | 5 #ifndef V8_IC_IC_COMPILER_H_ |
| 6 #define V8_IC_IC_COMPILER_H_ | 6 #define V8_IC_IC_COMPILER_H_ |
| 7 | 7 |
| 8 #include "src/ic/access-compiler.h" | 8 #include "src/ic/access-compiler.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 ExtraICState extra_ic_state); | 29 ExtraICState extra_ic_state); |
| 30 static Handle<Code> ComputePolymorphic(Code::Kind kind, TypeHandleList* types, | 30 static Handle<Code> ComputePolymorphic(Code::Kind kind, TypeHandleList* types, |
| 31 CodeHandleList* handlers, | 31 CodeHandleList* handlers, |
| 32 int number_of_valid_maps, | 32 int number_of_valid_maps, |
| 33 Handle<Name> name, | 33 Handle<Name> name, |
| 34 ExtraICState extra_ic_state); | 34 ExtraICState extra_ic_state); |
| 35 | 35 |
| 36 // Keyed | 36 // Keyed |
| 37 static Handle<Code> ComputeKeyedLoadMonomorphicHandler( | 37 static Handle<Code> ComputeKeyedLoadMonomorphicHandler( |
| 38 Handle<Map> receiver_map); | 38 Handle<Map> receiver_map); |
| 39 static Handle<Code> ComputeKeyedLoadMonomorphic(Handle<Map> receiver_map); | 39 static Handle<Code> ComputeKeyedLoadMonomorphic(Handle<Map> receiver_map, |
| 40 ExtraICState extra_ic_state, |
| 41 IcCheckType key_type); |
| 40 | 42 |
| 41 static Handle<Code> ComputeKeyedStoreMonomorphic( | 43 static Handle<Code> ComputeKeyedStoreMonomorphic( |
| 42 Handle<Map> receiver_map, StrictMode strict_mode, | 44 Handle<Map> receiver_map, StrictMode strict_mode, |
| 43 KeyedAccessStoreMode store_mode); | 45 KeyedAccessStoreMode store_mode); |
| 44 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps); | 46 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps, |
| 47 ExtraICState extra_ic_state, |
| 48 IcCheckType key_type); |
| 45 static Handle<Code> ComputeKeyedStorePolymorphic( | 49 static Handle<Code> ComputeKeyedStorePolymorphic( |
| 46 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode, | 50 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode, |
| 47 StrictMode strict_mode); | 51 StrictMode strict_mode); |
| 48 | 52 |
| 49 // Compare nil | 53 // Compare nil |
| 50 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, | 54 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, |
| 51 CompareNilICStub* stub); | 55 CompareNilICStub* stub); |
| 52 | 56 |
| 53 // Helpers | 57 // Helpers |
| 54 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler | 58 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 119 } |
| 116 | 120 |
| 117 const ExtraICState extra_ic_state_; | 121 const ExtraICState extra_ic_state_; |
| 118 }; | 122 }; |
| 119 | 123 |
| 120 | 124 |
| 121 } | 125 } |
| 122 } // namespace v8::internal | 126 } // namespace v8::internal |
| 123 | 127 |
| 124 #endif // V8_IC_IC_COMPILER_H_ | 128 #endif // V8_IC_IC_COMPILER_H_ |
| OLD | NEW |