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

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

Issue 1238463002: Minor cleanup IC keyed access handling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 659
660 Handle<Code> StoreElementStub(Handle<JSObject> receiver, 660 Handle<Code> StoreElementStub(Handle<JSObject> receiver,
661 KeyedAccessStoreMode store_mode); 661 KeyedAccessStoreMode store_mode);
662 662
663 private: 663 private:
664 inline void set_target(Code* code); 664 inline void set_target(Code* code);
665 665
666 static void Clear(Isolate* isolate, Address address, Code* target, 666 static void Clear(Isolate* isolate, Address address, Code* target,
667 Address constant_pool); 667 Address constant_pool);
668 668
669 KeyedAccessStoreMode GetStoreMode(Handle<JSObject> receiver,
670 Handle<Object> key, Handle<Object> value);
671
672 Handle<Map> ComputeTransitionedMap(Handle<Map> map, 669 Handle<Map> ComputeTransitionedMap(Handle<Map> map,
673 KeyedAccessStoreMode store_mode); 670 KeyedAccessStoreMode store_mode);
674 671
675 friend class IC; 672 friend class IC;
676 }; 673 };
677 674
678 675
679 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. 676 // Type Recording BinaryOpIC, that records the types of the inputs and outputs.
680 class BinaryOpIC : public IC { 677 class BinaryOpIC : public IC {
681 public: 678 public:
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 763
767 // Support functions for interceptor handlers. 764 // Support functions for interceptor handlers.
768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); 765 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly);
769 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); 766 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor);
770 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); 767 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor);
771 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); 768 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor);
772 } 769 }
773 } // namespace v8::internal 770 } // namespace v8::internal
774 771
775 #endif // V8_IC_H_ 772 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « no previous file | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698