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

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

Issue 2614373002: [FeedbackVector] Infrastructure for literal arrays in the vector. (Closed)
Patch Set: Release compile fix. Created 3 years, 11 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-create-lowering.cc ('k') | src/compiler/js-operator.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/compiler/js-generic-lowering.h" 5 #include "src/compiler/js-generic-lowering.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/builtins/builtins-constructor.h" 8 #include "src/builtins/builtins-constructor.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 void JSGenericLowering::LowerJSCreateClosure(Node* node) { 346 void JSGenericLowering::LowerJSCreateClosure(Node* node) {
347 CreateClosureParameters const& p = CreateClosureParametersOf(node->op()); 347 CreateClosureParameters const& p = CreateClosureParametersOf(node->op());
348 CallDescriptor::Flags flags = FrameStateFlagForCall(node); 348 CallDescriptor::Flags flags = FrameStateFlagForCall(node);
349 Handle<SharedFunctionInfo> const shared_info = p.shared_info(); 349 Handle<SharedFunctionInfo> const shared_info = p.shared_info();
350 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(shared_info)); 350 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(shared_info));
351 351
352 // Use the FastNewClosurebuiltin only for functions allocated in new 352 // Use the FastNewClosurebuiltin only for functions allocated in new
353 // space. 353 // space.
354 if (p.pretenure() == NOT_TENURED) { 354 if (p.pretenure() == NOT_TENURED) {
355 Callable callable = CodeFactory::FastNewClosure(isolate()); 355 Callable callable = CodeFactory::FastNewClosure(isolate());
356 node->InsertInput(zone(), 1,
357 jsgraph()->HeapConstant(p.feedback().vector()));
358 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index()));
356 ReplaceWithStubCall(node, callable, flags); 359 ReplaceWithStubCall(node, callable, flags);
357 } else { 360 } else {
361 node->InsertInput(zone(), 1,
362 jsgraph()->HeapConstant(p.feedback().vector()));
363 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index()));
358 ReplaceWithRuntimeCall(node, (p.pretenure() == TENURED) 364 ReplaceWithRuntimeCall(node, (p.pretenure() == TENURED)
359 ? Runtime::kNewClosure_Tenured 365 ? Runtime::kNewClosure_Tenured
360 : Runtime::kNewClosure); 366 : Runtime::kNewClosure);
361 } 367 }
362 } 368 }
363 369
364 370
365 void JSGenericLowering::LowerJSCreateFunctionContext(Node* node) { 371 void JSGenericLowering::LowerJSCreateFunctionContext(Node* node) {
366 const CreateFunctionContextParameters& parameters = 372 const CreateFunctionContextParameters& parameters =
367 CreateFunctionContextParametersOf(node->op()); 373 CreateFunctionContextParametersOf(node->op());
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 } 643 }
638 644
639 645
640 MachineOperatorBuilder* JSGenericLowering::machine() const { 646 MachineOperatorBuilder* JSGenericLowering::machine() const {
641 return jsgraph()->machine(); 647 return jsgraph()->machine();
642 } 648 }
643 649
644 } // namespace compiler 650 } // namespace compiler
645 } // namespace internal 651 } // namespace internal
646 } // namespace v8 652 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-create-lowering.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698