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

Side by Side Diff: src/stub-cache.h

Issue 149403003: A64: Synchronize with r19234. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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
« no previous file with comments | « src/spaces.h ('k') | src/stub-cache.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 Handle<Code> CompileLoadInterceptor(Handle<HeapType> type, 560 Handle<Code> CompileLoadInterceptor(Handle<HeapType> type,
561 Handle<JSObject> holder, 561 Handle<JSObject> holder,
562 Handle<Name> name); 562 Handle<Name> name);
563 563
564 Handle<Code> CompileLoadViaGetter(Handle<HeapType> type, 564 Handle<Code> CompileLoadViaGetter(Handle<HeapType> type,
565 Handle<JSObject> holder, 565 Handle<JSObject> holder,
566 Handle<Name> name, 566 Handle<Name> name,
567 Handle<JSFunction> getter); 567 Handle<JSFunction> getter);
568 568
569 static void GenerateLoadViaGetter(MacroAssembler* masm, 569 static void GenerateLoadViaGetter(MacroAssembler* masm,
570 Handle<HeapType> type,
570 Register receiver, 571 Register receiver,
571 Handle<JSFunction> getter); 572 Handle<JSFunction> getter);
572 573
573 Handle<Code> CompileLoadNonexistent(Handle<HeapType> type, 574 Handle<Code> CompileLoadNonexistent(Handle<HeapType> type,
574 Handle<JSObject> last, 575 Handle<JSObject> last,
575 Handle<Name> name); 576 Handle<Name> name);
576 577
577 Handle<Code> CompileLoadGlobal(Handle<HeapType> type, 578 Handle<Code> CompileLoadGlobal(Handle<HeapType> type,
578 Handle<GlobalObject> holder, 579 Handle<GlobalObject> holder,
579 Handle<PropertyCell> cell, 580 Handle<PropertyCell> cell,
(...skipping 24 matching lines...) Expand all
604 Handle<JSObject> last, 605 Handle<JSObject> last,
605 Handle<Name> name); 606 Handle<Name> name);
606 607
607 void GenerateLoadField(Register reg, 608 void GenerateLoadField(Register reg,
608 Handle<JSObject> holder, 609 Handle<JSObject> holder,
609 PropertyIndex field, 610 PropertyIndex field,
610 Representation representation); 611 Representation representation);
611 void GenerateLoadConstant(Handle<Object> value); 612 void GenerateLoadConstant(Handle<Object> value);
612 void GenerateLoadCallback(Register reg, 613 void GenerateLoadCallback(Register reg,
613 Handle<ExecutableAccessorInfo> callback); 614 Handle<ExecutableAccessorInfo> callback);
614 void GenerateLoadCallback(const CallOptimization& call_optimization); 615 void GenerateLoadCallback(const CallOptimization& call_optimization,
616 Handle<Map> receiver_map);
615 void GenerateLoadInterceptor(Register holder_reg, 617 void GenerateLoadInterceptor(Register holder_reg,
616 Handle<Object> object, 618 Handle<Object> object,
617 Handle<JSObject> holder, 619 Handle<JSObject> holder,
618 LookupResult* lookup, 620 LookupResult* lookup,
619 Handle<Name> name); 621 Handle<Name> name);
620 void GenerateLoadPostInterceptor(Register reg, 622 void GenerateLoadPostInterceptor(Register reg,
621 Handle<JSObject> interceptor_holder, 623 Handle<JSObject> interceptor_holder,
622 Handle<Name> name, 624 Handle<Name> name,
623 LookupResult* lookup); 625 LookupResult* lookup);
624 626
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 Handle<JSObject> holder, 706 Handle<JSObject> holder,
705 Handle<Name> name, 707 Handle<Name> name,
706 Handle<ExecutableAccessorInfo> callback); 708 Handle<ExecutableAccessorInfo> callback);
707 709
708 Handle<Code> CompileStoreCallback(Handle<JSObject> object, 710 Handle<Code> CompileStoreCallback(Handle<JSObject> object,
709 Handle<JSObject> holder, 711 Handle<JSObject> holder,
710 Handle<Name> name, 712 Handle<Name> name,
711 const CallOptimization& call_optimization); 713 const CallOptimization& call_optimization);
712 714
713 static void GenerateStoreViaSetter(MacroAssembler* masm, 715 static void GenerateStoreViaSetter(MacroAssembler* masm,
716 Handle<HeapType> type,
714 Handle<JSFunction> setter); 717 Handle<JSFunction> setter);
715 718
716 Handle<Code> CompileStoreViaSetter(Handle<JSObject> object, 719 Handle<Code> CompileStoreViaSetter(Handle<JSObject> object,
717 Handle<JSObject> holder, 720 Handle<JSObject> holder,
718 Handle<Name> name, 721 Handle<Name> name,
719 Handle<JSFunction> setter); 722 Handle<JSFunction> setter);
720 723
721 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object, 724 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object,
722 Handle<Name> name); 725 Handle<Name> name);
723 726
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 823
821 enum HolderLookup { 824 enum HolderLookup {
822 kHolderNotFound, 825 kHolderNotFound,
823 kHolderIsReceiver, 826 kHolderIsReceiver,
824 kHolderFound 827 kHolderFound
825 }; 828 };
826 Handle<JSObject> LookupHolderOfExpectedType( 829 Handle<JSObject> LookupHolderOfExpectedType(
827 Handle<Map> receiver_map, 830 Handle<Map> receiver_map,
828 HolderLookup* holder_lookup) const; 831 HolderLookup* holder_lookup) const;
829 832
830 bool IsCompatibleReceiver(Object* receiver) { 833 // Check if the api holder is between the receiver and the holder.
831 ASSERT(is_simple_api_call()); 834 bool IsCompatibleReceiver(Handle<Object> receiver,
832 if (expected_receiver_type_.is_null()) return true; 835 Handle<JSObject> holder) const;
833 return expected_receiver_type_->IsTemplateFor(receiver);
834 }
835 836
836 private: 837 private:
837 void Initialize(Handle<JSFunction> function); 838 void Initialize(Handle<JSFunction> function);
838 839
839 // Determines whether the given function can be called using the 840 // Determines whether the given function can be called using the
840 // fast api call builtin. 841 // fast api call builtin.
841 void AnalyzePossibleApiFunction(Handle<JSFunction> function); 842 void AnalyzePossibleApiFunction(Handle<JSFunction> function);
842 843
843 Handle<JSFunction> constant_function_; 844 Handle<JSFunction> constant_function_;
844 bool is_simple_api_call_; 845 bool is_simple_api_call_;
845 Handle<FunctionTemplateInfo> expected_receiver_type_; 846 Handle<FunctionTemplateInfo> expected_receiver_type_;
846 Handle<CallHandlerInfo> api_call_info_; 847 Handle<CallHandlerInfo> api_call_info_;
847 }; 848 };
848 849
849 850
850 } } // namespace v8::internal 851 } } // namespace v8::internal
851 852
852 #endif // V8_STUB_CACHE_H_ 853 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/spaces.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698