| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 CodeStubInterfaceDescriptor* descriptor, | 185 CodeStubInterfaceDescriptor* descriptor, |
| 186 int constant_stack_parameter_count) { | 186 int constant_stack_parameter_count) { |
| 187 // register state | 187 // register state |
| 188 // r0 -- number of arguments | 188 // r0 -- number of arguments |
| 189 // r1 -- function | 189 // r1 -- function |
| 190 // r2 -- type info cell with elements kind | 190 // r2 -- type info cell with elements kind |
| 191 static Register registers[] = { r1, r2 }; | 191 static Register registers[] = { r1, r2 }; |
| 192 descriptor->register_param_count_ = 2; | 192 descriptor->register_param_count_ = 2; |
| 193 if (constant_stack_parameter_count != 0) { | 193 if (constant_stack_parameter_count != 0) { |
| 194 // stack param count needs (constructor pointer, and single argument) | 194 // stack param count needs (constructor pointer, and single argument) |
| 195 descriptor->stack_parameter_count_ = &r0; | 195 descriptor->stack_parameter_count_ = r0; |
| 196 } | 196 } |
| 197 descriptor->hint_stack_parameter_count_ = constant_stack_parameter_count; | 197 descriptor->hint_stack_parameter_count_ = constant_stack_parameter_count; |
| 198 descriptor->register_params_ = registers; | 198 descriptor->register_params_ = registers; |
| 199 descriptor->function_mode_ = JS_FUNCTION_STUB_MODE; | 199 descriptor->function_mode_ = JS_FUNCTION_STUB_MODE; |
| 200 descriptor->deoptimization_handler_ = | 200 descriptor->deoptimization_handler_ = |
| 201 Runtime::FunctionForId(Runtime::kArrayConstructor)->entry; | 201 Runtime::FunctionForId(Runtime::kArrayConstructor)->entry; |
| 202 } | 202 } |
| 203 | 203 |
| 204 | 204 |
| 205 static void InitializeInternalArrayConstructorDescriptor( | 205 static void InitializeInternalArrayConstructorDescriptor( |
| 206 Isolate* isolate, | 206 Isolate* isolate, |
| 207 CodeStubInterfaceDescriptor* descriptor, | 207 CodeStubInterfaceDescriptor* descriptor, |
| 208 int constant_stack_parameter_count) { | 208 int constant_stack_parameter_count) { |
| 209 // register state | 209 // register state |
| 210 // r0 -- number of arguments | 210 // r0 -- number of arguments |
| 211 // r1 -- constructor function | 211 // r1 -- constructor function |
| 212 static Register registers[] = { r1 }; | 212 static Register registers[] = { r1 }; |
| 213 descriptor->register_param_count_ = 1; | 213 descriptor->register_param_count_ = 1; |
| 214 | 214 |
| 215 if (constant_stack_parameter_count != 0) { | 215 if (constant_stack_parameter_count != 0) { |
| 216 // stack param count needs (constructor pointer, and single argument) | 216 // stack param count needs (constructor pointer, and single argument) |
| 217 descriptor->stack_parameter_count_ = &r0; | 217 descriptor->stack_parameter_count_ = r0; |
| 218 } | 218 } |
| 219 descriptor->hint_stack_parameter_count_ = constant_stack_parameter_count; | 219 descriptor->hint_stack_parameter_count_ = constant_stack_parameter_count; |
| 220 descriptor->register_params_ = registers; | 220 descriptor->register_params_ = registers; |
| 221 descriptor->function_mode_ = JS_FUNCTION_STUB_MODE; | 221 descriptor->function_mode_ = JS_FUNCTION_STUB_MODE; |
| 222 descriptor->deoptimization_handler_ = | 222 descriptor->deoptimization_handler_ = |
| 223 Runtime::FunctionForId(Runtime::kInternalArrayConstructor)->entry; | 223 Runtime::FunctionForId(Runtime::kInternalArrayConstructor)->entry; |
| 224 } | 224 } |
| 225 | 225 |
| 226 | 226 |
| 227 void ArrayNoArgumentConstructorStub::InitializeInterfaceDescriptor( | 227 void ArrayNoArgumentConstructorStub::InitializeInterfaceDescriptor( |
| (...skipping 5861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6089 __ bind(&fast_elements_case); | 6089 __ bind(&fast_elements_case); |
| 6090 GenerateCase(masm, FAST_ELEMENTS); | 6090 GenerateCase(masm, FAST_ELEMENTS); |
| 6091 } | 6091 } |
| 6092 | 6092 |
| 6093 | 6093 |
| 6094 #undef __ | 6094 #undef __ |
| 6095 | 6095 |
| 6096 } } // namespace v8::internal | 6096 } } // namespace v8::internal |
| 6097 | 6097 |
| 6098 #endif // V8_TARGET_ARCH_ARM | 6098 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |