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

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

Issue 2595343002: [stubs] Port LoadFieldStub to TF (Closed)
Patch Set: Remerge Created 3 years, 12 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/ic/handler-compiler.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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // lookup result. 305 // lookup result.
306 void UpdateCaches(LookupIterator* lookup); 306 void UpdateCaches(LookupIterator* lookup);
307 307
308 Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) override; 308 Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) override;
309 309
310 Handle<Object> CompileHandler(LookupIterator* lookup, Handle<Object> unused, 310 Handle<Object> CompileHandler(LookupIterator* lookup, Handle<Object> unused,
311 CacheHolderFlag cache_holder) override; 311 CacheHolderFlag cache_holder) override;
312 312
313 private: 313 private:
314 // Creates a data handler that represents a load of a field by given index. 314 // Creates a data handler that represents a load of a field by given index.
315 Handle<Object> SimpleFieldLoad(FieldIndex index); 315 static Handle<Object> SimpleFieldLoad(Isolate* isolate, FieldIndex index);
316 316
317 // Creates a data handler that represents a prototype chain check followed 317 // Creates a data handler that represents a prototype chain check followed
318 // by given Smi-handler that encoded a load from the holder. 318 // by given Smi-handler that encoded a load from the holder.
319 // Can be used only if GetPrototypeCheckCount() returns non negative value. 319 // Can be used only if GetPrototypeCheckCount() returns non negative value.
320 Handle<Object> LoadFromPrototype(Handle<Map> receiver_map, 320 Handle<Object> LoadFromPrototype(Handle<Map> receiver_map,
321 Handle<JSObject> holder, Handle<Name> name, 321 Handle<JSObject> holder, Handle<Name> name,
322 Handle<Object> smi_handler); 322 Handle<Object> smi_handler);
323 323
324 // Creates a data handler that represents a load of a non-existent property. 324 // Creates a data handler that represents a load of a non-existent property.
325 Handle<Object> LoadNonExistent(Handle<Map> receiver_map, Handle<Name> name); 325 Handle<Object> LoadNonExistent(Handle<Map> receiver_map, Handle<Name> name);
326 326
327 friend class IC; 327 friend class IC;
328 friend class NamedLoadHandlerCompiler;
328 }; 329 };
329 330
330 class LoadGlobalIC : public LoadIC { 331 class LoadGlobalIC : public LoadIC {
331 public: 332 public:
332 LoadGlobalIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL) 333 LoadGlobalIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL)
333 : LoadIC(depth, isolate, nexus) {} 334 : LoadIC(depth, isolate, nexus) {}
334 335
335 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Name> name); 336 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Name> name);
336 337
337 static void Clear(Isolate* isolate, Code* host, LoadGlobalICNexus* nexus); 338 static void Clear(Isolate* isolate, Code* host, LoadGlobalICNexus* nexus);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 515
515 // Helper for BinaryOpIC and CompareIC. 516 // Helper for BinaryOpIC and CompareIC.
516 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 517 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
517 void PatchInlinedSmiCode(Isolate* isolate, Address address, 518 void PatchInlinedSmiCode(Isolate* isolate, Address address,
518 InlinedSmiCheck check); 519 InlinedSmiCheck check);
519 520
520 } // namespace internal 521 } // namespace internal
521 } // namespace v8 522 } // namespace v8
522 523
523 #endif // V8_IC_H_ 524 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ic/handler-compiler.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698