| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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()); | 193 target_shared->set_num_literals(source_shared->num_literals()); |
| 194 target_shared->set_feedback_metadata(source_shared->feedback_metadata()); | 194 target_shared->set_feedback_metadata(source_shared->feedback_metadata()); |
| 195 target_shared->set_internal_formal_parameter_count( | 195 target_shared->set_internal_formal_parameter_count( |
| 196 source_shared->internal_formal_parameter_count()); | 196 source_shared->internal_formal_parameter_count()); |
| 197 target_shared->set_start_position_and_type( | 197 target_shared->set_start_position_and_type( |
| 198 source_shared->start_position_and_type()); | 198 source_shared->start_position_and_type()); |
| 199 target_shared->set_end_position(source_shared->end_position()); | 199 target_shared->set_end_position_and_is_blackboxed( |
| 200 source_shared->end_position_and_is_blackboxed()); |
| 200 bool was_native = target_shared->native(); | 201 bool was_native = target_shared->native(); |
| 201 target_shared->set_compiler_hints(source_shared->compiler_hints()); | 202 target_shared->set_compiler_hints(source_shared->compiler_hints()); |
| 202 target_shared->set_opt_count_and_bailout_reason( | 203 target_shared->set_opt_count_and_bailout_reason( |
| 203 source_shared->opt_count_and_bailout_reason()); | 204 source_shared->opt_count_and_bailout_reason()); |
| 204 target_shared->set_native(was_native); | 205 target_shared->set_native(was_native); |
| 205 target_shared->set_profiler_ticks(source_shared->profiler_ticks()); | 206 target_shared->set_profiler_ticks(source_shared->profiler_ticks()); |
| 206 target_shared->set_function_literal_id(source_shared->function_literal_id()); | 207 target_shared->set_function_literal_id(source_shared->function_literal_id()); |
| 207 | 208 |
| 208 Handle<Object> source_script(source_shared->script(), isolate); | 209 Handle<Object> source_script(source_shared->script(), isolate); |
| 209 if (source_script->IsScript()) { | 210 if (source_script->IsScript()) { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 DCHECK_EQ(1, args.length()); | 308 DCHECK_EQ(1, args.length()); |
| 308 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0); | 309 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0); |
| 309 return function->IsJSBoundFunction() | 310 return function->IsJSBoundFunction() |
| 310 ? *JSBoundFunction::ToString( | 311 ? *JSBoundFunction::ToString( |
| 311 Handle<JSBoundFunction>::cast(function)) | 312 Handle<JSBoundFunction>::cast(function)) |
| 312 : *JSFunction::ToString(Handle<JSFunction>::cast(function)); | 313 : *JSFunction::ToString(Handle<JSFunction>::cast(function)); |
| 313 } | 314 } |
| 314 | 315 |
| 315 } // namespace internal | 316 } // namespace internal |
| 316 } // namespace v8 | 317 } // namespace v8 |
| OLD | NEW |