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

Side by Side Diff: src/compiler/js-intrinsic-lowering.cc

Issue 2856103002: [turbofan] Introduce dedicated CallFrequency class. (Closed)
Patch Set: Address offline feedback from jarin@. Created 3 years, 7 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/js-inlining-heuristic.cc ('k') | src/compiler/js-native-context-specialization.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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-intrinsic-lowering.h" 5 #include "src/compiler/js-intrinsic-lowering.h"
6 6
7 #include <stack> 7 #include <stack>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/access-builder.h" 10 #include "src/compiler/access-builder.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 ReplaceWithValue(node, m.node()); 331 ReplaceWithValue(node, m.node());
332 return Replace(m.node()); 332 return Replace(m.node());
333 } 333 }
334 NodeProperties::ChangeOp(node, javascript()->ToString()); 334 NodeProperties::ChangeOp(node, javascript()->ToString());
335 return Changed(node); 335 return Changed(node);
336 } 336 }
337 337
338 338
339 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { 339 Reduction JSIntrinsicLowering::ReduceCall(Node* node) {
340 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); 340 size_t const arity = CallRuntimeParametersOf(node->op()).arity();
341 NodeProperties::ChangeOp( 341 NodeProperties::ChangeOp(node, javascript()->Call(arity));
342 node,
343 javascript()->Call(arity, 0.0f, VectorSlotPair(),
344 ConvertReceiverMode::kAny, TailCallMode::kDisallow));
345 return Changed(node); 342 return Changed(node);
346 } 343 }
347 344
348 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { 345 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) {
349 NodeProperties::ChangeOp(node, javascript()->GetSuperConstructor()); 346 NodeProperties::ChangeOp(node, javascript()->GetSuperConstructor());
350 return Changed(node); 347 return Changed(node);
351 } 348 }
352 349
353 Reduction JSIntrinsicLowering::ReduceArrayBufferViewField( 350 Reduction JSIntrinsicLowering::ReduceArrayBufferViewField(
354 Node* node, FieldAccess const& access) { 351 Node* node, FieldAccess const& access) {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 return jsgraph_->javascript(); 494 return jsgraph_->javascript();
498 } 495 }
499 496
500 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { 497 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const {
501 return jsgraph()->simplified(); 498 return jsgraph()->simplified();
502 } 499 }
503 500
504 } // namespace compiler 501 } // namespace compiler
505 } // namespace internal 502 } // namespace internal
506 } // namespace v8 503 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining-heuristic.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698