OLD | NEW |
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 | 121 |
122 void CompareNilICStub::InitializeInterfaceDescriptor( | 122 void CompareNilICStub::InitializeInterfaceDescriptor( |
123 Isolate* isolate, | 123 Isolate* isolate, |
124 CodeStubInterfaceDescriptor* descriptor) { | 124 CodeStubInterfaceDescriptor* descriptor) { |
125 static Register registers[] = { r0 }; | 125 static Register registers[] = { r0 }; |
126 descriptor->register_param_count_ = 1; | 126 descriptor->register_param_count_ = 1; |
127 descriptor->register_params_ = registers; | 127 descriptor->register_params_ = registers; |
128 descriptor->deoptimization_handler_ = | 128 descriptor->deoptimization_handler_ = |
129 FUNCTION_ADDR(CompareNilIC_Miss); | 129 FUNCTION_ADDR(CompareNilIC_Miss); |
130 descriptor->miss_handler_ = | 130 descriptor->SetMissHandler( |
131 ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate); | 131 ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate)); |
132 } | 132 } |
133 | 133 |
134 | 134 |
135 static void InitializeArrayConstructorDescriptor( | 135 static void InitializeArrayConstructorDescriptor( |
136 Isolate* isolate, | 136 Isolate* isolate, |
137 CodeStubInterfaceDescriptor* descriptor, | 137 CodeStubInterfaceDescriptor* descriptor, |
138 int constant_stack_parameter_count) { | 138 int constant_stack_parameter_count) { |
139 // register state | 139 // register state |
140 // r0 -- number of arguments | 140 // r0 -- number of arguments |
141 // r1 -- function | 141 // r1 -- function |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 int param_count = descriptor->register_param_count_; | 211 int param_count = descriptor->register_param_count_; |
212 { | 212 { |
213 // Call the runtime system in a fresh internal frame. | 213 // Call the runtime system in a fresh internal frame. |
214 FrameScope scope(masm, StackFrame::INTERNAL); | 214 FrameScope scope(masm, StackFrame::INTERNAL); |
215 ASSERT(descriptor->register_param_count_ == 0 || | 215 ASSERT(descriptor->register_param_count_ == 0 || |
216 r0.is(descriptor->register_params_[param_count - 1])); | 216 r0.is(descriptor->register_params_[param_count - 1])); |
217 // Push arguments | 217 // Push arguments |
218 for (int i = 0; i < param_count; ++i) { | 218 for (int i = 0; i < param_count; ++i) { |
219 __ push(descriptor->register_params_[i]); | 219 __ push(descriptor->register_params_[i]); |
220 } | 220 } |
221 ExternalReference miss = descriptor->miss_handler_; | 221 ExternalReference miss = descriptor->miss_handler(); |
222 __ CallExternalReference(miss, descriptor->register_param_count_); | 222 __ CallExternalReference(miss, descriptor->register_param_count_); |
223 } | 223 } |
224 | 224 |
225 __ Ret(); | 225 __ Ret(); |
226 } | 226 } |
227 | 227 |
228 | 228 |
229 void ToNumberStub::Generate(MacroAssembler* masm) { | 229 void ToNumberStub::Generate(MacroAssembler* masm) { |
230 // The ToNumber stub takes one argument in eax. | 230 // The ToNumber stub takes one argument in eax. |
231 Label check_heap_number, call_builtin; | 231 Label check_heap_number, call_builtin; |
(...skipping 7202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7434 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 7434 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
7435 } | 7435 } |
7436 } | 7436 } |
7437 | 7437 |
7438 | 7438 |
7439 #undef __ | 7439 #undef __ |
7440 | 7440 |
7441 } } // namespace v8::internal | 7441 } } // namespace v8::internal |
7442 | 7442 |
7443 #endif // V8_TARGET_ARCH_ARM | 7443 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |