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

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

Issue 679793003: [turbofan] reduce allocations outside of pipeline (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/ia32/code-generator-ia32.cc ('k') | src/compiler/linkage.h » ('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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/graph-inl.h" 8 #include "src/compiler/graph-inl.h"
9 #include "src/compiler/js-generic-lowering.h" 9 #include "src/compiler/js-generic-lowering.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
11 #include "src/compiler/node-aux-data-inl.h" 11 #include "src/compiler/node-aux-data-inl.h"
12 #include "src/compiler/node-properties-inl.h" 12 #include "src/compiler/node-properties-inl.h"
13 #include "src/unique.h" 13 #include "src/unique.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 namespace compiler { 17 namespace compiler {
18 18
19 JSGenericLowering::JSGenericLowering(CompilationInfo* info, JSGraph* jsgraph) 19 JSGenericLowering::JSGenericLowering(CompilationInfo* info, JSGraph* jsgraph)
20 : info_(info), 20 : info_(info),
21 jsgraph_(jsgraph), 21 jsgraph_(jsgraph),
22 linkage_(new (jsgraph->zone()) Linkage(info)) {} 22 linkage_(new (jsgraph->zone()) Linkage(jsgraph->zone(), info)) {}
23 23
24 24
25 void JSGenericLowering::PatchOperator(Node* node, const Operator* op) { 25 void JSGenericLowering::PatchOperator(Node* node, const Operator* op) {
26 node->set_op(op); 26 node->set_op(op);
27 } 27 }
28 28
29 29
30 void JSGenericLowering::PatchInsertInput(Node* node, int index, Node* input) { 30 void JSGenericLowering::PatchInsertInput(Node* node, int index, Node* input) {
31 node->InsertInput(zone(), index, input); 31 node->InsertInput(zone(), index, input);
32 } 32 }
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 400
401 401
402 void JSGenericLowering::LowerJSCallRuntime(Node* node) { 402 void JSGenericLowering::LowerJSCallRuntime(Node* node) {
403 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); 403 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op());
404 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); 404 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity()));
405 } 405 }
406 406
407 } // namespace compiler 407 } // namespace compiler
408 } // namespace internal 408 } // namespace internal
409 } // namespace v8 409 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/linkage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698