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

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

Issue 755513003: Hydrogen: fix keyed loads with string keys (Closed) Base URL: gh:v8/v8@master
Patch Set: better fix Created 6 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
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_IC_IC_COMPILER_H_ 5 #ifndef V8_IC_IC_COMPILER_H_
6 #define V8_IC_IC_COMPILER_H_ 6 #define V8_IC_IC_COMPILER_H_
7 7
8 #include "src/ic/access-compiler.h" 8 #include "src/ic/access-compiler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 18 matching lines...) Expand all
29 ExtraICState extra_ic_state); 29 ExtraICState extra_ic_state);
30 static Handle<Code> ComputePolymorphic(Code::Kind kind, TypeHandleList* types, 30 static Handle<Code> ComputePolymorphic(Code::Kind kind, TypeHandleList* types,
31 CodeHandleList* handlers, 31 CodeHandleList* handlers,
32 int number_of_valid_maps, 32 int number_of_valid_maps,
33 Handle<Name> name, 33 Handle<Name> name,
34 ExtraICState extra_ic_state); 34 ExtraICState extra_ic_state);
35 35
36 // Keyed 36 // Keyed
37 static Handle<Code> ComputeKeyedLoadMonomorphicHandler( 37 static Handle<Code> ComputeKeyedLoadMonomorphicHandler(
38 Handle<Map> receiver_map); 38 Handle<Map> receiver_map);
39 static Handle<Code> ComputeKeyedLoadMonomorphic(Handle<Map> receiver_map); 39 static Handle<Code> ComputeKeyedLoadMonomorphic(Handle<Map> receiver_map,
40 IcCheckType key_type);
40 41
41 static Handle<Code> ComputeKeyedStoreMonomorphic( 42 static Handle<Code> ComputeKeyedStoreMonomorphic(
42 Handle<Map> receiver_map, StrictMode strict_mode, 43 Handle<Map> receiver_map, StrictMode strict_mode,
43 KeyedAccessStoreMode store_mode); 44 KeyedAccessStoreMode store_mode);
44 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps); 45 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps,
46 IcCheckType key_type);
45 static Handle<Code> ComputeKeyedStorePolymorphic( 47 static Handle<Code> ComputeKeyedStorePolymorphic(
46 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode, 48 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode,
47 StrictMode strict_mode); 49 StrictMode strict_mode);
48 50
49 // Compare nil 51 // Compare nil
50 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, 52 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map,
51 CompareNilICStub* stub); 53 CompareNilICStub* stub);
52 54
53 // Helpers 55 // Helpers
54 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler 56 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 117 }
116 118
117 const ExtraICState extra_ic_state_; 119 const ExtraICState extra_ic_state_;
118 }; 120 };
119 121
120 122
121 } 123 }
122 } // namespace v8::internal 124 } // namespace v8::internal
123 125
124 #endif // V8_IC_IC_COMPILER_H_ 126 #endif // V8_IC_IC_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698