| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_H_ | 5 #ifndef V8_IC_H_ |
| 6 #define V8_IC_H_ | 6 #define V8_IC_H_ |
| 7 | 7 |
| 8 #include "src/ic/ic-state.h" | 8 #include "src/ic/ic-state.h" |
| 9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
| 10 #include "src/messages.h" | 10 #include "src/messages.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 kind == Code::KEYED_LOAD_IC || kind == Code::CALL_IC || | 74 kind == Code::KEYED_LOAD_IC || kind == Code::CALL_IC || |
| 75 kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC; | 75 kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC; |
| 76 } | 76 } |
| 77 | 77 |
| 78 // The ICs that don't pass slot and vector through the stack have to | 78 // The ICs that don't pass slot and vector through the stack have to |
| 79 // save/restore them in the dispatcher. | 79 // save/restore them in the dispatcher. |
| 80 static bool ShouldPushPopSlotAndVector(Code::Kind kind); | 80 static bool ShouldPushPopSlotAndVector(Code::Kind kind); |
| 81 | 81 |
| 82 static InlineCacheState StateFromCode(Code* code); | 82 static InlineCacheState StateFromCode(Code* code); |
| 83 | 83 |
| 84 static inline bool IsHandler(Object* object); |
| 85 |
| 84 protected: | 86 protected: |
| 85 Address fp() const { return fp_; } | 87 Address fp() const { return fp_; } |
| 86 Address pc() const { return *pc_address_; } | 88 Address pc() const { return *pc_address_; } |
| 87 Isolate* isolate() const { return isolate_; } | 89 Isolate* isolate() const { return isolate_; } |
| 88 | 90 |
| 89 // Get the shared function info of the caller. | 91 // Get the shared function info of the caller. |
| 90 SharedFunctionInfo* GetSharedFunctionInfo() const; | 92 SharedFunctionInfo* GetSharedFunctionInfo() const; |
| 91 // Get the code object of the caller. | 93 // Get the code object of the caller. |
| 92 Code* GetCode() const; | 94 Code* GetCode() const; |
| 93 | 95 |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 504 |
| 503 // Helper for BinaryOpIC and CompareIC. | 505 // Helper for BinaryOpIC and CompareIC. |
| 504 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 506 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
| 505 void PatchInlinedSmiCode(Isolate* isolate, Address address, | 507 void PatchInlinedSmiCode(Isolate* isolate, Address address, |
| 506 InlinedSmiCheck check); | 508 InlinedSmiCheck check); |
| 507 | 509 |
| 508 } // namespace internal | 510 } // namespace internal |
| 509 } // namespace v8 | 511 } // namespace v8 |
| 510 | 512 |
| 511 #endif // V8_IC_H_ | 513 #endif // V8_IC_H_ |
| OLD | NEW |