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

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

Issue 14367018: Add monomorphic CompareNilICs and Crankshaft support (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 8 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/spaces.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 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_STUB_CACHE_H_ 28 #ifndef V8_STUB_CACHE_H_
29 #define V8_STUB_CACHE_H_ 29 #define V8_STUB_CACHE_H_
30 30
31 #include "allocation.h" 31 #include "allocation.h"
32 #include "arguments.h" 32 #include "arguments.h"
33 #include "code-stubs.h"
33 #include "ic-inl.h" 34 #include "ic-inl.h"
34 #include "macro-assembler.h" 35 #include "macro-assembler.h"
35 #include "objects.h" 36 #include "objects.h"
36 #include "zone-inl.h" 37 #include "zone-inl.h"
37 38
38 namespace v8 { 39 namespace v8 {
39 namespace internal { 40 namespace internal {
40 41
41 42
42 // The stub cache is used for megamorphic calls and property accesses. 43 // The stub cache is used for megamorphic calls and property accesses.
(...skipping 28 matching lines...) Expand all
71 Code* value; 72 Code* value;
72 Map* map; 73 Map* map;
73 }; 74 };
74 75
75 void Initialize(); 76 void Initialize();
76 77
77 Handle<JSObject> StubHolder(Handle<JSObject> receiver, 78 Handle<JSObject> StubHolder(Handle<JSObject> receiver,
78 Handle<JSObject> holder); 79 Handle<JSObject> holder);
79 80
80 Handle<Code> FindIC(Handle<Name> name, 81 Handle<Code> FindIC(Handle<Name> name,
82 Handle<Map> stub_holder_map,
83 Code::Kind kind,
84 Code::StubType type,
85 Code::ExtraICState extra_state = Code::kNoExtraICState);
86
87 Handle<Code> FindIC(Handle<Name> name,
81 Handle<JSObject> stub_holder, 88 Handle<JSObject> stub_holder,
82 Code::Kind kind, 89 Code::Kind kind,
83 Code::StubType type, 90 Code::StubType type,
84 Code::ExtraICState extra_state = Code::kNoExtraICState); 91 Code::ExtraICState extra_state = Code::kNoExtraICState);
85 92
86 Handle<Code> FindHandler( 93 Handle<Code> FindHandler(
87 Handle<Name> name, 94 Handle<Name> name,
88 Handle<JSObject> receiver, 95 Handle<JSObject> receiver,
89 Handle<JSObject> stub_holder, 96 Handle<JSObject> stub_holder,
90 Code::Kind kind, 97 Code::Kind kind,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 Handle<Code> ComputeCallMegamorphic(int argc, 271 Handle<Code> ComputeCallMegamorphic(int argc,
265 Code::Kind kind, 272 Code::Kind kind,
266 Code::ExtraICState state); 273 Code::ExtraICState state);
267 274
268 Handle<Code> ComputeCallMiss(int argc, 275 Handle<Code> ComputeCallMiss(int argc,
269 Code::Kind kind, 276 Code::Kind kind,
270 Code::ExtraICState state); 277 Code::ExtraICState state);
271 278
272 // --- 279 // ---
273 280
281 Handle<Code> ComputeCompareNil(Handle<Map> receiver_map,
282 NilValue nil,
283 CompareNilICStub::Types types);
284
285 // ---
286
274 Handle<Code> ComputeLoadElementPolymorphic(MapHandleList* receiver_maps); 287 Handle<Code> ComputeLoadElementPolymorphic(MapHandleList* receiver_maps);
275 Handle<Code> ComputeStoreElementPolymorphic(MapHandleList* receiver_maps, 288 Handle<Code> ComputeStoreElementPolymorphic(MapHandleList* receiver_maps,
276 KeyedAccessStoreMode store_mode, 289 KeyedAccessStoreMode store_mode,
277 StrictModeFlag strict_mode); 290 StrictModeFlag strict_mode);
278 291
279 Handle<Code> ComputePolymorphicIC(MapHandleList* receiver_maps, 292 Handle<Code> ComputePolymorphicIC(MapHandleList* receiver_maps,
280 CodeHandleList* handlers, 293 CodeHandleList* handlers,
281 Handle<Name> name); 294 Handle<Name> name);
282 295
283 // Finds the Code object stored in the Heap::non_monomorphic_cache(). 296 // Finds the Code object stored in the Heap::non_monomorphic_cache().
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 Handle<JSFunction> constant_function_; 1113 Handle<JSFunction> constant_function_;
1101 bool is_simple_api_call_; 1114 bool is_simple_api_call_;
1102 Handle<FunctionTemplateInfo> expected_receiver_type_; 1115 Handle<FunctionTemplateInfo> expected_receiver_type_;
1103 Handle<CallHandlerInfo> api_call_info_; 1116 Handle<CallHandlerInfo> api_call_info_;
1104 }; 1117 };
1105 1118
1106 1119
1107 } } // namespace v8::internal 1120 } } // namespace v8::internal
1108 1121
1109 #endif // V8_STUB_CACHE_H_ 1122 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698