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

Side by Side Diff: src/ic/ic.h

Issue 2669193002: [stubs] Remove obsolete CALL_IC code kind. (Closed)
Patch Set: Created 3 years, 10 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/code-stubs.h ('k') | src/ic/ic.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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 static void Clear(Isolate* isolate, Address address, Address constant_pool); 46 static void Clear(Isolate* isolate, Address address, Address constant_pool);
47 47
48 #ifdef DEBUG 48 #ifdef DEBUG
49 bool IsLoadStub() const { 49 bool IsLoadStub() const {
50 return kind_ == Code::LOAD_IC || kind_ == Code::LOAD_GLOBAL_IC || 50 return kind_ == Code::LOAD_IC || kind_ == Code::LOAD_GLOBAL_IC ||
51 kind_ == Code::KEYED_LOAD_IC; 51 kind_ == Code::KEYED_LOAD_IC;
52 } 52 }
53 bool IsStoreStub() const { 53 bool IsStoreStub() const {
54 return kind_ == Code::STORE_IC || kind_ == Code::KEYED_STORE_IC; 54 return kind_ == Code::STORE_IC || kind_ == Code::KEYED_STORE_IC;
55 } 55 }
56 bool IsCallStub() const { return kind_ == Code::CALL_IC; }
57 #endif 56 #endif
58 57
59 static inline Handle<Map> GetHandlerCacheHolder(Handle<Map> receiver_map, 58 static inline Handle<Map> GetHandlerCacheHolder(Handle<Map> receiver_map,
60 bool receiver_is_holder, 59 bool receiver_is_holder,
61 Isolate* isolate, 60 Isolate* isolate,
62 CacheHolderFlag* flag); 61 CacheHolderFlag* flag);
63 static inline Handle<Map> GetICCacheHolder(Handle<Map> receiver_map, 62 static inline Handle<Map> GetICCacheHolder(Handle<Map> receiver_map,
64 Isolate* isolate, 63 Isolate* isolate,
65 CacheHolderFlag* flag); 64 CacheHolderFlag* flag);
66 65
67 static bool IsCleared(FeedbackNexus* nexus) { 66 static bool IsCleared(FeedbackNexus* nexus) {
68 InlineCacheState state = nexus->StateFromFeedback(); 67 InlineCacheState state = nexus->StateFromFeedback();
69 return !FLAG_use_ic || state == UNINITIALIZED || state == PREMONOMORPHIC; 68 return !FLAG_use_ic || state == UNINITIALIZED || state == PREMONOMORPHIC;
70 } 69 }
71 70
72 static bool ICUseVector(Code::Kind kind) { 71 static bool ICUseVector(Code::Kind kind) {
73 return kind == Code::LOAD_IC || kind == Code::LOAD_GLOBAL_IC || 72 return kind == Code::LOAD_IC || kind == Code::LOAD_GLOBAL_IC ||
74 kind == Code::KEYED_LOAD_IC || kind == Code::CALL_IC || 73 kind == Code::KEYED_LOAD_IC || kind == Code::STORE_IC ||
75 kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC; 74 kind == Code::KEYED_STORE_IC;
76 } 75 }
77 76
78 // The ICs that don't pass slot and vector through the stack have to 77 // The ICs that don't pass slot and vector through the stack have to
79 // save/restore them in the dispatcher. 78 // save/restore them in the dispatcher.
80 static bool ShouldPushPopSlotAndVector(Code::Kind kind); 79 static bool ShouldPushPopSlotAndVector(Code::Kind kind);
81 80
82 static InlineCacheState StateFromCode(Code* code); 81 static InlineCacheState StateFromCode(Code* code);
83 82
84 static inline bool IsHandler(Object* object); 83 static inline bool IsHandler(Object* object);
85 84
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 497
499 // Helper for BinaryOpIC and CompareIC. 498 // Helper for BinaryOpIC and CompareIC.
500 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 499 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
501 void PatchInlinedSmiCode(Isolate* isolate, Address address, 500 void PatchInlinedSmiCode(Isolate* isolate, Address address,
502 InlinedSmiCheck check); 501 InlinedSmiCheck check);
503 502
504 } // namespace internal 503 } // namespace internal
505 } // namespace v8 504 } // namespace v8
506 505
507 #endif // V8_IC_H_ 506 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698