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

Side by Side Diff: src/ic.h

Issue 8356039: Handlify upper layers of KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments, rebase. Created 9 years, 2 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
« no previous file with comments | « no previous file | src/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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 ASSERT((code->extra_ic_state() & kStrictMode) == 596 ASSERT((code->extra_ic_state() & kStrictMode) ==
597 (target()->extra_ic_state() & kStrictMode)); 597 (target()->extra_ic_state() & kStrictMode));
598 IC::set_target(code); 598 IC::set_target(code);
599 } 599 }
600 600
601 // Stub accessors. 601 // Stub accessors.
602 static Code* initialize_stub() { 602 static Code* initialize_stub() {
603 return Isolate::Current()->builtins()->builtin( 603 return Isolate::Current()->builtins()->builtin(
604 Builtins::kKeyedStoreIC_Initialize); 604 Builtins::kKeyedStoreIC_Initialize);
605 } 605 }
606 Code* megamorphic_stub() {
607 return isolate()->builtins()->builtin(
608 Builtins::kKeyedStoreIC_Generic);
609 }
610 static Code* initialize_stub_strict() { 606 static Code* initialize_stub_strict() {
611 return Isolate::Current()->builtins()->builtin( 607 return Isolate::Current()->builtins()->builtin(
612 Builtins::kKeyedStoreIC_Initialize_Strict); 608 Builtins::kKeyedStoreIC_Initialize_Strict);
613 } 609 }
614 Code* megamorphic_stub_strict() { 610 Handle<Code> megamorphic_stub() {
615 return isolate()->builtins()->builtin( 611 return isolate()->builtins()->KeyedStoreIC_Generic();
616 Builtins::kKeyedStoreIC_Generic_Strict);
617 } 612 }
618 Code* generic_stub() { 613 Handle<Code> megamorphic_stub_strict() {
619 return isolate()->builtins()->builtin( 614 return isolate()->builtins()->KeyedStoreIC_Generic_Strict();
620 Builtins::kKeyedStoreIC_Generic);
621 } 615 }
622 Code* generic_stub_strict() { 616 Handle<Code> generic_stub() {
623 return isolate()->builtins()->builtin( 617 return isolate()->builtins()->KeyedStoreIC_Generic();
624 Builtins::kKeyedStoreIC_Generic_Strict);
625 } 618 }
626 Code* non_strict_arguments_stub() { 619 Handle<Code> generic_stub_strict() {
627 return isolate()->builtins()->builtin( 620 return isolate()->builtins()->KeyedStoreIC_Generic_Strict();
628 Builtins::kKeyedStoreIC_NonStrictArguments); 621 }
622 Handle<Code> non_strict_arguments_stub() {
623 return isolate()->builtins()->KeyedStoreIC_NonStrictArguments();
629 } 624 }
630 625
631 static void Clear(Address address, Code* target); 626 static void Clear(Address address, Code* target);
632 627
633 friend class IC; 628 friend class IC;
634 }; 629 };
635 630
636 631
637 class UnaryOpIC: public IC { 632 class UnaryOpIC: public IC {
638 public: 633 public:
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 void patch(Code* code); 730 void patch(Code* code);
736 }; 731 };
737 732
738 733
739 // Helper for BinaryOpIC and CompareIC. 734 // Helper for BinaryOpIC and CompareIC.
740 void PatchInlinedSmiCode(Address address); 735 void PatchInlinedSmiCode(Address address);
741 736
742 } } // namespace v8::internal 737 } } // namespace v8::internal
743 738
744 #endif // V8_IC_H_ 739 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « no previous file | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698