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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 // Generates prototype loading code that uses the objects from the | 178 // Generates prototype loading code that uses the objects from the |
179 // context we were in when this function was called. If the context | 179 // context we were in when this function was called. If the context |
180 // has changed, a jump to miss is performed. This ties the generated | 180 // has changed, a jump to miss is performed. This ties the generated |
181 // code to a particular context and so must not be used in cases | 181 // code to a particular context and so must not be used in cases |
182 // where the generated code is not allowed to have references to | 182 // where the generated code is not allowed to have references to |
183 // objects from a context. | 183 // objects from a context. |
184 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, | 184 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, |
185 int index, | 185 int index, |
186 Register prototype, | 186 Register prototype, |
| 187 Register scratch, |
187 Label* miss); | 188 Label* miss); |
188 | 189 |
189 | 190 |
190 Register scratch4() { return registers_[5]; } | 191 Register scratch4() { return registers_[5]; } |
191 }; | 192 }; |
192 | 193 |
193 | 194 |
194 class NamedStoreHandlerCompiler : public PropertyHandlerCompiler { | 195 class NamedStoreHandlerCompiler : public PropertyHandlerCompiler { |
195 public: | 196 public: |
196 explicit NamedStoreHandlerCompiler(Isolate* isolate, Handle<HeapType> type, | 197 explicit NamedStoreHandlerCompiler(Isolate* isolate, Handle<HeapType> type, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 266 |
266 void CompileElementHandlers(MapHandleList* receiver_maps, | 267 void CompileElementHandlers(MapHandleList* receiver_maps, |
267 CodeHandleList* handlers); | 268 CodeHandleList* handlers); |
268 | 269 |
269 static void GenerateStoreSlow(MacroAssembler* masm); | 270 static void GenerateStoreSlow(MacroAssembler* masm); |
270 }; | 271 }; |
271 } | 272 } |
272 } // namespace v8::internal | 273 } // namespace v8::internal |
273 | 274 |
274 #endif // V8_IC_HANDLER_COMPILER_H_ | 275 #endif // V8_IC_HANDLER_COMPILER_H_ |
OLD | NEW |