OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 99 matching lines...) Loading... |
110 GENERATING, | 110 GENERATING, |
111 DONE, | 111 DONE, |
112 ABORTED | 112 ABORTED |
113 }; | 113 }; |
114 | 114 |
115 bool is_unused() const { return status_ == UNUSED; } | 115 bool is_unused() const { return status_ == UNUSED; } |
116 bool is_generating() const { return status_ == GENERATING; } | 116 bool is_generating() const { return status_ == GENERATING; } |
117 bool is_done() const { return status_ == DONE; } | 117 bool is_done() const { return status_ == DONE; } |
118 bool is_aborted() const { return status_ == ABORTED; } | 118 bool is_aborted() const { return status_ == ABORTED; } |
119 | 119 |
| 120 int strict_mode_flag() const { |
| 121 return info_->is_strict() ? kStrictMode : kNonStrictMode; |
| 122 } |
| 123 |
120 LChunk* chunk() const { return chunk_; } | 124 LChunk* chunk() const { return chunk_; } |
121 Scope* scope() const { return scope_; } | 125 Scope* scope() const { return scope_; } |
122 HGraph* graph() const { return chunk_->graph(); } | 126 HGraph* graph() const { return chunk_->graph(); } |
123 | 127 |
124 int GetNextEmittedBlock(int block); | 128 int GetNextEmittedBlock(int block); |
125 LInstruction* GetNextInstruction(); | 129 LInstruction* GetNextInstruction(); |
126 | 130 |
127 void EmitClassOfTest(Label* if_true, | 131 void EmitClassOfTest(Label* if_true, |
128 Label* if_false, | 132 Label* if_false, |
129 Handle<String> class_name, | 133 Handle<String> class_name, |
(...skipping 89 matching lines...) Loading... |
219 // Returns the condition on which a final split to | 223 // Returns the condition on which a final split to |
220 // true and false label should be made, to optimize fallthrough. | 224 // true and false label should be made, to optimize fallthrough. |
221 Condition EmitIsObject(Register input, | 225 Condition EmitIsObject(Register input, |
222 Label* is_not_object, | 226 Label* is_not_object, |
223 Label* is_object); | 227 Label* is_object); |
224 | 228 |
225 // Emits optimized code for %_IsConstructCall(). | 229 // Emits optimized code for %_IsConstructCall(). |
226 // Caller should branch on equal condition. | 230 // Caller should branch on equal condition. |
227 void EmitIsConstructCall(Register temp); | 231 void EmitIsConstructCall(Register temp); |
228 | 232 |
| 233 // Emits code for pushing a constant operand. |
| 234 void EmitPushConstantOperand(LOperand* operand); |
| 235 |
229 LChunk* const chunk_; | 236 LChunk* const chunk_; |
230 MacroAssembler* const masm_; | 237 MacroAssembler* const masm_; |
231 CompilationInfo* const info_; | 238 CompilationInfo* const info_; |
232 | 239 |
233 int current_block_; | 240 int current_block_; |
234 int current_instruction_; | 241 int current_instruction_; |
235 const ZoneList<LInstruction*>* instructions_; | 242 const ZoneList<LInstruction*>* instructions_; |
236 ZoneList<LEnvironment*> deoptimizations_; | 243 ZoneList<LEnvironment*> deoptimizations_; |
237 ZoneList<Handle<Object> > deoptimization_literals_; | 244 ZoneList<Handle<Object> > deoptimization_literals_; |
238 int inlined_function_count_; | 245 int inlined_function_count_; |
(...skipping 38 matching lines...) Loading... |
277 private: | 284 private: |
278 LCodeGen* codegen_; | 285 LCodeGen* codegen_; |
279 Label entry_; | 286 Label entry_; |
280 Label exit_; | 287 Label exit_; |
281 Label* external_exit_; | 288 Label* external_exit_; |
282 }; | 289 }; |
283 | 290 |
284 } } // namespace v8::internal | 291 } } // namespace v8::internal |
285 | 292 |
286 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 293 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |