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

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

Issue 1542143003: Fix a few -Wignored-qualifiers warnings. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | src/compiler/frame.h » ('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 "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/instruction.h" 9 #include "src/compiler/instruction.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 21 matching lines...) Expand all
32 class CodeGenerator final : public GapResolver::Assembler { 32 class CodeGenerator final : public GapResolver::Assembler {
33 public: 33 public:
34 explicit CodeGenerator(Frame* frame, Linkage* linkage, 34 explicit CodeGenerator(Frame* frame, Linkage* linkage,
35 InstructionSequence* code, CompilationInfo* info); 35 InstructionSequence* code, CompilationInfo* info);
36 36
37 // Generate native code. 37 // Generate native code.
38 Handle<Code> GenerateCode(); 38 Handle<Code> GenerateCode();
39 39
40 InstructionSequence* code() const { return code_; } 40 InstructionSequence* code() const { return code_; }
41 FrameAccessState* frame_access_state() const { return frame_access_state_; } 41 FrameAccessState* frame_access_state() const { return frame_access_state_; }
42 Frame* const frame() const { return frame_access_state_->frame(); } 42 Frame* frame() const { return frame_access_state_->frame(); }
43 Isolate* isolate() const { return info_->isolate(); } 43 Isolate* isolate() const { return info_->isolate(); }
44 Linkage* linkage() const { return linkage_; } 44 Linkage* linkage() const { return linkage_; }
45 45
46 Label* GetLabel(RpoNumber rpo) { return &labels_[rpo.ToSize()]; } 46 Label* GetLabel(RpoNumber rpo) { return &labels_[rpo.ToSize()]; }
47 47
48 private: 48 private:
49 MacroAssembler* masm() { return &masm_; } 49 MacroAssembler* masm() { return &masm_; }
50 GapResolver* resolver() { return &resolver_; } 50 GapResolver* resolver() { return &resolver_; }
51 SafepointTableBuilder* safepoints() { return &safepoints_; } 51 SafepointTableBuilder* safepoints() { return &safepoints_; }
52 Zone* zone() const { return code()->zone(); } 52 Zone* zone() const { return code()->zone(); }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 JumpTable* jump_tables_; 198 JumpTable* jump_tables_;
199 OutOfLineCode* ools_; 199 OutOfLineCode* ools_;
200 int osr_pc_offset_; 200 int osr_pc_offset_;
201 }; 201 };
202 202
203 } // namespace compiler 203 } // namespace compiler
204 } // namespace internal 204 } // namespace internal
205 } // namespace v8 205 } // namespace v8
206 206
207 #endif // V8_COMPILER_CODE_GENERATOR_H 207 #endif // V8_COMPILER_CODE_GENERATOR_H
OLDNEW
« no previous file with comments | « no previous file | src/compiler/frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698