| 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/ic/ic-state.h" | 8 #include "src/ic/ic-state.h" |
| 9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
| 10 | 10 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 static void GeneratePreMonomorphic(MacroAssembler* masm) { | 389 static void GeneratePreMonomorphic(MacroAssembler* masm) { |
| 390 GenerateMiss(masm); | 390 GenerateMiss(masm); |
| 391 } | 391 } |
| 392 static void GenerateMiss(MacroAssembler* masm); | 392 static void GenerateMiss(MacroAssembler* masm); |
| 393 static void GenerateNormal(MacroAssembler* masm); | 393 static void GenerateNormal(MacroAssembler* masm); |
| 394 static void GenerateRuntimeGetProperty(MacroAssembler* masm); | 394 static void GenerateRuntimeGetProperty(MacroAssembler* masm); |
| 395 | 395 |
| 396 static Handle<Code> initialize_stub(Isolate* isolate, | 396 static Handle<Code> initialize_stub(Isolate* isolate, |
| 397 ExtraICState extra_state); | 397 ExtraICState extra_state); |
| 398 static Handle<Code> initialize_stub_in_optimized_code( | 398 static Handle<Code> initialize_stub_in_optimized_code( |
| 399 Isolate* isolate, ExtraICState extra_state); | 399 Isolate* isolate, ExtraICState extra_state, State initialization_state); |
| 400 | 400 |
| 401 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object, | 401 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object, |
| 402 Handle<Name> name); | 402 Handle<Name> name); |
| 403 | 403 |
| 404 static void Clear(Isolate* isolate, Code* host, LoadICNexus* nexus); | 404 static void Clear(Isolate* isolate, Code* host, LoadICNexus* nexus); |
| 405 | 405 |
| 406 protected: | 406 protected: |
| 407 inline void set_target(Code* code); | 407 inline void set_target(Code* code); |
| 408 | 408 |
| 409 Handle<Code> slow_stub() const { | 409 Handle<Code> slow_stub() const { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 static void GeneratePreMonomorphic(MacroAssembler* masm) { | 532 static void GeneratePreMonomorphic(MacroAssembler* masm) { |
| 533 GenerateMiss(masm); | 533 GenerateMiss(masm); |
| 534 } | 534 } |
| 535 static void GenerateMiss(MacroAssembler* masm); | 535 static void GenerateMiss(MacroAssembler* masm); |
| 536 static void GenerateMegamorphic(MacroAssembler* masm); | 536 static void GenerateMegamorphic(MacroAssembler* masm); |
| 537 static void GenerateNormal(MacroAssembler* masm); | 537 static void GenerateNormal(MacroAssembler* masm); |
| 538 static void GenerateRuntimeSetProperty(MacroAssembler* masm, | 538 static void GenerateRuntimeSetProperty(MacroAssembler* masm, |
| 539 LanguageMode language_mode); | 539 LanguageMode language_mode); |
| 540 | 540 |
| 541 static Handle<Code> initialize_stub(Isolate* isolate, | 541 static Handle<Code> initialize_stub(Isolate* isolate, |
| 542 LanguageMode language_mode); | 542 LanguageMode language_mode, |
| 543 State initialization_state); |
| 543 | 544 |
| 544 MUST_USE_RESULT MaybeHandle<Object> Store( | 545 MUST_USE_RESULT MaybeHandle<Object> Store( |
| 545 Handle<Object> object, Handle<Name> name, Handle<Object> value, | 546 Handle<Object> object, Handle<Name> name, Handle<Object> value, |
| 546 JSReceiver::StoreFromKeyed store_mode = | 547 JSReceiver::StoreFromKeyed store_mode = |
| 547 JSReceiver::CERTAINLY_NOT_STORE_FROM_KEYED); | 548 JSReceiver::CERTAINLY_NOT_STORE_FROM_KEYED); |
| 548 | 549 |
| 549 bool LookupForWrite(LookupIterator* it, Handle<Object> value, | 550 bool LookupForWrite(LookupIterator* it, Handle<Object> value, |
| 550 JSReceiver::StoreFromKeyed store_mode); | 551 JSReceiver::StoreFromKeyed store_mode); |
| 551 | 552 |
| 552 protected: | 553 protected: |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 | 757 |
| 757 // Support functions for interceptor handlers. | 758 // Support functions for interceptor handlers. |
| 758 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 759 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
| 759 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 760 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
| 760 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 761 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
| 761 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 762 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
| 762 } | 763 } |
| 763 } // namespace v8::internal | 764 } // namespace v8::internal |
| 764 | 765 |
| 765 #endif // V8_IC_H_ | 766 #endif // V8_IC_H_ |
| OLD | NEW |