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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 2662263002: [turbo] Rename CallConstruct* operators to Construct*. (Closed)
Patch Set: Created 3 years, 10 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/ast-graph-builder.h ('k') | src/compiler/bytecode-graph-builder.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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 ZoneList<Expression*>* args = expr->arguments(); 1854 ZoneList<Expression*>* args = expr->arguments();
1855 VisitForValues(args); 1855 VisitForValues(args);
1856 1856
1857 // The new target is the same as the callee. 1857 // The new target is the same as the callee.
1858 environment()->Push(environment()->Peek(args->length())); 1858 environment()->Push(environment()->Peek(args->length()));
1859 1859
1860 // Create node to perform the construct call. 1860 // Create node to perform the construct call.
1861 float const frequency = ComputeCallFrequency(expr->CallNewFeedbackSlot()); 1861 float const frequency = ComputeCallFrequency(expr->CallNewFeedbackSlot());
1862 VectorSlotPair feedback = CreateVectorSlotPair(expr->CallNewFeedbackSlot()); 1862 VectorSlotPair feedback = CreateVectorSlotPair(expr->CallNewFeedbackSlot());
1863 const Operator* call = 1863 const Operator* call =
1864 javascript()->CallConstruct(args->length() + 2, frequency, feedback); 1864 javascript()->Construct(args->length() + 2, frequency, feedback);
1865 Node* value = ProcessArguments(call, args->length() + 2); 1865 Node* value = ProcessArguments(call, args->length() + 2);
1866 PrepareFrameState(value, expr->ReturnId(), OutputFrameStateCombine::Push()); 1866 PrepareFrameState(value, expr->ReturnId(), OutputFrameStateCombine::Push());
1867 ast_context()->ProduceValue(expr, value); 1867 ast_context()->ProduceValue(expr, value);
1868 } 1868 }
1869 1869
1870 1870
1871 void AstGraphBuilder::VisitCallJSRuntime(CallRuntime* expr) { 1871 void AstGraphBuilder::VisitCallJSRuntime(CallRuntime* expr) {
1872 // The callee and the receiver both have to be pushed onto the operand stack 1872 // The callee and the receiver both have to be pushed onto the operand stack
1873 // before arguments are being evaluated. 1873 // before arguments are being evaluated.
1874 Node* callee_value = BuildLoadNativeContextField(expr->context_index()); 1874 Node* callee_value = BuildLoadNativeContextField(expr->context_index());
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
3310 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, 3310 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment,
3311 SourcePositionTable* source_positions, int inlining_id) 3311 SourcePositionTable* source_positions, int inlining_id)
3312 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, 3312 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency,
3313 loop_assignment), 3313 loop_assignment),
3314 source_positions_(source_positions), 3314 source_positions_(source_positions),
3315 start_position_(info->shared_info()->start_position(), inlining_id) {} 3315 start_position_(info->shared_info()->start_position(), inlining_id) {}
3316 3316
3317 } // namespace compiler 3317 } // namespace compiler
3318 } // namespace internal 3318 } // namespace internal
3319 } // namespace v8 3319 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.h ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698