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

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

Issue 584573003: Add JSBuiltinReducer for inlining well-known builtins. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Ben Titzer. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/js-typed-lowering.h ('k') | test/cctest/compiler/test-js-typed-lowering.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/access-builder.h" 5 #include "src/compiler/access-builder.h"
6 #include "src/compiler/graph-inl.h" 6 #include "src/compiler/graph-inl.h"
7 #include "src/compiler/js-builtin-reducer.h"
7 #include "src/compiler/js-typed-lowering.h" 8 #include "src/compiler/js-typed-lowering.h"
8 #include "src/compiler/node-aux-data-inl.h" 9 #include "src/compiler/node-aux-data-inl.h"
9 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
10 #include "src/types.h" 11 #include "src/types.h"
11 12
12 namespace v8 { 13 namespace v8 {
13 namespace internal { 14 namespace internal {
14 namespace compiler { 15 namespace compiler {
15 16
16 // TODO(turbofan): js-typed-lowering improvements possible 17 // TODO(turbofan): js-typed-lowering improvements possible
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 case IrOpcode::kJSToNumber: 672 case IrOpcode::kJSToNumber:
672 return ReplaceWithReduction(node, 673 return ReplaceWithReduction(node,
673 ReduceJSToNumberInput(node->InputAt(0))); 674 ReduceJSToNumberInput(node->InputAt(0)));
674 case IrOpcode::kJSToString: 675 case IrOpcode::kJSToString:
675 return ReplaceWithReduction(node, 676 return ReplaceWithReduction(node,
676 ReduceJSToStringInput(node->InputAt(0))); 677 ReduceJSToStringInput(node->InputAt(0)));
677 case IrOpcode::kJSLoadProperty: 678 case IrOpcode::kJSLoadProperty:
678 return ReduceJSLoadProperty(node); 679 return ReduceJSLoadProperty(node);
679 case IrOpcode::kJSStoreProperty: 680 case IrOpcode::kJSStoreProperty:
680 return ReduceJSStoreProperty(node); 681 return ReduceJSStoreProperty(node);
682 case IrOpcode::kJSCallFunction:
683 return JSBuiltinReducer(jsgraph()).Reduce(node);
681 default: 684 default:
682 break; 685 break;
683 } 686 }
684 return NoChange(); 687 return NoChange();
685 } 688 }
686 689
687 } // namespace compiler 690 } // namespace compiler
688 } // namespace internal 691 } // namespace internal
689 } // namespace v8 692 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.h ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698