| 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 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 | 13 |
| 14 enum IcCheckType { ELEMENT, PROPERTY }; | |
| 15 | |
| 16 | |
| 17 class PropertyICCompiler : public PropertyAccessCompiler { | 14 class PropertyICCompiler : public PropertyAccessCompiler { |
| 18 public: | 15 public: |
| 19 // Finds the Code object stored in the Heap::non_monomorphic_cache(). | 16 // Finds the Code object stored in the Heap::non_monomorphic_cache(). |
| 20 static Code* FindPreMonomorphic(Isolate* isolate, Code::Kind kind, | 17 static Code* FindPreMonomorphic(Isolate* isolate, Code::Kind kind, |
| 21 ExtraICState extra_ic_state); | 18 ExtraICState extra_ic_state); |
| 22 | 19 |
| 23 // Named | 20 // Named |
| 24 static Handle<Code> ComputeLoad(Isolate* isolate, InlineCacheState ic_state, | 21 static Handle<Code> ComputeLoad(Isolate* isolate, InlineCacheState ic_state, |
| 25 ExtraICState extra_state); | 22 ExtraICState extra_state); |
| 26 static Handle<Code> ComputeStore(Isolate* isolate, InlineCacheState ic_state, | 23 static Handle<Code> ComputeStore(Isolate* isolate, InlineCacheState ic_state, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 113 } |
| 117 | 114 |
| 118 const ExtraICState extra_ic_state_; | 115 const ExtraICState extra_ic_state_; |
| 119 }; | 116 }; |
| 120 | 117 |
| 121 | 118 |
| 122 } | 119 } |
| 123 } // namespace v8::internal | 120 } // namespace v8::internal |
| 124 | 121 |
| 125 #endif // V8_IC_IC_COMPILER_H_ | 122 #endif // V8_IC_IC_COMPILER_H_ |
| OLD | NEW |