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

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

Issue 25260002: Always store stubs on the JSObject receiver, even when in slow mode. (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/ic-inl.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 Code::ExtraICState extra_state = Code::kNoExtraICState); 87 Code::ExtraICState extra_state = Code::kNoExtraICState);
88 88
89 Handle<Code> FindIC(Handle<Name> name, 89 Handle<Code> FindIC(Handle<Name> name,
90 Handle<JSObject> stub_holder, 90 Handle<JSObject> stub_holder,
91 Code::Kind kind, 91 Code::Kind kind,
92 Code::StubType type, 92 Code::StubType type,
93 Code::ExtraICState extra_state = Code::kNoExtraICState); 93 Code::ExtraICState extra_state = Code::kNoExtraICState);
94 94
95 Handle<Code> FindLoadHandler(Handle<Name> name, 95 Handle<Code> FindLoadHandler(Handle<Name> name,
96 Handle<JSObject> receiver, 96 Handle<JSObject> receiver,
97 Handle<JSObject> stub_holder,
98 Code::Kind kind, 97 Code::Kind kind,
99 Code::StubType type); 98 Code::StubType type);
100 99
101 Handle<Code> FindStoreHandler(Handle<Name> name, 100 Handle<Code> FindStoreHandler(Handle<Name> name,
102 Handle<JSObject> receiver, 101 Handle<JSObject> receiver,
103 Code::Kind kind, 102 Code::Kind kind,
104 Code::StubType type, 103 Code::StubType type,
105 StrictModeFlag strict_mode); 104 StrictModeFlag strict_mode);
106 105
107 Handle<Code> ComputeMonomorphicIC(Handle<HeapObject> receiver, 106 Handle<Code> ComputeMonomorphicIC(Handle<HeapObject> receiver,
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 #define SITE_SPECIFIC_CALL_GENERATORS(V) \ 1039 #define SITE_SPECIFIC_CALL_GENERATORS(V) \
1041 V(ArrayCode) 1040 V(ArrayCode)
1042 1041
1043 1042
1044 class CallStubCompiler: public StubCompiler { 1043 class CallStubCompiler: public StubCompiler {
1045 public: 1044 public:
1046 CallStubCompiler(Isolate* isolate, 1045 CallStubCompiler(Isolate* isolate,
1047 int argc, 1046 int argc,
1048 Code::Kind kind, 1047 Code::Kind kind,
1049 Code::ExtraICState extra_state, 1048 Code::ExtraICState extra_state,
1050 InlineCacheHolderFlag cache_holder); 1049 InlineCacheHolderFlag cache_holder = OWN_MAP);
1051 1050
1052 Handle<Code> CompileCallField(Handle<JSObject> object, 1051 Handle<Code> CompileCallField(Handle<JSObject> object,
1053 Handle<JSObject> holder, 1052 Handle<JSObject> holder,
1054 PropertyIndex index, 1053 PropertyIndex index,
1055 Handle<Name> name); 1054 Handle<Name> name);
1056 1055
1057 void CompileHandlerFrontend(Handle<Object> object, 1056 void CompileHandlerFrontend(Handle<Object> object,
1058 Handle<JSObject> holder, 1057 Handle<JSObject> holder,
1059 Handle<Name> name, 1058 Handle<Name> name,
1060 CheckType check, 1059 CheckType check,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 Handle<JSFunction> constant_function_; 1187 Handle<JSFunction> constant_function_;
1189 bool is_simple_api_call_; 1188 bool is_simple_api_call_;
1190 Handle<FunctionTemplateInfo> expected_receiver_type_; 1189 Handle<FunctionTemplateInfo> expected_receiver_type_;
1191 Handle<CallHandlerInfo> api_call_info_; 1190 Handle<CallHandlerInfo> api_call_info_;
1192 }; 1191 };
1193 1192
1194 1193
1195 } } // namespace v8::internal 1194 } } // namespace v8::internal
1196 1195
1197 #endif // V8_STUB_CACHE_H_ 1196 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/ic-inl.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698