| 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 #include "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/frames-inl.h" | 10 #include "src/frames-inl.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 // Set the code, scope info, formal parameter count, and the length | 184 // Set the code, scope info, formal parameter count, and the length |
| 185 // of the target shared function info. | 185 // of the target shared function info. |
| 186 target_shared->ReplaceCode(source_shared->code()); | 186 target_shared->ReplaceCode(source_shared->code()); |
| 187 if (source_shared->HasBytecodeArray()) { | 187 if (source_shared->HasBytecodeArray()) { |
| 188 target_shared->set_bytecode_array(source_shared->bytecode_array()); | 188 target_shared->set_bytecode_array(source_shared->bytecode_array()); |
| 189 } | 189 } |
| 190 target_shared->set_scope_info(source_shared->scope_info()); | 190 target_shared->set_scope_info(source_shared->scope_info()); |
| 191 target_shared->set_outer_scope_info(source_shared->outer_scope_info()); | 191 target_shared->set_outer_scope_info(source_shared->outer_scope_info()); |
| 192 target_shared->set_length(source_shared->length()); | 192 target_shared->set_length(source_shared->length()); |
| 193 target_shared->set_num_literals(source_shared->num_literals()); | |
| 194 target_shared->set_feedback_metadata(source_shared->feedback_metadata()); | 193 target_shared->set_feedback_metadata(source_shared->feedback_metadata()); |
| 195 target_shared->set_internal_formal_parameter_count( | 194 target_shared->set_internal_formal_parameter_count( |
| 196 source_shared->internal_formal_parameter_count()); | 195 source_shared->internal_formal_parameter_count()); |
| 197 target_shared->set_start_position_and_type( | 196 target_shared->set_start_position_and_type( |
| 198 source_shared->start_position_and_type()); | 197 source_shared->start_position_and_type()); |
| 199 target_shared->set_end_position(source_shared->end_position()); | 198 target_shared->set_end_position(source_shared->end_position()); |
| 200 bool was_native = target_shared->native(); | 199 bool was_native = target_shared->native(); |
| 201 target_shared->set_compiler_hints(source_shared->compiler_hints()); | 200 target_shared->set_compiler_hints(source_shared->compiler_hints()); |
| 202 target_shared->set_opt_count_and_bailout_reason( | 201 target_shared->set_opt_count_and_bailout_reason( |
| 203 source_shared->opt_count_and_bailout_reason()); | 202 source_shared->opt_count_and_bailout_reason()); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 DCHECK_EQ(1, args.length()); | 306 DCHECK_EQ(1, args.length()); |
| 308 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0); | 307 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0); |
| 309 return function->IsJSBoundFunction() | 308 return function->IsJSBoundFunction() |
| 310 ? *JSBoundFunction::ToString( | 309 ? *JSBoundFunction::ToString( |
| 311 Handle<JSBoundFunction>::cast(function)) | 310 Handle<JSBoundFunction>::cast(function)) |
| 312 : *JSFunction::ToString(Handle<JSFunction>::cast(function)); | 311 : *JSFunction::ToString(Handle<JSFunction>::cast(function)); |
| 313 } | 312 } |
| 314 | 313 |
| 315 } // namespace internal | 314 } // namespace internal |
| 316 } // namespace v8 | 315 } // namespace v8 |
| OLD | NEW |