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

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

Issue 25520003: Don't use StubType to probe the code caches. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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.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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 }; 76 };
77 77
78 void Initialize(); 78 void Initialize();
79 79
80 Handle<JSObject> StubHolder(Handle<JSObject> receiver, 80 Handle<JSObject> StubHolder(Handle<JSObject> receiver,
81 Handle<JSObject> holder); 81 Handle<JSObject> holder);
82 82
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::StubType type,
87 Code::ExtraICState extra_state = Code::kNoExtraICState); 86 Code::ExtraICState extra_state = Code::kNoExtraICState);
88 87
89 Handle<Code> FindIC(Handle<Name> name, 88 Handle<Code> FindIC(Handle<Name> name,
90 Handle<JSObject> stub_holder, 89 Handle<JSObject> stub_holder,
91 Code::Kind kind, 90 Code::Kind kind,
92 Code::StubType type,
93 Code::ExtraICState extra_state = Code::kNoExtraICState); 91 Code::ExtraICState extra_state = Code::kNoExtraICState);
94 92
95 Handle<Code> FindLoadHandler(Handle<Name> name, 93 Handle<Code> FindLoadHandler(Handle<Name> name,
96 Handle<JSObject> receiver, 94 Handle<JSObject> receiver,
97 Code::Kind kind, 95 Code::Kind kind);
98 Code::StubType type);
99 96
100 Handle<Code> FindStoreHandler(Handle<Name> name, 97 Handle<Code> FindStoreHandler(Handle<Name> name,
101 Handle<JSObject> receiver, 98 Handle<JSObject> receiver,
102 Code::Kind kind, 99 Code::Kind kind,
103 Code::StubType type,
104 StrictModeFlag strict_mode); 100 StrictModeFlag strict_mode);
105 101
106 Handle<Code> ComputeMonomorphicIC(Handle<HeapObject> receiver, 102 Handle<Code> ComputeMonomorphicIC(Handle<HeapObject> receiver,
107 Handle<Code> handler, 103 Handle<Code> handler,
108 Handle<Name> name, 104 Handle<Name> name,
109 StrictModeFlag strict_mode); 105 StrictModeFlag strict_mode);
110 106
111 // Computes the right stub matching. Inserts the result in the 107 // Computes the right stub matching. Inserts the result in the
112 // cache before returning. This might compile a stub if needed. 108 // cache before returning. This might compile a stub if needed.
113 Handle<Code> ComputeLoadNonexistent(Handle<Name> name, 109 Handle<Code> ComputeLoadNonexistent(Handle<Name> name,
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 Handle<JSFunction> constant_function_; 1183 Handle<JSFunction> constant_function_;
1188 bool is_simple_api_call_; 1184 bool is_simple_api_call_;
1189 Handle<FunctionTemplateInfo> expected_receiver_type_; 1185 Handle<FunctionTemplateInfo> expected_receiver_type_;
1190 Handle<CallHandlerInfo> api_call_info_; 1186 Handle<CallHandlerInfo> api_call_info_;
1191 }; 1187 };
1192 1188
1193 1189
1194 } } // namespace v8::internal 1190 } } // namespace v8::internal
1195 1191
1196 #endif // V8_STUB_CACHE_H_ 1192 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698