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

Side by Side Diff: src/compiler/js-inlining.cc

Issue 1175953002: [turbofan] Record the SharedFunctionInfo of ALL inlined functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cannot use a ZoneVector because of smart... 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/compiler/code-generator.cc ('k') | no next file » | 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/compiler/js-inlining.h" 5 #include "src/compiler/js-inlining.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/ast-numbering.h" 8 #include "src/ast-numbering.h"
9 #include "src/compiler/all-nodes.h" 9 #include "src/compiler/all-nodes.h"
10 #include "src/compiler/ast-graph-builder.h" 10 #include "src/compiler/ast-graph-builder.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // In strong mode, in case of too few arguments we need to throw a 295 // In strong mode, in case of too few arguments we need to throw a
296 // TypeError so we must not inline this call. 296 // TypeError so we must not inline this call.
297 if (is_strong(info.language_mode()) && 297 if (is_strong(info.language_mode()) &&
298 call.formal_arguments() < inlinee_formal_parameters) { 298 call.formal_arguments() < inlinee_formal_parameters) {
299 return NoChange(); 299 return NoChange();
300 } 300 }
301 frame_state = CreateArgumentsAdaptorFrameState(&call, info.shared_info(), 301 frame_state = CreateArgumentsAdaptorFrameState(&call, info.shared_info(),
302 info.zone()); 302 info.zone());
303 } 303 }
304 304
305 // Remember that we inlined this function.
306 info_->AddInlinedFunction(info.shared_info());
307
305 return InlineCall(node, frame_state, start, end); 308 return InlineCall(node, frame_state, start, end);
306 } 309 }
307 310
308 } // namespace compiler 311 } // namespace compiler
309 } // namespace internal 312 } // namespace internal
310 } // namespace v8 313 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698