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

Side by Side Diff: src/compiler/code-generator.h

Issue 606403003: Refactor BasicBlock, no inheritance from GenericNode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Attempt n+1 to address the size_t madness Created 6 years, 2 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/basic-block-instrumentor.cc ('k') | src/compiler/code-generator.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_CODE_GENERATOR_H_ 5 #ifndef V8_COMPILER_CODE_GENERATOR_H_
6 #define V8_COMPILER_CODE_GENERATOR_H_ 6 #define V8_COMPILER_CODE_GENERATOR_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 23 matching lines...) Expand all
34 34
35 private: 35 private:
36 MacroAssembler* masm() { return &masm_; } 36 MacroAssembler* masm() { return &masm_; }
37 GapResolver* resolver() { return &resolver_; } 37 GapResolver* resolver() { return &resolver_; }
38 SafepointTableBuilder* safepoints() { return &safepoints_; } 38 SafepointTableBuilder* safepoints() { return &safepoints_; }
39 Zone* zone() const { return code()->zone(); } 39 Zone* zone() const { return code()->zone(); }
40 40
41 // Checks if {block} will appear directly after {current_block_} when 41 // Checks if {block} will appear directly after {current_block_} when
42 // assembling code, in which case, a fall-through can be used. 42 // assembling code, in which case, a fall-through can be used.
43 bool IsNextInAssemblyOrder(const BasicBlock* block) const { 43 bool IsNextInAssemblyOrder(const BasicBlock* block) const {
44 return block->rpo_number_ == (current_block_->rpo_number_ + 1) && 44 return block->rpo_number() == (current_block_->rpo_number() + 1) &&
45 block->deferred_ == current_block_->deferred_; 45 block->deferred() == current_block_->deferred();
46 } 46 }
47 47
48 // Record a safepoint with the given pointer map. 48 // Record a safepoint with the given pointer map.
49 void RecordSafepoint(PointerMap* pointers, Safepoint::Kind kind, 49 void RecordSafepoint(PointerMap* pointers, Safepoint::Kind kind,
50 int arguments, Safepoint::DeoptMode deopt_mode); 50 int arguments, Safepoint::DeoptMode deopt_mode);
51 51
52 // Assemble code for the specified instruction. 52 // Assemble code for the specified instruction.
53 void AssembleInstruction(Instruction* instr); 53 void AssembleInstruction(Instruction* instr);
54 void AssembleSourcePosition(SourcePositionInstruction* instr); 54 void AssembleSourcePosition(SourcePositionInstruction* instr);
55 void AssembleGap(GapInstruction* gap); 55 void AssembleGap(GapInstruction* gap);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 ZoneDeque<Handle<Object> > deoptimization_literals_; 129 ZoneDeque<Handle<Object> > deoptimization_literals_;
130 TranslationBuffer translations_; 130 TranslationBuffer translations_;
131 int last_lazy_deopt_pc_; 131 int last_lazy_deopt_pc_;
132 }; 132 };
133 133
134 } // namespace compiler 134 } // namespace compiler
135 } // namespace internal 135 } // namespace internal
136 } // namespace v8 136 } // namespace v8
137 137
138 #endif // V8_COMPILER_CODE_GENERATOR_H 138 #endif // V8_COMPILER_CODE_GENERATOR_H
OLDNEW
« no previous file with comments | « src/compiler/basic-block-instrumentor.cc ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698