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

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: Tweaks 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // Access check is necessary explicitly since generic stub does not perform 519 // Access check is necessary explicitly since generic stub does not perform
520 // map checks. 520 // map checks.
521 static const int kSlowCaseBitFieldMask = 521 static const int kSlowCaseBitFieldMask =
522 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); 522 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor);
523 523
524 protected: 524 protected:
525 virtual Code::Kind kind() const { return Code::KEYED_LOAD_IC; } 525 virtual Code::Kind kind() const { return Code::KEYED_LOAD_IC; }
526 526
527 Handle<Code> LoadElementStub(Handle<JSObject> receiver); 527 Handle<Code> LoadElementStub(Handle<JSObject> receiver);
528 528
529 virtual Handle<Code> megamorphic_stub() { 529 virtual Handle<Code> megamorphic_stub();
530 return isolate()->builtins()->KeyedLoadIC_Generic(); 530 virtual Handle<Code> generic_stub() const;
531 } 531
532 virtual Handle<Code> generic_stub() const {
533 return isolate()->builtins()->KeyedLoadIC_Generic();
534 }
535 virtual Handle<Code> slow_stub() const { 532 virtual Handle<Code> slow_stub() const {
536 return isolate()->builtins()->KeyedLoadIC_Slow(); 533 return isolate()->builtins()->KeyedLoadIC_Slow();
537 } 534 }
538 535
539 virtual void UpdateMegamorphicCache(HeapType* type, Name* name, Code* code) {} 536 virtual void UpdateMegamorphicCache(HeapType* type, Name* name, Code* code) {}
540 537
541 private: 538 private:
542 // Stub accessors. 539 // Stub accessors.
543 static Handle<Code> pre_monomorphic_stub(Isolate* isolate) { 540 static Handle<Code> pre_monomorphic_stub(Isolate* isolate) {
544 return isolate->builtins()->KeyedLoadIC_PreMonomorphic(); 541 return isolate->builtins()->KeyedLoadIC_PreMonomorphic();
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); 1015 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss);
1019 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); 1016 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss);
1020 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); 1017 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite);
1021 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); 1018 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss);
1022 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); 1019 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss);
1023 1020
1024 1021
1025 } } // namespace v8::internal 1022 } } // namespace v8::internal
1026 1023
1027 #endif // V8_IC_H_ 1024 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698