Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: src/ic/handler-compiler.h

Issue 2313093002: [stubs] Port StoreTransitionStub and ElementsTransitionAndStoreStub to TurboFan. (Closed)
Patch Set: Addressing comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ic/arm64/handler-compiler-arm64.cc ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // When FLAG_vector_ics is true, handlers that have the possibility of missing 47 // When FLAG_vector_ics is true, handlers that have the possibility of missing
48 // will need to save and pass these to miss handlers. 48 // will need to save and pass these to miss handlers.
49 void PushVectorAndSlot() { PushVectorAndSlot(vector(), slot()); } 49 void PushVectorAndSlot() { PushVectorAndSlot(vector(), slot()); }
50 void PushVectorAndSlot(Register vector, Register slot); 50 void PushVectorAndSlot(Register vector, Register slot);
51 void PopVectorAndSlot() { PopVectorAndSlot(vector(), slot()); } 51 void PopVectorAndSlot() { PopVectorAndSlot(vector(), slot()); }
52 void PopVectorAndSlot(Register vector, Register slot); 52 void PopVectorAndSlot(Register vector, Register slot);
53 53
54 void DiscardVectorAndSlot(); 54 void DiscardVectorAndSlot();
55 55
56 void PushReturnAddress(Register tmp);
57 void PopReturnAddress(Register tmp);
58
56 // TODO(verwaest): Make non-static. 59 // TODO(verwaest): Make non-static.
57 static void GenerateApiAccessorCall(MacroAssembler* masm, 60 static void GenerateApiAccessorCall(MacroAssembler* masm,
58 const CallOptimization& optimization, 61 const CallOptimization& optimization,
59 Handle<Map> receiver_map, 62 Handle<Map> receiver_map,
60 Register receiver, Register scratch, 63 Register receiver, Register scratch,
61 bool is_store, Register store_parameter, 64 bool is_store, Register store_parameter,
62 Register accessor_holder, 65 Register accessor_holder,
63 int accessor_index); 66 int accessor_index);
64 67
65 // Helper function used to check that the dictionary doesn't contain 68 // Helper function used to check that the dictionary doesn't contain
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 no_reg); 245 no_reg);
243 } 246 }
244 247
245 protected: 248 protected:
246 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, 249 virtual Register FrontendHeader(Register object_reg, Handle<Name> name,
247 Label* miss, ReturnHolder return_what); 250 Label* miss, ReturnHolder return_what);
248 251
249 virtual void FrontendFooter(Handle<Name> name, Label* miss); 252 virtual void FrontendFooter(Handle<Name> name, Label* miss);
250 void GenerateRestoreName(Label* label, Handle<Name> name); 253 void GenerateRestoreName(Label* label, Handle<Name> name);
251 254
252 // Pop the vector and slot into appropriate registers, moving the map in
253 // the process. (This is an accomodation for register pressure on ia32).
254 void RearrangeVectorAndSlot(Register current_map, Register destination_map);
255
256 private: 255 private:
257 void GenerateRestoreName(Handle<Name> name); 256 void GenerateRestoreName(Handle<Name> name);
258 void GenerateRestoreMap(Handle<Map> transition, Register map_reg, 257 void GenerateRestoreMap(Handle<Map> transition, Register map_reg,
259 Register scratch, Label* miss); 258 Register scratch, Label* miss);
260 259
261 void GenerateConstantCheck(Register map_reg, int descriptor, 260 void GenerateConstantCheck(Register map_reg, int descriptor,
262 Register value_reg, Register scratch, 261 Register value_reg, Register scratch,
263 Label* miss_label); 262 Label* miss_label);
264 263
265 bool RequiresFieldTypeChecks(FieldType* field_type) const; 264 bool RequiresFieldTypeChecks(FieldType* field_type) const;
(...skipping 17 matching lines...) Expand all
283 Isolate* isolate); 282 Isolate* isolate);
284 void CompileElementHandlers(MapHandleList* receiver_maps, 283 void CompileElementHandlers(MapHandleList* receiver_maps,
285 List<Handle<Object>>* handlers); 284 List<Handle<Object>>* handlers);
286 285
287 static void GenerateStoreSlow(MacroAssembler* masm); 286 static void GenerateStoreSlow(MacroAssembler* masm);
288 }; 287 };
289 } // namespace internal 288 } // namespace internal
290 } // namespace v8 289 } // namespace v8
291 290
292 #endif // V8_IC_HANDLER_COMPILER_H_ 291 #endif // V8_IC_HANDLER_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ic/arm64/handler-compiler-arm64.cc ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698