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

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

Issue 1169103004: [deoptimizer] Basic support inlining based on SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Jaros comment. Created 5 years, 6 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
« no previous file with comments | « src/objects.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/v8.h" 5 #include "src/v8.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/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 int inlined_jsframe_index = functions.length() - 1; 339 int inlined_jsframe_index = functions.length() - 1;
340 TranslatedState translated_values(frame); 340 TranslatedState translated_values(frame);
341 translated_values.Prepare(false, frame->fp()); 341 translated_values.Prepare(false, frame->fp());
342 342
343 int argument_count = 0; 343 int argument_count = 0;
344 TranslatedFrame* translated_frame = 344 TranslatedFrame* translated_frame =
345 translated_values.GetArgumentsInfoFromJSFrameIndex( 345 translated_values.GetArgumentsInfoFromJSFrameIndex(
346 inlined_jsframe_index, &argument_count); 346 inlined_jsframe_index, &argument_count);
347 TranslatedFrame::iterator iter = translated_frame->begin(); 347 TranslatedFrame::iterator iter = translated_frame->begin();
348 348
349 // Skip the function.
350 iter++;
351
349 // Skip the receiver. 352 // Skip the receiver.
350 iter++; 353 iter++;
351 argument_count--; 354 argument_count--;
352 355
353 *total_argc = prefix_argc + argument_count; 356 *total_argc = prefix_argc + argument_count;
354 SmartArrayPointer<Handle<Object> > param_data( 357 SmartArrayPointer<Handle<Object> > param_data(
355 NewArray<Handle<Object> >(*total_argc)); 358 NewArray<Handle<Object> >(*total_argc));
356 bool should_deoptimize = false; 359 bool should_deoptimize = false;
357 for (int i = 0; i < argument_count; i++) { 360 for (int i = 0; i < argument_count; i++) {
358 should_deoptimize = should_deoptimize || iter->IsMaterializedObject(); 361 should_deoptimize = should_deoptimize || iter->IsMaterializedObject();
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 623
621 624
622 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) { 625 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) {
623 HandleScope scope(isolate); 626 HandleScope scope(isolate);
624 DCHECK(args.length() == 0); 627 DCHECK(args.length() == 0);
625 THROW_NEW_ERROR_RETURN_FAILURE(isolate, 628 THROW_NEW_ERROR_RETURN_FAILURE(isolate,
626 NewTypeError(MessageTemplate::kStrongArity)); 629 NewTypeError(MessageTemplate::kStrongArity));
627 } 630 }
628 } // namespace internal 631 } // namespace internal
629 } // namespace v8 632 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698