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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 } | 244 } |
245 | 245 |
246 static void GenerateSlow(MacroAssembler* masm); | 246 static void GenerateSlow(MacroAssembler* masm); |
247 | 247 |
248 protected: | 248 protected: |
249 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, | 249 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, |
250 Label* miss, ReturnHolder return_what); | 250 Label* miss, ReturnHolder return_what); |
251 | 251 |
252 virtual void FrontendFooter(Handle<Name> name, Label* miss); | 252 virtual void FrontendFooter(Handle<Name> name, Label* miss); |
253 void GenerateRestoreName(Label* label, Handle<Name> name); | 253 void GenerateRestoreName(Label* label, Handle<Name> name); |
| 254 void GeneratePushMap(Register map_reg, Register scratch); |
254 | 255 |
255 private: | 256 private: |
256 void GenerateRestoreName(Handle<Name> name); | 257 void GenerateRestoreName(Handle<Name> name); |
257 void GenerateRestoreMap(Handle<Map> transition, Register scratch, | 258 void GenerateRestoreMap(Handle<Map> transition, Register map_reg, |
258 Label* miss); | 259 Register scratch, Label* miss); |
259 | 260 |
260 void GenerateConstantCheck(Register map_reg, int descriptor, | 261 void GenerateConstantCheck(Register map_reg, int descriptor, |
261 Register value_reg, Register scratch, | 262 Register value_reg, Register scratch, |
262 Label* miss_label); | 263 Label* miss_label); |
263 | 264 |
264 void GenerateFieldTypeChecks(HeapType* field_type, Register value_reg, | 265 void GenerateFieldTypeChecks(HeapType* field_type, Register value_reg, |
265 Label* miss_label); | 266 Label* miss_label); |
266 | 267 |
267 static Builtins::Name SlowBuiltin(Code::Kind kind) { | 268 static Builtins::Name SlowBuiltin(Code::Kind kind) { |
268 switch (kind) { | 269 switch (kind) { |
(...skipping 23 matching lines...) Expand all Loading... |
292 void CompileElementHandlers(MapHandleList* receiver_maps, | 293 void CompileElementHandlers(MapHandleList* receiver_maps, |
293 CodeHandleList* handlers, | 294 CodeHandleList* handlers, |
294 LanguageMode language_mode); | 295 LanguageMode language_mode); |
295 | 296 |
296 static void GenerateStoreSlow(MacroAssembler* masm); | 297 static void GenerateStoreSlow(MacroAssembler* masm); |
297 }; | 298 }; |
298 } | 299 } |
299 } // namespace v8::internal | 300 } // namespace v8::internal |
300 | 301 |
301 #endif // V8_IC_HANDLER_COMPILER_H_ | 302 #endif // V8_IC_HANDLER_COMPILER_H_ |
OLD | NEW |