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

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: Rebase 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 explicit StoreIC(FrameDepth depth, Isolate* isolate)
Jakob Kummerow 2013/03/11 16:36:07 nit: no "explicit" necessary
danno 2013/03/13 15:36:26 Done.
499 : IC(depth, isolate) {
499 ASSERT(target()->is_store_stub() || target()->is_keyed_store_stub()); 500 ASSERT(target()->is_store_stub() || target()->is_keyed_store_stub());
500 } 501 }
501 502
502 // Code generators for stub routines. Only called once at startup. 503 // Code generators for stub routines. Only called once at startup.
503 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } 504 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); }
504 static void GenerateMiss(MacroAssembler* masm); 505 static void GenerateMiss(MacroAssembler* masm);
505 static void GenerateMegamorphic(MacroAssembler* masm, 506 static void GenerateMegamorphic(MacroAssembler* masm,
506 StrictModeFlag strict_mode); 507 StrictModeFlag strict_mode);
507 static void GenerateNormal(MacroAssembler* masm); 508 static void GenerateNormal(MacroAssembler* masm);
508 static void GenerateGlobalProxy(MacroAssembler* masm, 509 static void GenerateGlobalProxy(MacroAssembler* masm,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 578
578 579
579 enum KeyedStoreIncrementLength { 580 enum KeyedStoreIncrementLength {
580 kDontIncrementLength, 581 kDontIncrementLength,
581 kIncrementLength 582 kIncrementLength
582 }; 583 };
583 584
584 585
585 class KeyedStoreIC: public StoreIC { 586 class KeyedStoreIC: public StoreIC {
586 public: 587 public:
587 explicit KeyedStoreIC(Isolate* isolate) : StoreIC(isolate) { 588 KeyedStoreIC(FrameDepth depth, Isolate* isolate)
589 : StoreIC(depth, isolate) {
588 ASSERT(target()->is_keyed_store_stub()); 590 ASSERT(target()->is_keyed_store_stub());
589 } 591 }
590 592
591 MUST_USE_RESULT MaybeObject* Store(State state, 593 MUST_USE_RESULT MaybeObject* Store(State state,
592 StrictModeFlag strict_mode, 594 StrictModeFlag strict_mode,
593 Handle<Object> object, 595 Handle<Object> object,
594 Handle<Object> name, 596 Handle<Object> name,
595 Handle<Object> value, 597 Handle<Object> value,
596 ICMissMode force_generic); 598 ICMissMode force_generic);
597 599
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 780
779 void patch(Code* code); 781 void patch(Code* code);
780 }; 782 };
781 783
782 784
783 // Helper for BinaryOpIC and CompareIC. 785 // Helper for BinaryOpIC and CompareIC.
784 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 786 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
785 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 787 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
786 788
787 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); 789 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure);
790 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure);
788 791
789 } } // namespace v8::internal 792 } } // namespace v8::internal
790 793
791 #endif // V8_IC_H_ 794 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698