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

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

Issue 25548009: Centralize handler caching and probing in ic.cc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Undo moving fallback IC handling Created 7 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 | « src/objects.h ('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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 Handle<Code> FindIC(Handle<Name> name, 83 Handle<Code> FindIC(Handle<Name> name,
84 Handle<Map> stub_holder_map, 84 Handle<Map> stub_holder_map,
85 Code::Kind kind, 85 Code::Kind kind,
86 Code::ExtraICState extra_state = Code::kNoExtraICState); 86 Code::ExtraICState extra_state = Code::kNoExtraICState);
87 87
88 Handle<Code> FindIC(Handle<Name> name, 88 Handle<Code> FindIC(Handle<Name> name,
89 Handle<JSObject> stub_holder, 89 Handle<JSObject> stub_holder,
90 Code::Kind kind, 90 Code::Kind kind,
91 Code::ExtraICState extra_state = Code::kNoExtraICState); 91 Code::ExtraICState extra_state = Code::kNoExtraICState);
92 92
93 Handle<Code> FindLoadHandler(Handle<Name> name, 93 Handle<Code> FindHandler(Handle<Name> name,
94 Handle<JSObject> receiver, 94 Handle<JSObject> receiver,
95 Code::Kind kind); 95 Code::Kind kind,
96 96 StrictModeFlag strict_mode = kNonStrictMode);
97 Handle<Code> FindStoreHandler(Handle<Name> name,
98 Handle<JSObject> receiver,
99 Code::Kind kind,
100 StrictModeFlag strict_mode);
101 97
102 Handle<Code> ComputeMonomorphicIC(Handle<HeapObject> receiver, 98 Handle<Code> ComputeMonomorphicIC(Handle<HeapObject> receiver,
103 Handle<Code> handler, 99 Handle<Code> handler,
104 Handle<Name> name, 100 Handle<Name> name,
105 StrictModeFlag strict_mode); 101 StrictModeFlag strict_mode);
106 102
107 // Computes the right stub matching. Inserts the result in the 103 // Computes the right stub matching. Inserts the result in the
108 // cache before returning. This might compile a stub if needed. 104 // cache before returning. This might compile a stub if needed.
109 Handle<Code> ComputeLoadNonexistent(Handle<Name> name, 105 Handle<Code> ComputeLoadNonexistent(Handle<Name> name,
110 Handle<JSObject> object); 106 Handle<JSObject> object);
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 Handle<JSFunction> constant_function_; 1179 Handle<JSFunction> constant_function_;
1184 bool is_simple_api_call_; 1180 bool is_simple_api_call_;
1185 Handle<FunctionTemplateInfo> expected_receiver_type_; 1181 Handle<FunctionTemplateInfo> expected_receiver_type_;
1186 Handle<CallHandlerInfo> api_call_info_; 1182 Handle<CallHandlerInfo> api_call_info_;
1187 }; 1183 };
1188 1184
1189 1185
1190 } } // namespace v8::internal 1186 } } // namespace v8::internal
1191 1187
1192 #endif // V8_STUB_CACHE_H_ 1188 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698