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

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

Issue 782703002: Cleanup deoptimizer relocation slot preparation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment for x87 port. Created 6 years 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 | « src/compiler/arm64/code-generator-arm64.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 "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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 size_t frame_state_offset, 102 size_t frame_state_offset,
103 OutputFrameStateCombine state_combine); 103 OutputFrameStateCombine state_combine);
104 void BuildTranslationForFrameStateDescriptor( 104 void BuildTranslationForFrameStateDescriptor(
105 FrameStateDescriptor* descriptor, Instruction* instr, 105 FrameStateDescriptor* descriptor, Instruction* instr,
106 Translation* translation, size_t frame_state_offset, 106 Translation* translation, size_t frame_state_offset,
107 OutputFrameStateCombine state_combine); 107 OutputFrameStateCombine state_combine);
108 void AddTranslationForOperand(Translation* translation, Instruction* instr, 108 void AddTranslationForOperand(Translation* translation, Instruction* instr,
109 InstructionOperand* op, MachineType type); 109 InstructionOperand* op, MachineType type);
110 void AddNopForSmiCodeInlining(); 110 void AddNopForSmiCodeInlining();
111 void EnsureSpaceForLazyDeopt(); 111 void EnsureSpaceForLazyDeopt();
112 void EnsureRelocSpaceForLazyDeopt(Handle<Code> code);
113 void MarkLazyDeoptSite(); 112 void MarkLazyDeoptSite();
114 113
115 // =========================================================================== 114 // ===========================================================================
116 struct DeoptimizationState : ZoneObject { 115 struct DeoptimizationState : ZoneObject {
117 public: 116 public:
118 BailoutId bailout_id() const { return bailout_id_; } 117 BailoutId bailout_id() const { return bailout_id_; }
119 int translation_id() const { return translation_id_; } 118 int translation_id() const { return translation_id_; }
120 int pc_offset() const { return pc_offset_; } 119 int pc_offset() const { return pc_offset_; }
121 120
122 DeoptimizationState(BailoutId bailout_id, int translation_id, int pc_offset) 121 DeoptimizationState(BailoutId bailout_id, int translation_id, int pc_offset)
(...skipping 24 matching lines...) Expand all
147 TranslationBuffer translations_; 146 TranslationBuffer translations_;
148 int last_lazy_deopt_pc_; 147 int last_lazy_deopt_pc_;
149 OutOfLineCode* ools_; 148 OutOfLineCode* ools_;
150 }; 149 };
151 150
152 } // namespace compiler 151 } // namespace compiler
153 } // namespace internal 152 } // namespace internal
154 } // namespace v8 153 } // namespace v8
155 154
156 #endif // V8_COMPILER_CODE_GENERATOR_H 155 #endif // V8_COMPILER_CODE_GENERATOR_H
OLDNEW
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698