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

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

Issue 2182103002: [KeyedLoadIC] Support Smi "handlers" for simple field loads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased 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/ic/handler-compiler.cc ('k') | src/ic/ic.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 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_IC_H_ 5 #ifndef V8_IC_H_
6 #define V8_IC_H_ 6 #define V8_IC_H_
7 7
8 #include "src/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 348 }
349 349
350 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object, 350 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object,
351 Handle<Object> key); 351 Handle<Object> key);
352 352
353 // Code generator routines. 353 // Code generator routines.
354 static void GenerateMiss(MacroAssembler* masm); 354 static void GenerateMiss(MacroAssembler* masm);
355 static void GenerateRuntimeGetProperty(MacroAssembler* masm); 355 static void GenerateRuntimeGetProperty(MacroAssembler* masm);
356 static void GenerateMegamorphic(MacroAssembler* masm); 356 static void GenerateMegamorphic(MacroAssembler* masm);
357 357
358 static Handle<Code> initialize_stub_in_optimized_code( 358 static Handle<Code> initialize_stub_in_optimized_code(Isolate* isolate);
359 Isolate* isolate, ExtraICState extra_state);
360 static Handle<Code> ChooseMegamorphicStub(Isolate* isolate, 359 static Handle<Code> ChooseMegamorphicStub(Isolate* isolate,
361 ExtraICState extra_state); 360 ExtraICState extra_state);
362 361
363 static void Clear(Isolate* isolate, Code* host, KeyedLoadICNexus* nexus); 362 static void Clear(Isolate* isolate, Code* host, KeyedLoadICNexus* nexus);
364 363
365 protected: 364 protected:
366 // receiver is HeapObject because it could be a String or a JSObject 365 // receiver is HeapObject because it could be a String or a JSObject
367 void UpdateLoadElement(Handle<HeapObject> receiver); 366 void UpdateLoadElement(Handle<HeapObject> receiver);
368 367
369 private: 368 private:
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 523
525 // Helper for BinaryOpIC and CompareIC. 524 // Helper for BinaryOpIC and CompareIC.
526 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 525 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
527 void PatchInlinedSmiCode(Isolate* isolate, Address address, 526 void PatchInlinedSmiCode(Isolate* isolate, Address address,
528 InlinedSmiCheck check); 527 InlinedSmiCheck check);
529 528
530 } // namespace internal 529 } // namespace internal
531 } // namespace v8 530 } // namespace v8
532 531
533 #endif // V8_IC_H_ 532 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ic/handler-compiler.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698