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

Side by Side Diff: src/compiler/structured-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/simplified-operator-reducer.cc ('k') | test/cctest/cctest.gyp » ('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_STRUCTURED_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_STRUCTURED_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 DISALLOW_COPY_AND_ASSIGN(Environment); 56 DISALLOW_COPY_AND_ASSIGN(Environment);
57 }; 57 };
58 58
59 class IfBuilder; 59 class IfBuilder;
60 friend class IfBuilder; 60 friend class IfBuilder;
61 class LoopBuilder; 61 class LoopBuilder;
62 friend class LoopBuilder; 62 friend class LoopBuilder;
63 63
64 StructuredMachineAssembler( 64 StructuredMachineAssembler(
65 Graph* graph, MachineCallDescriptorBuilder* call_descriptor_builder, 65 Graph* graph, MachineCallDescriptorBuilder* call_descriptor_builder,
66 MachineType word = MachineOperatorBuilder::pointer_rep()); 66 MachineType word = kMachPtr);
67 virtual ~StructuredMachineAssembler() {} 67 virtual ~StructuredMachineAssembler() {}
68 68
69 Isolate* isolate() const { return zone()->isolate(); } 69 Isolate* isolate() const { return zone()->isolate(); }
70 Zone* zone() const { return graph()->zone(); } 70 Zone* zone() const { return graph()->zone(); }
71 MachineOperatorBuilder* machine() { return &machine_; } 71 MachineOperatorBuilder* machine() { return &machine_; }
72 CommonOperatorBuilder* common() { return &common_; } 72 CommonOperatorBuilder* common() { return &common_; }
73 CallDescriptor* call_descriptor() const { 73 CallDescriptor* call_descriptor() const {
74 return call_descriptor_builder_->BuildCallDescriptor(zone()); 74 return call_descriptor_builder_->BuildCallDescriptor(zone());
75 } 75 }
76 int parameter_count() const { 76 int parameter_count() const {
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 EnvironmentVector pending_header_merges_; 296 EnvironmentVector pending_header_merges_;
297 EnvironmentVector pending_exit_merges_; 297 EnvironmentVector pending_exit_merges_;
298 DISALLOW_COPY_AND_ASSIGN(LoopBuilder); 298 DISALLOW_COPY_AND_ASSIGN(LoopBuilder);
299 }; 299 };
300 300
301 } // namespace compiler 301 } // namespace compiler
302 } // namespace internal 302 } // namespace internal
303 } // namespace v8 303 } // namespace v8
304 304
305 #endif // V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_ 305 #endif // V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator-reducer.cc ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698