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

Side by Side Diff: src/ic.h

Issue 331633002: Revert "Revert "Reland 21774: Generate KeyedLoadGeneric with Hydrogen"" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
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/macro-assembler.h" 8 #include "src/macro-assembler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // Access check is necessary explicitly since generic stub does not perform 518 // Access check is necessary explicitly since generic stub does not perform
519 // map checks. 519 // map checks.
520 static const int kSlowCaseBitFieldMask = 520 static const int kSlowCaseBitFieldMask =
521 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); 521 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor);
522 522
523 protected: 523 protected:
524 virtual Code::Kind kind() const { return Code::KEYED_LOAD_IC; } 524 virtual Code::Kind kind() const { return Code::KEYED_LOAD_IC; }
525 525
526 Handle<Code> LoadElementStub(Handle<JSObject> receiver); 526 Handle<Code> LoadElementStub(Handle<JSObject> receiver);
527 527
528 virtual Handle<Code> megamorphic_stub() { 528 virtual Handle<Code> megamorphic_stub();
529 return isolate()->builtins()->KeyedLoadIC_Generic(); 529 virtual Handle<Code> generic_stub() const;
530 } 530
531 virtual Handle<Code> generic_stub() const {
532 return isolate()->builtins()->KeyedLoadIC_Generic();
533 }
534 virtual Handle<Code> slow_stub() const { 531 virtual Handle<Code> slow_stub() const {
535 return isolate()->builtins()->KeyedLoadIC_Slow(); 532 return isolate()->builtins()->KeyedLoadIC_Slow();
536 } 533 }
537 534
538 virtual void UpdateMegamorphicCache(HeapType* type, Name* name, Code* code) {} 535 virtual void UpdateMegamorphicCache(HeapType* type, Name* name, Code* code) {}
539 536
540 private: 537 private:
541 // Stub accessors. 538 // Stub accessors.
542 static Handle<Code> pre_monomorphic_stub(Isolate* isolate) { 539 static Handle<Code> pre_monomorphic_stub(Isolate* isolate) {
543 return isolate->builtins()->KeyedLoadIC_PreMonomorphic(); 540 return isolate->builtins()->KeyedLoadIC_PreMonomorphic();
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); 1014 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss);
1018 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); 1015 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss);
1019 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); 1016 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite);
1020 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); 1017 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss);
1021 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); 1018 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss);
1022 1019
1023 1020
1024 } } // namespace v8::internal 1021 } } // namespace v8::internal
1025 1022
1026 #endif // V8_IC_H_ 1023 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698