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

Side by Side Diff: src/type-feedback-vector.h

Issue 1342013003: Vector ICs: Hook up vectors in platform builtins to their SharedFunctionInfos. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Test and remaining ports. Created 5 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/mips64/builtins-mips64.cc ('k') | src/type-feedback-vector.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_TYPE_FEEDBACK_VECTOR_H_ 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_H_ 6 #define V8_TYPE_FEEDBACK_VECTOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/checks.h" 10 #include "src/checks.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 static const int kDummyKeyedLoadICSlot = 1; 174 static const int kDummyKeyedLoadICSlot = 1;
175 static const int kDummyStoreICSlot = 2; 175 static const int kDummyStoreICSlot = 2;
176 static const int kDummyKeyedStoreICSlot = 3; 176 static const int kDummyKeyedStoreICSlot = 3;
177 177
178 static Handle<TypeFeedbackVector> DummyVector(Isolate* isolate); 178 static Handle<TypeFeedbackVector> DummyVector(Isolate* isolate);
179 static FeedbackVectorICSlot DummySlot(int dummyIndex) { 179 static FeedbackVectorICSlot DummySlot(int dummyIndex) {
180 DCHECK(dummyIndex >= 0 && dummyIndex <= kDummyKeyedStoreICSlot); 180 DCHECK(dummyIndex >= 0 && dummyIndex <= kDummyKeyedStoreICSlot);
181 return FeedbackVectorICSlot(dummyIndex); 181 return FeedbackVectorICSlot(dummyIndex);
182 } 182 }
183 183
184 static int PushAppliedArgumentsIndex();
185 static Handle<TypeFeedbackVector> CreatePushAppliedArgumentsVector(
186 Isolate* isolate);
187
184 private: 188 private:
185 enum VectorICKind { 189 enum VectorICKind {
186 KindUnused = 0x0, 190 KindUnused = 0x0,
187 KindCallIC = 0x1, 191 KindCallIC = 0x1,
188 KindLoadIC = 0x2, 192 KindLoadIC = 0x2,
189 KindKeyedLoadIC = 0x3, 193 KindKeyedLoadIC = 0x3,
190 KindStoreIC = 0x4, 194 KindStoreIC = 0x4,
191 KindKeyedStoreIC = 0x5, 195 KindKeyedStoreIC = 0x5,
192 }; 196 };
193 197
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; 435 KeyedAccessStoreMode GetKeyedAccessStoreMode() const;
432 IcCheckType GetKeyType() const; 436 IcCheckType GetKeyType() const;
433 437
434 InlineCacheState StateFromFeedback() const override; 438 InlineCacheState StateFromFeedback() const override;
435 Name* FindFirstName() const override; 439 Name* FindFirstName() const override;
436 }; 440 };
437 } 441 }
438 } // namespace v8::internal 442 } // namespace v8::internal
439 443
440 #endif // V8_TRANSITIONS_H_ 444 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698