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

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

Issue 515173002: Add MachineSignature, which is an encapsulation of the machine types for parameters and return valu… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/machine-type.h ('k') | src/compiler/simplified-operator-reducer.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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 29 matching lines...) Expand all
40 40
41 BasicBlock* block_; 41 BasicBlock* block_;
42 bool used_; 42 bool used_;
43 bool bound_; 43 bool bound_;
44 friend class RawMachineAssembler; 44 friend class RawMachineAssembler;
45 DISALLOW_COPY_AND_ASSIGN(Label); 45 DISALLOW_COPY_AND_ASSIGN(Label);
46 }; 46 };
47 47
48 RawMachineAssembler(Graph* graph, 48 RawMachineAssembler(Graph* graph,
49 MachineCallDescriptorBuilder* call_descriptor_builder, 49 MachineCallDescriptorBuilder* call_descriptor_builder,
50 MachineType word = MachineOperatorBuilder::pointer_rep()); 50 MachineType word = kMachPtr);
51 virtual ~RawMachineAssembler() {} 51 virtual ~RawMachineAssembler() {}
52 52
53 Isolate* isolate() const { return zone()->isolate(); } 53 Isolate* isolate() const { return zone()->isolate(); }
54 Zone* zone() const { return graph()->zone(); } 54 Zone* zone() const { return graph()->zone(); }
55 MachineOperatorBuilder* machine() { return &machine_; } 55 MachineOperatorBuilder* machine() { return &machine_; }
56 CommonOperatorBuilder* common() { return &common_; } 56 CommonOperatorBuilder* common() { return &common_; }
57 CallDescriptor* call_descriptor() const { 57 CallDescriptor* call_descriptor() const {
58 return call_descriptor_builder_->BuildCallDescriptor(zone()); 58 return call_descriptor_builder_->BuildCallDescriptor(zone());
59 } 59 }
60 int parameter_count() const { 60 int parameter_count() const {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 BasicBlock* current_block_; 121 BasicBlock* current_block_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); 123 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler);
124 }; 124 };
125 125
126 } // namespace compiler 126 } // namespace compiler
127 } // namespace internal 127 } // namespace internal
128 } // namespace v8 128 } // namespace v8
129 129
130 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 130 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/machine-type.h ('k') | src/compiler/simplified-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698