OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
8 | 8 |
9 #include "src/api-arguments.h" | 9 #include "src/api-arguments.h" |
10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 Immediate(masm->isolate()->factory()->hash_table_map())); | 115 Immediate(masm->isolate()->factory()->hash_table_map())); |
116 __ j(not_equal, miss_label); | 116 __ j(not_equal, miss_label); |
117 | 117 |
118 Label done; | 118 Label done; |
119 NameDictionaryLookupStub::GenerateNegativeLookup(masm, miss_label, &done, | 119 NameDictionaryLookupStub::GenerateNegativeLookup(masm, miss_label, &done, |
120 properties, name, scratch1); | 120 properties, name, scratch1); |
121 __ bind(&done); | 121 __ bind(&done); |
122 __ DecrementCounter(counters->negative_lookups_miss(), 1); | 122 __ DecrementCounter(counters->negative_lookups_miss(), 1); |
123 } | 123 } |
124 | 124 |
125 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( | |
126 MacroAssembler* masm, Register receiver, Register scratch1, | |
127 Register scratch2, Label* miss_label) { | |
128 // TODO(mvstanton): This isn't used on ia32. Move all the other | |
129 // platform implementations into a code stub so this method can be removed. | |
130 UNREACHABLE(); | |
131 } | |
132 | |
133 | |
134 // Generate call to api function. | 125 // Generate call to api function. |
135 // This function uses push() to generate smaller, faster code than | 126 // This function uses push() to generate smaller, faster code than |
136 // the version above. It is an optimization that should will be removed | 127 // the version above. It is an optimization that should will be removed |
137 // when api call ICs are generated in hydrogen. | 128 // when api call ICs are generated in hydrogen. |
138 void PropertyHandlerCompiler::GenerateApiAccessorCall( | 129 void PropertyHandlerCompiler::GenerateApiAccessorCall( |
139 MacroAssembler* masm, const CallOptimization& optimization, | 130 MacroAssembler* masm, const CallOptimization& optimization, |
140 Handle<Map> receiver_map, Register receiver, Register scratch, | 131 Handle<Map> receiver_map, Register receiver, Register scratch, |
141 bool is_store, Register store_parameter, Register accessor_holder, | 132 bool is_store, Register store_parameter, Register accessor_holder, |
142 int accessor_index) { | 133 int accessor_index) { |
143 DCHECK(!accessor_holder.is(scratch)); | 134 DCHECK(!accessor_holder.is(scratch)); |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 // Return the generated code. | 630 // Return the generated code. |
640 return GetCode(kind(), name); | 631 return GetCode(kind(), name); |
641 } | 632 } |
642 | 633 |
643 | 634 |
644 #undef __ | 635 #undef __ |
645 } // namespace internal | 636 } // namespace internal |
646 } // namespace v8 | 637 } // namespace v8 |
647 | 638 |
648 #endif // V8_TARGET_ARCH_IA32 | 639 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |