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

Side by Side Diff: src/ic/ic.h

Issue 1308073010: Reorder KeyedStoreIC MISS code to avoid unnecessary compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code comments. Created 5 years, 3 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
« no previous file with comments | « no previous file | src/ic/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 } 580 }
581 static Handle<Code> pre_monomorphic_stub(Isolate* isolate, 581 static Handle<Code> pre_monomorphic_stub(Isolate* isolate,
582 LanguageMode language_mode) { 582 LanguageMode language_mode) {
583 if (is_strict(language_mode)) { 583 if (is_strict(language_mode)) {
584 return isolate->builtins()->KeyedStoreIC_PreMonomorphic_Strict(); 584 return isolate->builtins()->KeyedStoreIC_PreMonomorphic_Strict();
585 } else { 585 } else {
586 return isolate->builtins()->KeyedStoreIC_PreMonomorphic(); 586 return isolate->builtins()->KeyedStoreIC_PreMonomorphic();
587 } 587 }
588 } 588 }
589 589
590 Handle<Code> StoreElementStub(Handle<JSObject> receiver, 590 Handle<Code> StoreElementStub(Handle<Map> receiver_map,
591 KeyedAccessStoreMode store_mode); 591 KeyedAccessStoreMode store_mode);
592 592
593 private: 593 private:
594 inline void set_target(Code* code); 594 inline void set_target(Code* code);
595 595
596 static void Clear(Isolate* isolate, Address address, Code* target, 596 static void Clear(Isolate* isolate, Address address, Code* target,
597 Address constant_pool); 597 Address constant_pool);
598 598
599 Handle<Map> ComputeTransitionedMap(Handle<Map> map, 599 Handle<Map> ComputeTransitionedMap(Handle<Map> map,
600 KeyedAccessStoreMode store_mode); 600 KeyedAccessStoreMode store_mode);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 675
676 676
677 // Helper for BinaryOpIC and CompareIC. 677 // Helper for BinaryOpIC and CompareIC.
678 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 678 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
679 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 679 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
680 680
681 } 681 }
682 } // namespace v8::internal 682 } // namespace v8::internal
683 683
684 #endif // V8_IC_H_ 684 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « no previous file | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698