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

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

Issue 23691056: Handle non-JSObject heap objects using slow-path IC stub guarded by the map. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 3 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 Handle<JSObject> stub_holder, 97 Handle<JSObject> stub_holder,
98 Code::Kind kind, 98 Code::Kind kind,
99 Code::StubType type); 99 Code::StubType type);
100 100
101 Handle<Code> FindStoreHandler(Handle<Name> name, 101 Handle<Code> FindStoreHandler(Handle<Name> name,
102 Handle<JSObject> receiver, 102 Handle<JSObject> receiver,
103 Code::Kind kind, 103 Code::Kind kind,
104 Code::StubType type, 104 Code::StubType type,
105 StrictModeFlag strict_mode); 105 StrictModeFlag strict_mode);
106 106
107 Handle<Code> ComputeMonomorphicLoadIC(Handle<JSObject> receiver, 107 Handle<Code> ComputeMonomorphicLoadIC(Handle<HeapObject> receiver,
108 Handle<Code> handler, 108 Handle<Code> handler,
109 Handle<Name> name); 109 Handle<Name> name);
110 110
111 Handle<Code> ComputeMonomorphicKeyedLoadIC(Handle<JSObject> receiver, 111 Handle<Code> ComputeMonomorphicKeyedLoadIC(Handle<HeapObject> receiver,
112 Handle<Code> handler, 112 Handle<Code> handler,
113 Handle<Name> name); 113 Handle<Name> name);
114 114
115 Handle<Code> ComputeMonomorphicStoreIC(Handle<JSObject> receiver, 115 Handle<Code> ComputeMonomorphicStoreIC(Handle<HeapObject> receiver,
116 Handle<Code> handler, 116 Handle<Code> handler,
117 Handle<Name> name, 117 Handle<Name> name,
118 StrictModeFlag strict_mode); 118 StrictModeFlag strict_mode);
119 119
120 Handle<Code> ComputeMonomorphicKeyedStoreIC(Handle<JSObject> receiver, 120 Handle<Code> ComputeMonomorphicKeyedStoreIC(Handle<HeapObject> receiver,
121 Handle<Code> handler, 121 Handle<Code> handler,
122 Handle<Name> name, 122 Handle<Name> name,
123 StrictModeFlag strict_mode); 123 StrictModeFlag strict_mode);
124 124
125 // Computes the right stub matching. Inserts the result in the 125 // Computes the right stub matching. Inserts the result in the
126 // cache before returning. This might compile a stub if needed. 126 // cache before returning. This might compile a stub if needed.
127 Handle<Code> ComputeLoadNonexistent(Handle<Name> name, 127 Handle<Code> ComputeLoadNonexistent(Handle<Name> name,
128 Handle<JSObject> object); 128 Handle<JSObject> object);
129 129
130 Handle<Code> ComputeLoadField(Handle<Name> name, 130 Handle<Code> ComputeLoadField(Handle<Name> name,
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 Handle<JSFunction> constant_function_; 1201 Handle<JSFunction> constant_function_;
1202 bool is_simple_api_call_; 1202 bool is_simple_api_call_;
1203 Handle<FunctionTemplateInfo> expected_receiver_type_; 1203 Handle<FunctionTemplateInfo> expected_receiver_type_;
1204 Handle<CallHandlerInfo> api_call_info_; 1204 Handle<CallHandlerInfo> api_call_info_;
1205 }; 1205 };
1206 1206
1207 1207
1208 } } // namespace v8::internal 1208 } } // namespace v8::internal
1209 1209
1210 #endif // V8_STUB_CACHE_H_ 1210 #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