| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // TODO(verwaest): Make non-static. | 56 // TODO(verwaest): Make non-static. |
| 57 static void GenerateFastApiCall(MacroAssembler* masm, | 57 static void GenerateApiAccessorCall(MacroAssembler* masm, |
| 58 const CallOptimization& optimization, | 58 const CallOptimization& optimization, |
| 59 Handle<Map> receiver_map, Register receiver, | 59 Handle<Map> receiver_map, |
| 60 Register scratch, bool is_store, int argc, | 60 Register receiver, Register scratch, |
| 61 Register* values); | 61 bool is_store, Register store_parameter); |
| 62 | 62 |
| 63 // Helper function used to check that the dictionary doesn't contain | 63 // Helper function used to check that the dictionary doesn't contain |
| 64 // the property. This function may return false negatives, so miss_label | 64 // the property. This function may return false negatives, so miss_label |
| 65 // must always call a backup property check that is complete. | 65 // must always call a backup property check that is complete. |
| 66 // This function is safe to call if the receiver has fast properties. | 66 // This function is safe to call if the receiver has fast properties. |
| 67 // Name must be unique and receiver must be a heap object. | 67 // Name must be unique and receiver must be a heap object. |
| 68 static void GenerateDictionaryNegativeLookup(MacroAssembler* masm, | 68 static void GenerateDictionaryNegativeLookup(MacroAssembler* masm, |
| 69 Label* miss_label, | 69 Label* miss_label, |
| 70 Register receiver, | 70 Register receiver, |
| 71 Handle<Name> name, Register r0, | 71 Handle<Name> name, Register r0, |
| (...skipping 213 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 |