| 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 }; | 499 }; |
| 500 | 500 |
| 501 | 501 |
| 502 class KeyedLoadIC: public LoadIC { | 502 class KeyedLoadIC: public LoadIC { |
| 503 public: | 503 public: |
| 504 explicit KeyedLoadIC(FrameDepth depth, Isolate* isolate) | 504 explicit KeyedLoadIC(FrameDepth depth, Isolate* isolate) |
| 505 : LoadIC(depth, isolate) { | 505 : LoadIC(depth, isolate) { |
| 506 ASSERT(target()->is_keyed_load_stub()); | 506 ASSERT(target()->is_keyed_load_stub()); |
| 507 } | 507 } |
| 508 | 508 |
| 509 static const Register ReceiverRegister(); | |
| 510 static const Register NameRegister(); | |
| 511 | |
| 512 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object, | 509 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object, |
| 513 Handle<Object> key); | 510 Handle<Object> key); |
| 514 | 511 |
| 515 // Code generator routines. | 512 // Code generator routines. |
| 516 static void GenerateMiss(MacroAssembler* masm); | 513 static void GenerateMiss(MacroAssembler* masm); |
| 517 static void GenerateRuntimeGetProperty(MacroAssembler* masm); | 514 static void GenerateRuntimeGetProperty(MacroAssembler* masm); |
| 518 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } | 515 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } |
| 519 static void GeneratePreMonomorphic(MacroAssembler* masm) { | 516 static void GeneratePreMonomorphic(MacroAssembler* masm) { |
| 520 GenerateMiss(masm); | 517 GenerateMiss(masm); |
| 521 } | 518 } |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); | 1022 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); |
| 1026 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); | 1023 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); |
| 1027 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); | 1024 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); |
| 1028 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); | 1025 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); |
| 1029 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); | 1026 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); |
| 1030 | 1027 |
| 1031 | 1028 |
| 1032 } } // namespace v8::internal | 1029 } } // namespace v8::internal |
| 1033 | 1030 |
| 1034 #endif // V8_IC_H_ | 1031 #endif // V8_IC_H_ |
| OLD | NEW |