OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/bigint_operations.h" | 9 #include "vm/bigint_operations.h" |
10 #include "vm/bootstrap.h" | 10 #include "vm/bootstrap.h" |
(...skipping 3348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3359 result.set_parameter_types(Array::Handle(Array::Empty())); | 3359 result.set_parameter_types(Array::Handle(Array::Empty())); |
3360 result.set_parameter_names(Array::Handle(Array::Empty())); | 3360 result.set_parameter_names(Array::Handle(Array::Empty())); |
3361 result.set_name(name); | 3361 result.set_name(name); |
3362 result.set_kind(kind); | 3362 result.set_kind(kind); |
3363 result.set_is_static(is_static); | 3363 result.set_is_static(is_static); |
3364 result.set_is_const(is_const); | 3364 result.set_is_const(is_const); |
3365 result.set_token_index(token_index); | 3365 result.set_token_index(token_index); |
3366 result.set_end_token_index(token_index); | 3366 result.set_end_token_index(token_index); |
3367 result.set_num_fixed_parameters(0); | 3367 result.set_num_fixed_parameters(0); |
3368 result.set_num_optional_parameters(0); | 3368 result.set_num_optional_parameters(0); |
3369 result.set_invocation_counter(0); | 3369 result.set_usage_counter(0); |
3370 result.set_deoptimization_counter(0); | 3370 result.set_deoptimization_counter(0); |
3371 result.set_is_optimizable(true); | 3371 result.set_is_optimizable(true); |
3372 return result.raw(); | 3372 return result.raw(); |
3373 } | 3373 } |
3374 | 3374 |
3375 | 3375 |
3376 RawFunction* Function::NewClosureFunction(const String& name, | 3376 RawFunction* Function::NewClosureFunction(const String& name, |
3377 const Function& parent, | 3377 const Function& parent, |
3378 intptr_t token_index) { | 3378 intptr_t token_index) { |
3379 ASSERT(!parent.IsNull()); | 3379 ASSERT(!parent.IsNull()); |
(...skipping 4922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8302 result.set_num_args_tested(num_args_tested); | 8302 result.set_num_args_tested(num_args_tested); |
8303 // Number of array elements in one test entry (num_args_tested + 1) | 8303 // Number of array elements in one test entry (num_args_tested + 1) |
8304 intptr_t len = num_args_tested + 1; | 8304 intptr_t len = num_args_tested + 1; |
8305 // IC data array must be null terminated (sentinel entry). | 8305 // IC data array must be null terminated (sentinel entry). |
8306 Array& ic_data = Array::Handle(Array::New(len, Heap::kOld)); | 8306 Array& ic_data = Array::Handle(Array::New(len, Heap::kOld)); |
8307 result.set_ic_data(ic_data); | 8307 result.set_ic_data(ic_data); |
8308 return result.raw(); | 8308 return result.raw(); |
8309 } | 8309 } |
8310 | 8310 |
8311 } // namespace dart | 8311 } // namespace dart |
OLD | NEW |