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

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

Issue 707803002: [turbofan] move label generation to code generator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/code-generator.cc ('k') | src/compiler/ia32/code-generator-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_IMPL_H_ 5 #ifndef V8_COMPILER_CODE_GENERATOR_IMPL_H_
6 #define V8_COMPILER_CODE_GENERATOR_IMPL_H_ 6 #define V8_COMPILER_CODE_GENERATOR_IMPL_H_
7 7
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler/code-generator.h" 9 #include "src/compiler/code-generator.h"
10 #include "src/compiler/instruction.h" 10 #include "src/compiler/instruction.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 uint8_t InputInt6(int index) { 52 uint8_t InputInt6(int index) {
53 return static_cast<uint8_t>(InputInt32(index) & 0x3F); 53 return static_cast<uint8_t>(InputInt32(index) & 0x3F);
54 } 54 }
55 55
56 Handle<HeapObject> InputHeapObject(int index) { 56 Handle<HeapObject> InputHeapObject(int index) {
57 return ToHeapObject(instr_->InputAt(index)); 57 return ToHeapObject(instr_->InputAt(index));
58 } 58 }
59 59
60 Label* InputLabel(int index) { 60 Label* InputLabel(int index) { return gen_->GetLabel(InputRpo(index)); }
61 return gen_->code()->GetLabel(InputRpo(index));
62 }
63 61
64 BasicBlock::RpoNumber InputRpo(int index) { 62 BasicBlock::RpoNumber InputRpo(int index) {
65 int rpo_number = InputInt32(index); 63 int rpo_number = InputInt32(index);
66 return BasicBlock::RpoNumber::FromInt(rpo_number); 64 return BasicBlock::RpoNumber::FromInt(rpo_number);
67 } 65 }
68 66
69 Register OutputRegister(int index = 0) { 67 Register OutputRegister(int index = 0) {
70 return ToRegister(instr_->OutputAt(index)); 68 return ToRegister(instr_->OutputAt(index));
71 } 69 }
72 70
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 #if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM 115 #if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM
118 masm->CheckConstPool(true, false); 116 masm->CheckConstPool(true, false);
119 #endif 117 #endif
120 } 118 }
121 119
122 } // namespace compiler 120 } // namespace compiler
123 } // namespace internal 121 } // namespace internal
124 } // namespace v8 122 } // namespace v8
125 123
126 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H 124 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698