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

Side by Side Diff: src/compiler/raw-machine-assembler.cc

Issue 2122853002: Implement UnaligedLoad and UnaligedStore turbofan operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits. Fixes some errors Created 4 years, 5 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/raw-machine-assembler.h ('k') | src/compiler/s390/instruction-selector-s390.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/raw-machine-assembler.h" 5 #include "src/compiler/raw-machine-assembler.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 #include "src/compiler/scheduler.h" 10 #include "src/compiler/scheduler.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 namespace compiler { 14 namespace compiler {
15 15
16 RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph, 16 RawMachineAssembler::RawMachineAssembler(
17 CallDescriptor* call_descriptor, 17 Isolate* isolate, Graph* graph, CallDescriptor* call_descriptor,
18 MachineRepresentation word, 18 MachineRepresentation word, MachineOperatorBuilder::Flags flags,
19 MachineOperatorBuilder::Flags flags) 19 MachineOperatorBuilder::AlignmentRequirements alignment_requirements)
20 : isolate_(isolate), 20 : isolate_(isolate),
21 graph_(graph), 21 graph_(graph),
22 schedule_(new (zone()) Schedule(zone())), 22 schedule_(new (zone()) Schedule(zone())),
23 machine_(zone(), word, flags), 23 machine_(zone(), word, flags, alignment_requirements),
24 common_(zone()), 24 common_(zone()),
25 call_descriptor_(call_descriptor), 25 call_descriptor_(call_descriptor),
26 parameters_(parameter_count(), zone()), 26 parameters_(parameter_count(), zone()),
27 current_block_(schedule()->start()) { 27 current_block_(schedule()->start()) {
28 int param_count = static_cast<int>(parameter_count()); 28 int param_count = static_cast<int>(parameter_count());
29 // Add an extra input for the JSFunction parameter to the start node. 29 // Add an extra input for the JSFunction parameter to the start node.
30 graph->SetStart(graph->NewNode(common_.Start(param_count + 1))); 30 graph->SetStart(graph->NewNode(common_.Start(param_count + 1)));
31 for (size_t i = 0; i < parameter_count(); ++i) { 31 for (size_t i = 0; i < parameter_count(); ++i) {
32 parameters_[i] = 32 parameters_[i] =
33 AddNode(common()->Parameter(static_cast<int>(i)), graph->start()); 33 AddNode(common()->Parameter(static_cast<int>(i)), graph->start());
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 // The raw machine assembler nodes do not have effect and control inputs, 513 // The raw machine assembler nodes do not have effect and control inputs,
514 // so we disable checking input counts here. 514 // so we disable checking input counts here.
515 return graph()->NewNodeUnchecked(op, input_count, inputs); 515 return graph()->NewNodeUnchecked(op, input_count, inputs);
516 } 516 }
517 517
518 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } 518 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); }
519 519
520 } // namespace compiler 520 } // namespace compiler
521 } // namespace internal 521 } // namespace internal
522 } // namespace v8 522 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.h ('k') | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698