| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 static void GenerateSlow(MacroAssembler* masm); | 223 static void GenerateSlow(MacroAssembler* masm); |
| 224 | 224 |
| 225 protected: | 225 protected: |
| 226 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, | 226 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, |
| 227 Label* miss); | 227 Label* miss); |
| 228 | 228 |
| 229 virtual void FrontendFooter(Handle<Name> name, Label* miss); | 229 virtual void FrontendFooter(Handle<Name> name, Label* miss); |
| 230 void GenerateRestoreName(Label* label, Handle<Name> name); | 230 void GenerateRestoreName(Label* label, Handle<Name> name); |
| 231 | 231 |
| 232 private: | 232 private: |
| 233 void GenerateRestoreNameAndMap(Handle<Name> name, Handle<Map> transition); | 233 void GenerateRestoreName(Handle<Name> name); |
| 234 void GenerateRestoreMap(Handle<Map> transition, Register scratch, |
| 235 Label* miss); |
| 234 | 236 |
| 235 void GenerateConstantCheck(Object* constant, Register value_reg, | 237 void GenerateConstantCheck(Object* constant, Register value_reg, |
| 236 Label* miss_label); | 238 Label* miss_label); |
| 237 | 239 |
| 238 void GenerateFieldTypeChecks(HeapType* field_type, Register value_reg, | 240 void GenerateFieldTypeChecks(HeapType* field_type, Register value_reg, |
| 239 Label* miss_label); | 241 Label* miss_label); |
| 240 | 242 |
| 241 static Builtins::Name SlowBuiltin(Code::Kind kind) { | 243 static Builtins::Name SlowBuiltin(Code::Kind kind) { |
| 242 switch (kind) { | 244 switch (kind) { |
| 243 case Code::STORE_IC: | 245 case Code::STORE_IC: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 265 | 267 |
| 266 void CompileElementHandlers(MapHandleList* receiver_maps, | 268 void CompileElementHandlers(MapHandleList* receiver_maps, |
| 267 CodeHandleList* handlers); | 269 CodeHandleList* handlers); |
| 268 | 270 |
| 269 static void GenerateStoreSlow(MacroAssembler* masm); | 271 static void GenerateStoreSlow(MacroAssembler* masm); |
| 270 }; | 272 }; |
| 271 } | 273 } |
| 272 } // namespace v8::internal | 274 } // namespace v8::internal |
| 273 | 275 |
| 274 #endif // V8_IC_HANDLER_COMPILER_H_ | 276 #endif // V8_IC_HANDLER_COMPILER_H_ |
| OLD | NEW |