OLD | NEW |
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 void DoDeferredNumberTagD(LNumberTagD* instr); | 108 void DoDeferredNumberTagD(LNumberTagD* instr); |
109 void DoDeferredNumberTagI(LNumberTagI* instr); | 109 void DoDeferredNumberTagI(LNumberTagI* instr); |
110 void DoDeferredTaggedToI(LTaggedToI* instr); | 110 void DoDeferredTaggedToI(LTaggedToI* instr); |
111 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 111 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
112 void DoDeferredStackCheck(LStackCheck* instr); | 112 void DoDeferredStackCheck(LStackCheck* instr); |
113 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 113 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
114 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 114 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
115 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 115 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
116 Label* map_check); | 116 Label* map_check); |
117 | 117 |
| 118 void DoCheckMapCommon(Register reg, Register scratch, Handle<Map> map, |
| 119 CompareMapMode mode, LEnvironment* env); |
| 120 |
118 // Parallel move support. | 121 // Parallel move support. |
119 void DoParallelMove(LParallelMove* move); | 122 void DoParallelMove(LParallelMove* move); |
120 void DoGap(LGap* instr); | 123 void DoGap(LGap* instr); |
121 | 124 |
122 // Emit frame translation commands for an environment. | 125 // Emit frame translation commands for an environment. |
123 void WriteTranslation(LEnvironment* environment, Translation* translation); | 126 void WriteTranslation(LEnvironment* environment, Translation* translation); |
124 | 127 |
125 // Declare methods that deal with the individual node types. | 128 // Declare methods that deal with the individual node types. |
126 #define DECLARE_DO(type) void Do##type(L##type* node); | 129 #define DECLARE_DO(type) void Do##type(L##type* node); |
127 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 130 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 219 |
217 void LoadHeapObject(Register result, Handle<HeapObject> object); | 220 void LoadHeapObject(Register result, Handle<HeapObject> object); |
218 | 221 |
219 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 222 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
220 SafepointMode safepoint_mode); | 223 SafepointMode safepoint_mode); |
221 | 224 |
222 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 225 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
223 Safepoint::DeoptMode mode); | 226 Safepoint::DeoptMode mode); |
224 void DeoptimizeIf(Condition cc, | 227 void DeoptimizeIf(Condition cc, |
225 LEnvironment* environment, | 228 LEnvironment* environment, |
226 Register src1, | 229 Register src1 = zero_reg, |
227 const Operand& src2); | 230 const Operand& src2 = Operand(zero_reg)); |
228 | 231 |
229 void AddToTranslation(Translation* translation, | 232 void AddToTranslation(Translation* translation, |
230 LOperand* op, | 233 LOperand* op, |
231 bool is_tagged); | 234 bool is_tagged); |
232 void PopulateDeoptimizationData(Handle<Code> code); | 235 void PopulateDeoptimizationData(Handle<Code> code); |
233 int DefineDeoptimizationLiteral(Handle<Object> literal); | 236 int DefineDeoptimizationLiteral(Handle<Object> literal); |
234 | 237 |
235 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 238 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
236 | 239 |
237 Register ToRegister(int index) const; | 240 Register ToRegister(int index) const; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 LCodeGen* codegen_; | 439 LCodeGen* codegen_; |
437 Label entry_; | 440 Label entry_; |
438 Label exit_; | 441 Label exit_; |
439 Label* external_exit_; | 442 Label* external_exit_; |
440 int instruction_index_; | 443 int instruction_index_; |
441 }; | 444 }; |
442 | 445 |
443 } } // namespace v8::internal | 446 } } // namespace v8::internal |
444 | 447 |
445 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 448 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |