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

Side by Side Diff: src/stub-cache.h

Issue 12426008: Load/Store stub compilation refactoring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/stub-cache.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 // 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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 ElementsKind elements_kind); 888 ElementsKind elements_kind);
889 889
890 static void GenerateStoreDictionaryElement(MacroAssembler* masm); 890 static void GenerateStoreDictionaryElement(MacroAssembler* masm);
891 891
892 protected: 892 protected:
893 virtual Code::ExtraICState extra_state() { 893 virtual Code::ExtraICState extra_state() {
894 return Code::ComputeExtraICState(store_mode_, strict_mode()); 894 return Code::ComputeExtraICState(store_mode_, strict_mode());
895 } 895 }
896 896
897 private: 897 private:
898 Register transition_map() {
899 return registers()[3];
900 }
901
898 static Register* registers(); 902 static Register* registers();
899 virtual Code::Kind kind() { return Code::KEYED_STORE_IC; } 903 virtual Code::Kind kind() { return Code::KEYED_STORE_IC; }
900 virtual Logger::LogEventsAndTags log_kind(Handle<Code> code) { 904 virtual Logger::LogEventsAndTags log_kind(Handle<Code> code) {
901 if (!code->is_inline_cache_stub()) return Logger::STUB_TAG; 905 if (!code->is_inline_cache_stub()) return Logger::STUB_TAG;
902 return code->ic_state() == MONOMORPHIC 906 return code->ic_state() == MONOMORPHIC
903 ? Logger::KEYED_STORE_IC_TAG : Logger::KEYED_STORE_POLYMORPHIC_IC_TAG; 907 ? Logger::KEYED_STORE_IC_TAG : Logger::KEYED_STORE_POLYMORPHIC_IC_TAG;
904 } 908 }
905 virtual void JitEvent(Handle<Name> name, Handle<Code> code); 909 virtual void JitEvent(Handle<Name> name, Handle<Code> code);
906 virtual void GenerateNameCheck(Handle<Name> name, 910 virtual void GenerateNameCheck(Handle<Name> name,
907 Register name_reg, 911 Register name_reg,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 Handle<JSFunction> constant_function_; 1077 Handle<JSFunction> constant_function_;
1074 bool is_simple_api_call_; 1078 bool is_simple_api_call_;
1075 Handle<FunctionTemplateInfo> expected_receiver_type_; 1079 Handle<FunctionTemplateInfo> expected_receiver_type_;
1076 Handle<CallHandlerInfo> api_call_info_; 1080 Handle<CallHandlerInfo> api_call_info_;
1077 }; 1081 };
1078 1082
1079 1083
1080 } } // namespace v8::internal 1084 } } // namespace v8::internal
1081 1085
1082 #endif // V8_STUB_CACHE_H_ 1086 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698