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

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

Issue 68523009: Also support smi in load-ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 1 month 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 Code::ExtraICState extra_state = Code::kNoExtraICState, 86 Code::ExtraICState extra_state = Code::kNoExtraICState,
87 InlineCacheHolderFlag cache_holder = OWN_MAP); 87 InlineCacheHolderFlag cache_holder = OWN_MAP);
88 88
89 Handle<Code> FindHandler(Handle<Name> name, 89 Handle<Code> FindHandler(Handle<Name> name,
90 Handle<HeapObject> stub_holder, 90 Handle<HeapObject> stub_holder,
91 Code::Kind kind, 91 Code::Kind kind,
92 InlineCacheHolderFlag cache_holder = OWN_MAP, 92 InlineCacheHolderFlag cache_holder = OWN_MAP,
93 StrictModeFlag strict_mode = kNonStrictMode); 93 StrictModeFlag strict_mode = kNonStrictMode);
94 94
95 Handle<Code> ComputeMonomorphicIC(Handle<Name> name, 95 Handle<Code> ComputeMonomorphicIC(Handle<Name> name,
96 Handle<HeapObject> receiver, 96 Handle<Object> receiver,
97 Handle<Code> handler, 97 Handle<Code> handler,
98 StrictModeFlag strict_mode); 98 StrictModeFlag strict_mode);
99 99
100 Handle<Code> ComputeLoadNonexistent(Handle<Name> name, Handle<Object> object); 100 Handle<Code> ComputeLoadNonexistent(Handle<Name> name, Handle<Object> object);
101 101
102 Handle<Code> ComputeKeyedLoadElement(Handle<Map> receiver_map); 102 Handle<Code> ComputeKeyedLoadElement(Handle<Map> receiver_map);
103 103
104 Handle<Code> ComputeKeyedStoreElement(Handle<Map> receiver_map, 104 Handle<Code> ComputeKeyedStoreElement(Handle<Map> receiver_map,
105 StrictModeFlag strict_mode, 105 StrictModeFlag strict_mode,
106 KeyedAccessStoreMode store_mode); 106 KeyedAccessStoreMode store_mode);
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 601
602 virtual Code::ExtraICState extra_state() { return Code::kNoExtraICState; } 602 virtual Code::ExtraICState extra_state() { return Code::kNoExtraICState; }
603 virtual Register receiver() = 0; 603 virtual Register receiver() = 0;
604 virtual Register name() = 0; 604 virtual Register name() = 0;
605 virtual Register scratch1() = 0; 605 virtual Register scratch1() = 0;
606 virtual Register scratch2() = 0; 606 virtual Register scratch2() = 0;
607 virtual Register scratch3() = 0; 607 virtual Register scratch3() = 0;
608 608
609 void InitializeRegisters(); 609 void InitializeRegisters();
610 610
611 bool HasHeapNumberMap(MapHandleList* receiver_maps);
612
611 Code::Kind kind_; 613 Code::Kind kind_;
612 InlineCacheHolderFlag cache_holder_; 614 InlineCacheHolderFlag cache_holder_;
613 Register* registers_; 615 Register* registers_;
614 }; 616 };
615 617
616 618
617 class LoadStubCompiler: public BaseLoadStoreStubCompiler { 619 class LoadStubCompiler: public BaseLoadStoreStubCompiler {
618 public: 620 public:
619 LoadStubCompiler(Isolate* isolate, 621 LoadStubCompiler(Isolate* isolate,
620 InlineCacheHolderFlag cache_holder = OWN_MAP, 622 InlineCacheHolderFlag cache_holder = OWN_MAP,
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 Handle<JSFunction> constant_function_; 1050 Handle<JSFunction> constant_function_;
1049 bool is_simple_api_call_; 1051 bool is_simple_api_call_;
1050 Handle<FunctionTemplateInfo> expected_receiver_type_; 1052 Handle<FunctionTemplateInfo> expected_receiver_type_;
1051 Handle<CallHandlerInfo> api_call_info_; 1053 Handle<CallHandlerInfo> api_call_info_;
1052 }; 1054 };
1053 1055
1054 1056
1055 } } // namespace v8::internal 1057 } } // namespace v8::internal
1056 1058
1057 #endif // V8_STUB_CACHE_H_ 1059 #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