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

Side by Side Diff: src/ic/ic.h

Issue 2419513002: [ic] Support data handlers that represent loads from prototypes. (Closed)
Patch Set: Rebasing Created 4 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
« no previous file with comments | « src/factory.cc ('k') | src/ic/ic.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_IC_H_ 5 #ifndef V8_IC_H_
6 #define V8_IC_H_ 6 #define V8_IC_H_
7 7
8 #include "src/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // lookup result. 303 // lookup result.
304 void UpdateCaches(LookupIterator* lookup); 304 void UpdateCaches(LookupIterator* lookup);
305 305
306 Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) override; 306 Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) override;
307 307
308 Handle<Code> CompileHandler(LookupIterator* lookup, Handle<Object> unused, 308 Handle<Code> CompileHandler(LookupIterator* lookup, Handle<Object> unused,
309 CacheHolderFlag cache_holder) override; 309 CacheHolderFlag cache_holder) override;
310 310
311 private: 311 private:
312 Handle<Object> SimpleFieldLoad(FieldIndex index); 312 Handle<Object> SimpleFieldLoad(FieldIndex index);
313 Handle<Object> SimpleFieldLoadFromPrototype(FieldIndex index,
314 Handle<Map> receiver_map,
315 Handle<JSObject> holder);
313 316
314 friend class IC; 317 friend class IC;
315 }; 318 };
316 319
317 class LoadGlobalIC : public LoadIC { 320 class LoadGlobalIC : public LoadIC {
318 public: 321 public:
319 LoadGlobalIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL) 322 LoadGlobalIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL)
320 : LoadIC(depth, isolate, nexus) {} 323 : LoadIC(depth, isolate, nexus) {}
321 324
322 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Name> name); 325 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Name> name);
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 507
505 // Helper for BinaryOpIC and CompareIC. 508 // Helper for BinaryOpIC and CompareIC.
506 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 509 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
507 void PatchInlinedSmiCode(Isolate* isolate, Address address, 510 void PatchInlinedSmiCode(Isolate* isolate, Address address,
508 InlinedSmiCheck check); 511 InlinedSmiCheck check);
509 512
510 } // namespace internal 513 } // namespace internal
511 } // namespace v8 514 } // namespace v8
512 515
513 #endif // V8_IC_H_ 516 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698