| 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 15 matching lines...) Expand all Loading... |
| 26 Handle<Map> receiver_map, ExtraICState extra_ic_state); | 26 Handle<Map> receiver_map, ExtraICState extra_ic_state); |
| 27 | 27 |
| 28 static Handle<Code> ComputeKeyedStoreMonomorphicHandler( | 28 static Handle<Code> ComputeKeyedStoreMonomorphicHandler( |
| 29 Handle<Map> receiver_map, LanguageMode language_mode, | 29 Handle<Map> receiver_map, LanguageMode language_mode, |
| 30 KeyedAccessStoreMode store_mode); | 30 KeyedAccessStoreMode store_mode); |
| 31 static void ComputeKeyedStorePolymorphicHandlers( | 31 static void ComputeKeyedStorePolymorphicHandlers( |
| 32 MapHandleList* receiver_maps, MapHandleList* transitioned_maps, | 32 MapHandleList* receiver_maps, MapHandleList* transitioned_maps, |
| 33 CodeHandleList* handlers, KeyedAccessStoreMode store_mode, | 33 CodeHandleList* handlers, KeyedAccessStoreMode store_mode, |
| 34 LanguageMode language_mode); | 34 LanguageMode language_mode); |
| 35 | 35 |
| 36 // Compare nil |
| 37 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, |
| 38 CompareNilICStub* stub); |
| 39 |
| 36 // Helpers | 40 // Helpers |
| 37 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler | 41 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler |
| 38 // and make the helpers private. | 42 // and make the helpers private. |
| 39 static void GenerateRuntimeSetProperty(MacroAssembler* masm, | 43 static void GenerateRuntimeSetProperty(MacroAssembler* masm, |
| 40 LanguageMode language_mode); | 44 LanguageMode language_mode); |
| 41 | 45 |
| 42 | 46 |
| 43 private: | 47 private: |
| 44 PropertyICCompiler(Isolate* isolate, Code::Kind kind, | 48 PropertyICCompiler(Isolate* isolate, Code::Kind kind, |
| 45 ExtraICState extra_ic_state = kNoExtraICState, | 49 ExtraICState extra_ic_state = kNoExtraICState, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 96 } |
| 93 | 97 |
| 94 const ExtraICState extra_ic_state_; | 98 const ExtraICState extra_ic_state_; |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 | 101 |
| 98 } // namespace internal | 102 } // namespace internal |
| 99 } // namespace v8 | 103 } // namespace v8 |
| 100 | 104 |
| 101 #endif // V8_IC_IC_COMPILER_H_ | 105 #endif // V8_IC_IC_COMPILER_H_ |
| OLD | NEW |