Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: src/runtime/runtime-function.cc

Issue 2358503002: Change the CompilerDispatcherJob to take a SharedFunctionInfo (Closed)
Patch Set: updates Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 target_shared->set_dont_flush(true); 167 target_shared->set_dont_flush(true);
168 source_shared->set_dont_flush(true); 168 source_shared->set_dont_flush(true);
169 169
170 // Set the code, scope info, formal parameter count, and the length 170 // Set the code, scope info, formal parameter count, and the length
171 // of the target shared function info. 171 // of the target shared function info.
172 target_shared->ReplaceCode(source_shared->code()); 172 target_shared->ReplaceCode(source_shared->code());
173 if (source_shared->HasBytecodeArray()) { 173 if (source_shared->HasBytecodeArray()) {
174 target_shared->set_bytecode_array(source_shared->bytecode_array()); 174 target_shared->set_bytecode_array(source_shared->bytecode_array());
175 } 175 }
176 target_shared->set_scope_info(source_shared->scope_info()); 176 target_shared->set_scope_info(source_shared->scope_info());
177 target_shared->set_outer_scope_info(source_shared->outer_scope_info());
177 target_shared->set_length(source_shared->length()); 178 target_shared->set_length(source_shared->length());
178 target_shared->set_num_literals(source_shared->num_literals()); 179 target_shared->set_num_literals(source_shared->num_literals());
179 target_shared->set_feedback_metadata(source_shared->feedback_metadata()); 180 target_shared->set_feedback_metadata(source_shared->feedback_metadata());
180 target_shared->set_internal_formal_parameter_count( 181 target_shared->set_internal_formal_parameter_count(
181 source_shared->internal_formal_parameter_count()); 182 source_shared->internal_formal_parameter_count());
182 target_shared->set_start_position_and_type( 183 target_shared->set_start_position_and_type(
183 source_shared->start_position_and_type()); 184 source_shared->start_position_and_type());
184 target_shared->set_end_position(source_shared->end_position()); 185 target_shared->set_end_position(source_shared->end_position());
185 bool was_native = target_shared->native(); 186 bool was_native = target_shared->native();
186 target_shared->set_compiler_hints(source_shared->compiler_hints()); 187 target_shared->set_compiler_hints(source_shared->compiler_hints());
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 DCHECK_EQ(1, args.length()); 287 DCHECK_EQ(1, args.length());
287 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0); 288 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0);
288 return function->IsJSBoundFunction() 289 return function->IsJSBoundFunction()
289 ? *JSBoundFunction::ToString( 290 ? *JSBoundFunction::ToString(
290 Handle<JSBoundFunction>::cast(function)) 291 Handle<JSBoundFunction>::cast(function))
291 : *JSFunction::ToString(Handle<JSFunction>::cast(function)); 292 : *JSFunction::ToString(Handle<JSFunction>::cast(function));
292 } 293 }
293 294
294 } // namespace internal 295 } // namespace internal
295 } // namespace v8 296 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698