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

Side by Side Diff: src/ic.h

Issue 12221064: Implement many KeyedStoreStubs using Crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 } 488 }
489 489
490 static void Clear(Address address, Code* target); 490 static void Clear(Address address, Code* target);
491 491
492 friend class IC; 492 friend class IC;
493 }; 493 };
494 494
495 495
496 class StoreIC: public IC { 496 class StoreIC: public IC {
497 public: 497 public:
498 explicit StoreIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { 498 StoreIC(FrameDepth depth, Isolate* isolate) : IC(depth, isolate) {
499 ASSERT(target()->is_store_stub() || target()->is_keyed_store_stub()); 499 ASSERT(target()->is_store_stub() || target()->is_keyed_store_stub());
500 } 500 }
501 501
502 // Code generators for stub routines. Only called once at startup. 502 // Code generators for stub routines. Only called once at startup.
503 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } 503 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); }
504 static void GenerateMiss(MacroAssembler* masm); 504 static void GenerateMiss(MacroAssembler* masm);
505 static void GenerateMegamorphic(MacroAssembler* masm, 505 static void GenerateMegamorphic(MacroAssembler* masm,
506 StrictModeFlag strict_mode); 506 StrictModeFlag strict_mode);
507 static void GenerateNormal(MacroAssembler* masm); 507 static void GenerateNormal(MacroAssembler* masm);
508 static void GenerateGlobalProxy(MacroAssembler* masm, 508 static void GenerateGlobalProxy(MacroAssembler* masm,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 577
578 578
579 enum KeyedStoreIncrementLength { 579 enum KeyedStoreIncrementLength {
580 kDontIncrementLength, 580 kDontIncrementLength,
581 kIncrementLength 581 kIncrementLength
582 }; 582 };
583 583
584 584
585 class KeyedStoreIC: public StoreIC { 585 class KeyedStoreIC: public StoreIC {
586 public: 586 public:
587 explicit KeyedStoreIC(Isolate* isolate) : StoreIC(isolate) { 587 KeyedStoreIC(FrameDepth depth, Isolate* isolate)
588 : StoreIC(depth, isolate) {
588 ASSERT(target()->is_keyed_store_stub()); 589 ASSERT(target()->is_keyed_store_stub());
589 } 590 }
590 591
591 MUST_USE_RESULT MaybeObject* Store(State state, 592 MUST_USE_RESULT MaybeObject* Store(State state,
592 StrictModeFlag strict_mode, 593 StrictModeFlag strict_mode,
593 Handle<Object> object, 594 Handle<Object> object,
594 Handle<Object> name, 595 Handle<Object> name,
595 Handle<Object> value, 596 Handle<Object> value,
596 ICMissMode force_generic); 597 ICMissMode force_generic);
597 598
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 779
779 void patch(Code* code); 780 void patch(Code* code);
780 }; 781 };
781 782
782 783
783 // Helper for BinaryOpIC and CompareIC. 784 // Helper for BinaryOpIC and CompareIC.
784 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 785 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
785 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 786 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
786 787
787 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); 788 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure);
789 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure);
788 790
789 } } // namespace v8::internal 791 } } // namespace v8::internal
790 792
791 #endif // V8_IC_H_ 793 #endif // V8_IC_H_
OLDNEW
« src/hydrogen.cc ('K') | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698