| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 bool GenerateCode(); | 141 bool GenerateCode(); |
| 142 | 142 |
| 143 // Finish the code by setting stack height, safepoint, and bailout | 143 // Finish the code by setting stack height, safepoint, and bailout |
| 144 // information on it. | 144 // information on it. |
| 145 void FinishCode(Handle<Code> code); | 145 void FinishCode(Handle<Code> code); |
| 146 | 146 |
| 147 // Deferred code support. | 147 // Deferred code support. |
| 148 void DoDeferredNumberTagD(LNumberTagD* instr); | 148 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 149 | 149 |
| 150 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; | 150 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; |
| 151 void DoDeferredNumberTagI(LInstruction* instr, | 151 void DoDeferredNumberTagIU(LInstruction* instr, |
| 152 LOperand* value, | 152 LOperand* value, |
| 153 IntegerSignedness signedness); | 153 LOperand* temp1, |
| 154 LOperand* temp2, |
| 155 IntegerSignedness signedness); |
| 154 | 156 |
| 155 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); | 157 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); |
| 156 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); | 158 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); |
| 157 void DoDeferredStackCheck(LStackCheck* instr); | 159 void DoDeferredStackCheck(LStackCheck* instr); |
| 158 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 160 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 159 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 161 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 160 void DoDeferredAllocate(LAllocate* instr); | 162 void DoDeferredAllocate(LAllocate* instr); |
| 161 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 163 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 162 Label* map_check); | 164 Label* map_check); |
| 163 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); | 165 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); |
| 164 | 166 |
| 165 // Parallel move support. | 167 // Parallel move support. |
| 166 void DoParallelMove(LParallelMove* move); | 168 void DoParallelMove(LParallelMove* move); |
| 167 void DoGap(LGap* instr); | 169 void DoGap(LGap* instr); |
| 168 | 170 |
| 169 // Emit frame translation commands for an environment. | 171 // Emit frame translation commands for an environment. |
| 170 void WriteTranslation(LEnvironment* environment, Translation* translation); | 172 void WriteTranslation(LEnvironment* environment, Translation* translation); |
| 171 | 173 |
| 172 void EnsureRelocSpaceForDeoptimization(); | 174 void EnsureRelocSpaceForDeoptimization(); |
| 173 | 175 |
| 174 // Declare methods that deal with the individual node types. | 176 // Declare methods that deal with the individual node types. |
| 175 #define DECLARE_DO(type) void Do##type(L##type* node); | 177 #define DECLARE_DO(type) void Do##type(L##type* node); |
| 176 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 178 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
| 177 #undef DECLARE_DO | 179 #undef DECLARE_DO |
| 178 | 180 |
| 179 private: | 181 private: |
| 180 StrictModeFlag strict_mode_flag() const { | 182 StrictMode strict_mode() const { return info()->strict_mode(); } |
| 181 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; | |
| 182 } | |
| 183 | 183 |
| 184 Scope* scope() const { return scope_; } | 184 Scope* scope() const { return scope_; } |
| 185 | 185 |
| 186 XMMRegister double_scratch0() const { return xmm0; } | 186 XMMRegister double_scratch0() const { return xmm0; } |
| 187 | 187 |
| 188 void EmitClassOfTest(Label* if_true, | 188 void EmitClassOfTest(Label* if_true, |
| 189 Label* if_false, | 189 Label* if_false, |
| 190 Handle<String> class_name, | 190 Handle<String> class_name, |
| 191 Register input, | 191 Register input, |
| 192 Register temporary, | 192 Register temporary, |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 Label exit_; | 536 Label exit_; |
| 537 Label* external_exit_; | 537 Label* external_exit_; |
| 538 Label done_; | 538 Label done_; |
| 539 int instruction_index_; | 539 int instruction_index_; |
| 540 LCodeGen::X87Stack x87_stack_; | 540 LCodeGen::X87Stack x87_stack_; |
| 541 }; | 541 }; |
| 542 | 542 |
| 543 } } // namespace v8::internal | 543 } } // namespace v8::internal |
| 544 | 544 |
| 545 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 545 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |