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

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

Issue 1523753002: [es6] Correct Function.prototype.apply, Reflect.construct and Reflect.apply. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Mark mjsunit/apply as TIMEOUT (for tsan). Created 5 years 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/runtime/runtime-internal.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/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 static const int kDummyKeyedLoadICSlot = 2; 247 static const int kDummyKeyedLoadICSlot = 2;
248 static const int kDummyStoreICSlot = 4; 248 static const int kDummyStoreICSlot = 4;
249 static const int kDummyKeyedStoreICSlot = 6; 249 static const int kDummyKeyedStoreICSlot = 6;
250 250
251 static Handle<TypeFeedbackVector> DummyVector(Isolate* isolate); 251 static Handle<TypeFeedbackVector> DummyVector(Isolate* isolate);
252 static FeedbackVectorSlot DummySlot(int dummyIndex) { 252 static FeedbackVectorSlot DummySlot(int dummyIndex) {
253 DCHECK(dummyIndex >= 0 && dummyIndex <= kDummyKeyedStoreICSlot); 253 DCHECK(dummyIndex >= 0 && dummyIndex <= kDummyKeyedStoreICSlot);
254 return FeedbackVectorSlot(dummyIndex); 254 return FeedbackVectorSlot(dummyIndex);
255 } 255 }
256 256
257 static int PushAppliedArgumentsIndex();
258 static Handle<TypeFeedbackVector> CreatePushAppliedArgumentsVector(
259 Isolate* isolate);
260
261 private: 257 private:
262 void ClearSlotsImpl(SharedFunctionInfo* shared, bool force_clear); 258 void ClearSlotsImpl(SharedFunctionInfo* shared, bool force_clear);
263 259
264 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector); 260 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector);
265 }; 261 };
266 262
267 263
268 // The following asserts protect an optimization in type feedback vector 264 // The following asserts protect an optimization in type feedback vector
269 // code that looks into the contents of a slot assuming to find a String, 265 // code that looks into the contents of a slot assuming to find a String,
270 // a Symbol, an AllocationSite, a WeakCell, or a FixedArray. 266 // a Symbol, an AllocationSite, a WeakCell, or a FixedArray.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; 534 KeyedAccessStoreMode GetKeyedAccessStoreMode() const;
539 IcCheckType GetKeyType() const; 535 IcCheckType GetKeyType() const;
540 536
541 InlineCacheState StateFromFeedback() const override; 537 InlineCacheState StateFromFeedback() const override;
542 Name* FindFirstName() const override; 538 Name* FindFirstName() const override;
543 }; 539 };
544 } // namespace internal 540 } // namespace internal
545 } // namespace v8 541 } // namespace v8
546 542
547 #endif // V8_TRANSITIONS_H_ 543 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698