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

Side by Side Diff: src/ic.h

Issue 57123002: Reland 21774: Generate KeyedLoadGeneric with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Turn off by default Created 7 years 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
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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 // Access check is necessary explicitly since generic stub does not perform 516 // Access check is necessary explicitly since generic stub does not perform
517 // map checks. 517 // map checks.
518 static const int kSlowCaseBitFieldMask = 518 static const int kSlowCaseBitFieldMask =
519 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); 519 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor);
520 520
521 protected: 521 protected:
522 virtual Code::Kind kind() const { return Code::KEYED_LOAD_IC; } 522 virtual Code::Kind kind() const { return Code::KEYED_LOAD_IC; }
523 523
524 Handle<Code> LoadElementStub(Handle<JSObject> receiver); 524 Handle<Code> LoadElementStub(Handle<JSObject> receiver);
525 525
526 virtual Handle<Code> megamorphic_stub() { 526 virtual Handle<Code> megamorphic_stub();
527 return isolate()->builtins()->KeyedLoadIC_Generic(); 527 virtual Handle<Code> generic_stub() const;
528 } 528
529 virtual Handle<Code> generic_stub() const {
530 return isolate()->builtins()->KeyedLoadIC_Generic();
531 }
532 virtual Handle<Code> slow_stub() const { 529 virtual Handle<Code> slow_stub() const {
533 return isolate()->builtins()->KeyedLoadIC_Slow(); 530 return isolate()->builtins()->KeyedLoadIC_Slow();
534 } 531 }
535 532
536 virtual void UpdateMegamorphicCache(Type* type, Name* name, Code* code) { } 533 virtual void UpdateMegamorphicCache(Type* type, Name* name, Code* code) { }
537 534
538 private: 535 private:
539 // Stub accessors. 536 // Stub accessors.
540 static Handle<Code> initialize_stub(Isolate* isolate) { 537 static Handle<Code> initialize_stub(Isolate* isolate) {
541 return isolate->builtins()->KeyedLoadIC_Initialize(); 538 return isolate->builtins()->KeyedLoadIC_Initialize();
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedCallIC_MissFromStubFailure); 944 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedCallIC_MissFromStubFailure);
948 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); 945 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss);
949 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); 946 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss);
950 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); 947 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss);
951 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); 948 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss);
952 949
953 950
954 } } // namespace v8::internal 951 } } // namespace v8::internal
955 952
956 #endif // V8_IC_H_ 953 #endif // V8_IC_H_
OLDNEW
« src/hydrogen-instructions.cc ('K') | « src/ia32/lithium-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698