| OLD | NEW |
| 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 Loading... |
| 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 virtual Handle<Code> generic_stub() const; | 529 return isolate()->builtins()->KeyedLoadIC_Generic(); |
| 530 | 530 } |
| 531 virtual Handle<Code> generic_stub() const { |
| 532 return isolate()->builtins()->KeyedLoadIC_Generic(); |
| 533 } |
| 531 virtual Handle<Code> slow_stub() const { | 534 virtual Handle<Code> slow_stub() const { |
| 532 return isolate()->builtins()->KeyedLoadIC_Slow(); | 535 return isolate()->builtins()->KeyedLoadIC_Slow(); |
| 533 } | 536 } |
| 534 | 537 |
| 535 virtual void UpdateMegamorphicCache(HeapType* type, Name* name, Code* code) {} | 538 virtual void UpdateMegamorphicCache(HeapType* type, Name* name, Code* code) {} |
| 536 | 539 |
| 537 private: | 540 private: |
| 538 // Stub accessors. | 541 // Stub accessors. |
| 539 static Handle<Code> pre_monomorphic_stub(Isolate* isolate) { | 542 static Handle<Code> pre_monomorphic_stub(Isolate* isolate) { |
| 540 return isolate->builtins()->KeyedLoadIC_PreMonomorphic(); | 543 return isolate->builtins()->KeyedLoadIC_PreMonomorphic(); |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); | 1017 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); |
| 1015 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); | 1018 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); |
| 1016 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); | 1019 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); |
| 1017 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); | 1020 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); |
| 1018 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); | 1021 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); |
| 1019 | 1022 |
| 1020 | 1023 |
| 1021 } } // namespace v8::internal | 1024 } } // namespace v8::internal |
| 1022 | 1025 |
| 1023 #endif // V8_IC_H_ | 1026 #endif // V8_IC_H_ |
| OLD | NEW |