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_HANDLER_COMPILER_H_ | 5 #ifndef V8_IC_HANDLER_COMPILER_H_ |
6 #define V8_IC_HANDLER_COMPILER_H_ | 6 #define V8_IC_HANDLER_COMPILER_H_ |
7 | 7 |
8 #include "src/ic/access-compiler.h" | 8 #include "src/ic/access-compiler.h" |
9 #include "src/ic/ic-state.h" | 9 #include "src/ic/ic-state.h" |
10 | 10 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 Handle<Code> CompileLoadCallback(Handle<Name> name, | 126 Handle<Code> CompileLoadCallback(Handle<Name> name, |
127 const CallOptimization& call_optimization); | 127 const CallOptimization& call_optimization); |
128 | 128 |
129 Handle<Code> CompileLoadConstant(Handle<Name> name, int constant_index); | 129 Handle<Code> CompileLoadConstant(Handle<Name> name, int constant_index); |
130 | 130 |
131 // The LookupIterator is used to perform a lookup behind the interceptor. If | 131 // The LookupIterator is used to perform a lookup behind the interceptor. If |
132 // the iterator points to a LookupIterator::PROPERTY, its access will be | 132 // the iterator points to a LookupIterator::PROPERTY, its access will be |
133 // inlined. | 133 // inlined. |
134 Handle<Code> CompileLoadInterceptor(LookupIterator* it); | 134 Handle<Code> CompileLoadInterceptor(LookupIterator* it); |
135 | 135 |
136 Handle<Code> CompileLoadViaGetter(Handle<Name> name, | 136 Handle<Code> CompileLoadViaGetter(Handle<Name> name, int accessor_index, |
137 Handle<JSFunction> getter); | 137 int expected_arguments); |
138 | 138 |
139 Handle<Code> CompileLoadGlobal(Handle<PropertyCell> cell, Handle<Name> name, | 139 Handle<Code> CompileLoadGlobal(Handle<PropertyCell> cell, Handle<Name> name, |
140 bool is_configurable); | 140 bool is_configurable); |
141 | 141 |
142 // Static interface | 142 // Static interface |
143 static Handle<Code> ComputeLoadNonexistent(Handle<Name> name, | 143 static Handle<Code> ComputeLoadNonexistent(Handle<Name> name, |
144 Handle<HeapType> type); | 144 Handle<HeapType> type); |
145 | 145 |
146 static void GenerateLoadViaGetter(MacroAssembler* masm, Handle<HeapType> type, | 146 static void GenerateLoadViaGetter(MacroAssembler* masm, Handle<HeapType> type, |
147 Register receiver, | 147 Register receiver, Register holder, |
148 Handle<JSFunction> getter); | 148 int accessor_index, int expected_arguments); |
149 | 149 |
150 static void GenerateLoadViaGetterForDeopt(MacroAssembler* masm) { | 150 static void GenerateLoadViaGetterForDeopt(MacroAssembler* masm) { |
151 GenerateLoadViaGetter(masm, Handle<HeapType>::null(), no_reg, | 151 GenerateLoadViaGetter(masm, Handle<HeapType>::null(), no_reg, no_reg, -1, |
152 Handle<JSFunction>()); | 152 -1); |
153 } | 153 } |
154 | 154 |
155 static void GenerateLoadFunctionPrototype(MacroAssembler* masm, | 155 static void GenerateLoadFunctionPrototype(MacroAssembler* masm, |
156 Register receiver, | 156 Register receiver, |
157 Register scratch1, | 157 Register scratch1, |
158 Register scratch2, | 158 Register scratch2, |
159 Label* miss_label); | 159 Label* miss_label); |
160 | 160 |
161 // These constants describe the structure of the interceptor arguments on the | 161 // These constants describe the structure of the interceptor arguments on the |
162 // stack. The arguments are pushed by the (platform-specific) | 162 // stack. The arguments are pushed by the (platform-specific) |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 void CompileElementHandlers(MapHandleList* receiver_maps, | 286 void CompileElementHandlers(MapHandleList* receiver_maps, |
287 CodeHandleList* handlers); | 287 CodeHandleList* handlers); |
288 | 288 |
289 static void GenerateStoreSlow(MacroAssembler* masm); | 289 static void GenerateStoreSlow(MacroAssembler* masm); |
290 }; | 290 }; |
291 } | 291 } |
292 } // namespace v8::internal | 292 } // namespace v8::internal |
293 | 293 |
294 #endif // V8_IC_HANDLER_COMPILER_H_ | 294 #endif // V8_IC_HANDLER_COMPILER_H_ |
OLD | NEW |