| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/crankshaft/hydrogen.h" | 10 #include "src/crankshaft/hydrogen.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 bool runtime_stack_params = descriptor_.stack_parameter_count().is_valid(); | 119 bool runtime_stack_params = descriptor_.stack_parameter_count().is_valid(); |
| 120 HInstruction* stack_parameter_count = NULL; | 120 HInstruction* stack_parameter_count = NULL; |
| 121 for (int i = 0; i < param_count; ++i) { | 121 for (int i = 0; i < param_count; ++i) { |
| 122 Representation r = GetParameterRepresentation(i); | 122 Representation r = GetParameterRepresentation(i); |
| 123 HParameter* param; | 123 HParameter* param; |
| 124 if (i >= register_param_count) { | 124 if (i >= register_param_count) { |
| 125 param = Add<HParameter>(i - register_param_count, | 125 param = Add<HParameter>(i - register_param_count, |
| 126 HParameter::STACK_PARAMETER, r); | 126 HParameter::STACK_PARAMETER, r); |
| 127 } else { | 127 } else { |
| 128 param = Add<HParameter>(i, HParameter::REGISTER_PARAMETER, r); | 128 param = Add<HParameter>(i, HParameter::REGISTER_PARAMETER, r); |
| 129 start_environment->Bind(i, param); | |
| 130 } | 129 } |
| 130 start_environment->Bind(i, param); |
| 131 parameters_[i] = param; | 131 parameters_[i] = param; |
| 132 if (i < register_param_count && IsParameterCountRegister(i)) { | 132 if (i < register_param_count && IsParameterCountRegister(i)) { |
| 133 param->set_type(HType::Smi()); | 133 param->set_type(HType::Smi()); |
| 134 stack_parameter_count = param; | 134 stack_parameter_count = param; |
| 135 arguments_length_ = stack_parameter_count; | 135 arguments_length_ = stack_parameter_count; |
| 136 } | 136 } |
| 137 } | 137 } |
| 138 | 138 |
| 139 DCHECK(!runtime_stack_params || arguments_length_ != NULL); | 139 DCHECK(!runtime_stack_params || arguments_length_ != NULL); |
| 140 if (!runtime_stack_params) { | 140 if (!runtime_stack_params) { |
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 return Pop(); | 1458 return Pop(); |
| 1459 } | 1459 } |
| 1460 | 1460 |
| 1461 | 1461 |
| 1462 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 1462 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
| 1463 return DoGenerateCode(this); | 1463 return DoGenerateCode(this); |
| 1464 } | 1464 } |
| 1465 | 1465 |
| 1466 } // namespace internal | 1466 } // namespace internal |
| 1467 } // namespace v8 | 1467 } // namespace v8 |
| OLD | NEW |