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

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

Issue 12213012: Split AccessorInfo into DeclaredAccessorInfo and ExecutableAccessorInfo (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed most feedback Created 7 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/objects-printer.cc ('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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Handle<JSObject> object); 81 Handle<JSObject> object);
82 82
83 Handle<Code> ComputeLoadField(Handle<String> name, 83 Handle<Code> ComputeLoadField(Handle<String> name,
84 Handle<JSObject> object, 84 Handle<JSObject> object,
85 Handle<JSObject> holder, 85 Handle<JSObject> holder,
86 PropertyIndex field_index); 86 PropertyIndex field_index);
87 87
88 Handle<Code> ComputeLoadCallback(Handle<String> name, 88 Handle<Code> ComputeLoadCallback(Handle<String> name,
89 Handle<JSObject> object, 89 Handle<JSObject> object,
90 Handle<JSObject> holder, 90 Handle<JSObject> holder,
91 Handle<AccessorInfo> callback); 91 Handle<ExecutableAccessorInfo> callback);
92 92
93 Handle<Code> ComputeLoadViaGetter(Handle<String> name, 93 Handle<Code> ComputeLoadViaGetter(Handle<String> name,
94 Handle<JSObject> object, 94 Handle<JSObject> object,
95 Handle<JSObject> holder, 95 Handle<JSObject> holder,
96 Handle<JSFunction> getter); 96 Handle<JSFunction> getter);
97 97
98 Handle<Code> ComputeLoadConstant(Handle<String> name, 98 Handle<Code> ComputeLoadConstant(Handle<String> name,
99 Handle<JSObject> object, 99 Handle<JSObject> object,
100 Handle<JSObject> holder, 100 Handle<JSObject> holder,
101 Handle<JSFunction> value); 101 Handle<JSFunction> value);
(...skipping 10 matching lines...) Expand all
112 Handle<JSGlobalPropertyCell> cell, 112 Handle<JSGlobalPropertyCell> cell,
113 bool is_dont_delete); 113 bool is_dont_delete);
114 114
115 // --- 115 // ---
116 116
117 Handle<Code> ComputeKeyedLoadField(Handle<String> name, 117 Handle<Code> ComputeKeyedLoadField(Handle<String> name,
118 Handle<JSObject> object, 118 Handle<JSObject> object,
119 Handle<JSObject> holder, 119 Handle<JSObject> holder,
120 PropertyIndex field_index); 120 PropertyIndex field_index);
121 121
122 Handle<Code> ComputeKeyedLoadCallback(Handle<String> name, 122 Handle<Code> ComputeKeyedLoadCallback(
123 Handle<JSObject> object, 123 Handle<String> name,
124 Handle<JSObject> holder, 124 Handle<JSObject> object,
125 Handle<AccessorInfo> callback); 125 Handle<JSObject> holder,
126 Handle<ExecutableAccessorInfo> callback);
126 127
127 Handle<Code> ComputeKeyedLoadConstant(Handle<String> name, 128 Handle<Code> ComputeKeyedLoadConstant(Handle<String> name,
128 Handle<JSObject> object, 129 Handle<JSObject> object,
129 Handle<JSObject> holder, 130 Handle<JSObject> holder,
130 Handle<JSFunction> value); 131 Handle<JSFunction> value);
131 132
132 Handle<Code> ComputeKeyedLoadInterceptor(Handle<String> name, 133 Handle<Code> ComputeKeyedLoadInterceptor(Handle<String> name,
133 Handle<JSObject> object, 134 Handle<JSObject> object,
134 Handle<JSObject> holder); 135 Handle<JSObject> holder);
135 136
136 // --- 137 // ---
137 138
138 Handle<Code> ComputeStoreField(Handle<String> name, 139 Handle<Code> ComputeStoreField(Handle<String> name,
139 Handle<JSObject> object, 140 Handle<JSObject> object,
140 int field_index, 141 int field_index,
141 Handle<Map> transition, 142 Handle<Map> transition,
142 StrictModeFlag strict_mode); 143 StrictModeFlag strict_mode);
143 144
144 Handle<Code> ComputeStoreNormal(StrictModeFlag strict_mode); 145 Handle<Code> ComputeStoreNormal(StrictModeFlag strict_mode);
145 146
146 Handle<Code> ComputeStoreGlobal(Handle<String> name, 147 Handle<Code> ComputeStoreGlobal(Handle<String> name,
147 Handle<GlobalObject> object, 148 Handle<GlobalObject> object,
148 Handle<JSGlobalPropertyCell> cell, 149 Handle<JSGlobalPropertyCell> cell,
149 StrictModeFlag strict_mode); 150 StrictModeFlag strict_mode);
150 151
151 Handle<Code> ComputeStoreCallback(Handle<String> name, 152 Handle<Code> ComputeStoreCallback(Handle<String> name,
152 Handle<JSObject> object, 153 Handle<JSObject> object,
153 Handle<JSObject> holder, 154 Handle<JSObject> holder,
154 Handle<AccessorInfo> callback, 155 Handle<ExecutableAccessorInfo> callback,
155 StrictModeFlag strict_mode); 156 StrictModeFlag strict_mode);
156 157
157 Handle<Code> ComputeStoreViaSetter(Handle<String> name, 158 Handle<Code> ComputeStoreViaSetter(Handle<String> name,
158 Handle<JSObject> object, 159 Handle<JSObject> object,
159 Handle<JSObject> holder, 160 Handle<JSObject> holder,
160 Handle<JSFunction> setter, 161 Handle<JSFunction> setter,
161 StrictModeFlag strict_mode); 162 StrictModeFlag strict_mode);
162 163
163 Handle<Code> ComputeStoreInterceptor(Handle<String> name, 164 Handle<Code> ComputeStoreInterceptor(Handle<String> name,
164 Handle<JSObject> object, 165 Handle<JSObject> object,
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 Label* miss); 547 Label* miss);
547 548
548 void GenerateLoadCallback(Handle<JSObject> object, 549 void GenerateLoadCallback(Handle<JSObject> object,
549 Handle<JSObject> holder, 550 Handle<JSObject> holder,
550 Register receiver, 551 Register receiver,
551 Register name_reg, 552 Register name_reg,
552 Register scratch1, 553 Register scratch1,
553 Register scratch2, 554 Register scratch2,
554 Register scratch3, 555 Register scratch3,
555 Register scratch4, 556 Register scratch4,
556 Handle<AccessorInfo> callback, 557 Handle<ExecutableAccessorInfo> callback,
557 Handle<String> name, 558 Handle<String> name,
558 Label* miss); 559 Label* miss);
559 560
560 void GenerateDictionaryLoadCallback(Register receiver, 561 void GenerateDictionaryLoadCallback(Register receiver,
561 Register name_reg, 562 Register name_reg,
562 Register scratch1, 563 Register scratch1,
563 Register scratch2, 564 Register scratch2,
564 Register scratch3, 565 Register scratch3,
565 Handle<AccessorInfo> callback, 566 Handle<ExecutableAccessorInfo> callback,
566 Handle<String> name, 567 Handle<String> name,
567 Label* miss); 568 Label* miss);
568 569
569 void GenerateLoadConstant(Handle<JSObject> object, 570 void GenerateLoadConstant(Handle<JSObject> object,
570 Handle<JSObject> holder, 571 Handle<JSObject> holder,
571 Register receiver, 572 Register receiver,
572 Register scratch1, 573 Register scratch1,
573 Register scratch2, 574 Register scratch2,
574 Register scratch3, 575 Register scratch3,
575 Handle<JSFunction> value, 576 Handle<JSFunction> value,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 virtual ~BaseLoadStubCompiler() { } 610 virtual ~BaseLoadStubCompiler() { }
610 611
611 Handle<Code> CompileLoadField(Handle<JSObject> object, 612 Handle<Code> CompileLoadField(Handle<JSObject> object,
612 Handle<JSObject> holder, 613 Handle<JSObject> holder,
613 Handle<String> name, 614 Handle<String> name,
614 PropertyIndex index); 615 PropertyIndex index);
615 616
616 Handle<Code> CompileLoadCallback(Handle<JSObject> object, 617 Handle<Code> CompileLoadCallback(Handle<JSObject> object,
617 Handle<JSObject> holder, 618 Handle<JSObject> holder,
618 Handle<String> name, 619 Handle<String> name,
619 Handle<AccessorInfo> callback); 620 Handle<ExecutableAccessorInfo> callback);
620 621
621 Handle<Code> CompileLoadConstant(Handle<JSObject> object, 622 Handle<Code> CompileLoadConstant(Handle<JSObject> object,
622 Handle<JSObject> holder, 623 Handle<JSObject> holder,
623 Handle<String> name, 624 Handle<String> name,
624 Handle<JSFunction> value); 625 Handle<JSFunction> value);
625 626
626 Handle<Code> CompileLoadInterceptor(Handle<JSObject> object, 627 Handle<Code> CompileLoadInterceptor(Handle<JSObject> object,
627 Handle<JSObject> holder, 628 Handle<JSObject> holder,
628 Handle<String> name); 629 Handle<String> name);
629 630
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 714
714 715
715 Handle<Code> CompileStoreField(Handle<JSObject> object, 716 Handle<Code> CompileStoreField(Handle<JSObject> object,
716 int index, 717 int index,
717 Handle<Map> transition, 718 Handle<Map> transition,
718 Handle<String> name); 719 Handle<String> name);
719 720
720 Handle<Code> CompileStoreCallback(Handle<String> name, 721 Handle<Code> CompileStoreCallback(Handle<String> name,
721 Handle<JSObject> object, 722 Handle<JSObject> object,
722 Handle<JSObject> holder, 723 Handle<JSObject> holder,
723 Handle<AccessorInfo> callback); 724 Handle<ExecutableAccessorInfo> callback);
724 725
725 static void GenerateStoreViaSetter(MacroAssembler* masm, 726 static void GenerateStoreViaSetter(MacroAssembler* masm,
726 Handle<JSFunction> setter); 727 Handle<JSFunction> setter);
727 728
728 Handle<Code> CompileStoreViaSetter(Handle<String> name, 729 Handle<Code> CompileStoreViaSetter(Handle<String> name,
729 Handle<JSObject> object, 730 Handle<JSObject> object,
730 Handle<JSObject> holder, 731 Handle<JSObject> holder,
731 Handle<JSFunction> setter); 732 Handle<JSFunction> setter);
732 733
733 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object, 734 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 Handle<JSFunction> constant_function_; 946 Handle<JSFunction> constant_function_;
946 bool is_simple_api_call_; 947 bool is_simple_api_call_;
947 Handle<FunctionTemplateInfo> expected_receiver_type_; 948 Handle<FunctionTemplateInfo> expected_receiver_type_;
948 Handle<CallHandlerInfo> api_call_info_; 949 Handle<CallHandlerInfo> api_call_info_;
949 }; 950 };
950 951
951 952
952 } } // namespace v8::internal 953 } } // namespace v8::internal
953 954
954 #endif // V8_STUB_CACHE_H_ 955 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698