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

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

Issue 2227703003: Reland "[KeyedLoadIC] Support Smi "handlers" for element loads" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add DCHECK Created 4 years, 4 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/field-index-inl.h ('k') | src/ic/handler-compiler.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_IC_HANDLER_COMPILER_H_ 5 #ifndef V8_IC_HANDLER_COMPILER_H_
6 #define V8_IC_HANDLER_COMPILER_H_ 6 #define V8_IC_HANDLER_COMPILER_H_
7 7
8 #include "src/ic/access-compiler.h" 8 #include "src/ic/access-compiler.h"
9 #include "src/ic/ic-state.h" 9 #include "src/ic/ic-state.h"
10 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 class ElementHandlerCompiler : public PropertyHandlerCompiler { 273 class ElementHandlerCompiler : public PropertyHandlerCompiler {
274 public: 274 public:
275 explicit ElementHandlerCompiler(Isolate* isolate) 275 explicit ElementHandlerCompiler(Isolate* isolate)
276 : PropertyHandlerCompiler(isolate, Code::KEYED_LOAD_IC, 276 : PropertyHandlerCompiler(isolate, Code::KEYED_LOAD_IC,
277 Handle<Map>::null(), Handle<JSObject>::null(), 277 Handle<Map>::null(), Handle<JSObject>::null(),
278 kCacheOnReceiver) {} 278 kCacheOnReceiver) {}
279 279
280 virtual ~ElementHandlerCompiler() {} 280 virtual ~ElementHandlerCompiler() {}
281 281
282 static Handle<Code> GetKeyedLoadHandler(Handle<Map> receiver_map, 282 static Handle<Object> GetKeyedLoadHandler(Handle<Map> receiver_map,
283 Isolate* isolate); 283 Isolate* isolate);
284 void CompileElementHandlers(MapHandleList* receiver_maps, 284 void CompileElementHandlers(MapHandleList* receiver_maps,
285 List<Handle<Object>>* handlers); 285 List<Handle<Object>>* handlers);
286 286
287 static void GenerateStoreSlow(MacroAssembler* masm); 287 static void GenerateStoreSlow(MacroAssembler* masm);
288 }; 288 };
289 } // namespace internal 289 } // namespace internal
290 } // namespace v8 290 } // namespace v8
291 291
292 #endif // V8_IC_HANDLER_COMPILER_H_ 292 #endif // V8_IC_HANDLER_COMPILER_H_
OLDNEW
« no previous file with comments | « src/field-index-inl.h ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698