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

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

Issue 889863002: update vector ics to handle megamorphic keyed loads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: grokdump Created 5 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/type-feedback-vector.cc ('k') | tools/v8heapconst.py » ('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_TYPE_FEEDBACK_VECTOR_INL_H_ 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_INL_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_ 6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_
7 7
8 #include "src/type-feedback-vector.h" 8 #include "src/type-feedback-vector.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 12 matching lines...) Expand all
23 Handle<Object> TypeFeedbackVector::MegamorphicSentinel(Isolate* isolate) { 23 Handle<Object> TypeFeedbackVector::MegamorphicSentinel(Isolate* isolate) {
24 return isolate->factory()->megamorphic_symbol(); 24 return isolate->factory()->megamorphic_symbol();
25 } 25 }
26 26
27 27
28 Handle<Object> TypeFeedbackVector::PremonomorphicSentinel(Isolate* isolate) { 28 Handle<Object> TypeFeedbackVector::PremonomorphicSentinel(Isolate* isolate) {
29 return isolate->factory()->premonomorphic_symbol(); 29 return isolate->factory()->premonomorphic_symbol();
30 } 30 }
31 31
32 32
33 Handle<Object> TypeFeedbackVector::GenericSentinel(Isolate* isolate) {
34 return isolate->factory()->generic_symbol();
35 }
36
37
38 Handle<Object> TypeFeedbackVector::MonomorphicArraySentinel( 33 Handle<Object> TypeFeedbackVector::MonomorphicArraySentinel(
39 Isolate* isolate, ElementsKind elements_kind) { 34 Isolate* isolate, ElementsKind elements_kind) {
40 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate); 35 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate);
41 } 36 }
42 37
43 38
44 Object* TypeFeedbackVector::RawUninitializedSentinel(Heap* heap) { 39 Object* TypeFeedbackVector::RawUninitializedSentinel(Heap* heap) {
45 return heap->uninitialized_symbol(); 40 return heap->uninitialized_symbol();
46 } 41 }
47 } 42 }
48 } // namespace v8::internal 43 } // namespace v8::internal
49 44
50 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ 45 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_
OLDNEW
« no previous file with comments | « src/type-feedback-vector.cc ('k') | tools/v8heapconst.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698