OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 134 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
135 Label* map_check); | 135 Label* map_check); |
136 | 136 |
137 void DoCheckMapCommon(Register reg, Handle<Map> map, LInstruction* instr); | 137 void DoCheckMapCommon(Register reg, Handle<Map> map, LInstruction* instr); |
138 | 138 |
139 // Parallel move support. | 139 // Parallel move support. |
140 void DoParallelMove(LParallelMove* move); | 140 void DoParallelMove(LParallelMove* move); |
141 void DoGap(LGap* instr); | 141 void DoGap(LGap* instr); |
142 | 142 |
143 // Emit frame translation commands for an environment. | 143 // Emit frame translation commands for an environment. |
144 void WriteTranslation(LEnvironment* environment, | 144 void WriteTranslation(LEnvironment* environment, Translation* translation); |
145 Translation* translation, | |
146 int* arguments_index, | |
147 int* arguments_count); | |
148 | 145 |
149 // Declare methods that deal with the individual node types. | 146 // Declare methods that deal with the individual node types. |
150 #define DECLARE_DO(type) void Do##type(L##type* node); | 147 #define DECLARE_DO(type) void Do##type(L##type* node); |
151 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 148 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
152 #undef DECLARE_DO | 149 #undef DECLARE_DO |
153 | 150 |
154 private: | 151 private: |
155 enum Status { | 152 enum Status { |
156 UNUSED, | 153 UNUSED, |
157 GENERATING, | 154 GENERATING, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 245 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
249 Safepoint::DeoptMode mode); | 246 Safepoint::DeoptMode mode); |
250 void DeoptimizeIf(Condition cc, | 247 void DeoptimizeIf(Condition cc, |
251 LEnvironment* environment, | 248 LEnvironment* environment, |
252 Deoptimizer::BailoutType bailout_type); | 249 Deoptimizer::BailoutType bailout_type); |
253 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 250 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
254 void SoftDeoptimize(LEnvironment* environment); | 251 void SoftDeoptimize(LEnvironment* environment); |
255 void AddToTranslation(Translation* translation, | 252 void AddToTranslation(Translation* translation, |
256 LOperand* op, | 253 LOperand* op, |
257 bool is_tagged, | 254 bool is_tagged, |
258 bool is_uint32, | 255 bool is_uint32); |
259 bool arguments_known, | |
260 int arguments_index, | |
261 int arguments_count); | |
262 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); | 256 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); |
263 void PopulateDeoptimizationData(Handle<Code> code); | 257 void PopulateDeoptimizationData(Handle<Code> code); |
264 int DefineDeoptimizationLiteral(Handle<Object> literal); | 258 int DefineDeoptimizationLiteral(Handle<Object> literal); |
265 | 259 |
266 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 260 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
267 | 261 |
268 Register ToRegister(int index) const; | 262 Register ToRegister(int index) const; |
269 XMMRegister ToDoubleRegister(int index) const; | 263 XMMRegister ToDoubleRegister(int index) const; |
270 Operand BuildFastArrayOperand( | 264 Operand BuildFastArrayOperand( |
271 LOperand* elements_pointer, | 265 LOperand* elements_pointer, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 LCodeGen* codegen_; | 429 LCodeGen* codegen_; |
436 Label entry_; | 430 Label entry_; |
437 Label exit_; | 431 Label exit_; |
438 Label* external_exit_; | 432 Label* external_exit_; |
439 int instruction_index_; | 433 int instruction_index_; |
440 }; | 434 }; |
441 | 435 |
442 } } // namespace v8::internal | 436 } } // namespace v8::internal |
443 | 437 |
444 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 438 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |