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

Side by Side Diff: src/x64/lithium-codegen-x64.h

Issue 6606006: [Isolates] Merge 6500:6700 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/lithium-codegen-x64.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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 scope_(chunk->graph()->info()->scope()), 58 scope_(chunk->graph()->info()->scope()),
59 status_(UNUSED), 59 status_(UNUSED),
60 deferred_(8), 60 deferred_(8),
61 osr_pc_offset_(-1), 61 osr_pc_offset_(-1),
62 resolver_(this) { 62 resolver_(this) {
63 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 63 PopulateDeoptimizationLiteralsWithInlinedFunctions();
64 } 64 }
65 65
66 // Simple accessors. 66 // Simple accessors.
67 MacroAssembler* masm() const { return masm_; } 67 MacroAssembler* masm() const { return masm_; }
68 Isolate* isolate() const { return info_->isolate(); }
68 69
69 // Support for converting LOperands to assembler types. 70 // Support for converting LOperands to assembler types.
70 Register ToRegister(LOperand* op) const; 71 Register ToRegister(LOperand* op) const;
71 XMMRegister ToDoubleRegister(LOperand* op) const; 72 XMMRegister ToDoubleRegister(LOperand* op) const;
72 bool IsInteger32Constant(LConstantOperand* op) const; 73 bool IsInteger32Constant(LConstantOperand* op) const;
73 int ToInteger32(LConstantOperand* op) const; 74 int ToInteger32(LConstantOperand* op) const;
74 bool IsTaggedConstant(LConstantOperand* op) const; 75 bool IsTaggedConstant(LConstantOperand* op) const;
75 Handle<Object> ToHandle(LConstantOperand* op) const; 76 Handle<Object> ToHandle(LConstantOperand* op) const;
76 Operand ToOperand(LOperand* op) const; 77 Operand ToOperand(LOperand* op) const;
77 78
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void DoMathAbs(LUnaryMathOperation* instr); 186 void DoMathAbs(LUnaryMathOperation* instr);
186 void DoMathFloor(LUnaryMathOperation* instr); 187 void DoMathFloor(LUnaryMathOperation* instr);
187 void DoMathRound(LUnaryMathOperation* instr); 188 void DoMathRound(LUnaryMathOperation* instr);
188 void DoMathSqrt(LUnaryMathOperation* instr); 189 void DoMathSqrt(LUnaryMathOperation* instr);
189 void DoMathPowHalf(LUnaryMathOperation* instr); 190 void DoMathPowHalf(LUnaryMathOperation* instr);
190 void DoMathLog(LUnaryMathOperation* instr); 191 void DoMathLog(LUnaryMathOperation* instr);
191 void DoMathCos(LUnaryMathOperation* instr); 192 void DoMathCos(LUnaryMathOperation* instr);
192 void DoMathSin(LUnaryMathOperation* instr); 193 void DoMathSin(LUnaryMathOperation* instr);
193 194
194 // Support for recording safepoint and position information. 195 // Support for recording safepoint and position information.
196 void RecordSafepoint(LPointerMap* pointers,
197 Safepoint::Kind kind,
198 int arguments,
199 int deoptimization_index);
195 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); 200 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index);
196 void RecordSafepointWithRegisters(LPointerMap* pointers, 201 void RecordSafepointWithRegisters(LPointerMap* pointers,
197 int arguments, 202 int arguments,
198 int deoptimization_index); 203 int deoptimization_index);
199 void RecordPosition(int position); 204 void RecordPosition(int position);
200 205
201 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 206 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
202 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); 207 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL);
203 void EmitBranch(int left_block, int right_block, Condition cc); 208 void EmitBranch(int left_block, int right_block, Condition cc);
204 void EmitCmpI(LOperand* left, LOperand* right); 209 void EmitCmpI(LOperand* left, LOperand* right);
205 void EmitNumberUntagD(Register input, XMMRegister result, LEnvironment* env); 210 void EmitNumberUntagD(Register input, XMMRegister result, LEnvironment* env);
206 211
207 // Emits optimized code for typeof x == "y". Modifies input register. 212 // Emits optimized code for typeof x == "y". Modifies input register.
208 // Returns the condition on which a final split to 213 // Returns the condition on which a final split to
209 // true and false label should be made, to optimize fallthrough. 214 // true and false label should be made, to optimize fallthrough.
210 Condition EmitTypeofIs(Label* true_label, Label* false_label, 215 Condition EmitTypeofIs(Label* true_label, Label* false_label,
211 Register input, Handle<String> type_name); 216 Register input, Handle<String> type_name);
212 217
213 // Emits optimized code for %_IsObject(x). Preserves input register. 218 // Emits optimized code for %_IsObject(x). Preserves input register.
214 // Returns the condition on which a final split to 219 // Returns the condition on which a final split to
215 // true and false label should be made, to optimize fallthrough. 220 // true and false label should be made, to optimize fallthrough.
216 Condition EmitIsObject(Register input, 221 Condition EmitIsObject(Register input,
217 Label* is_not_object, 222 Label* is_not_object,
218 Label* is_object); 223 Label* is_object);
219 224
225 // Emits optimized code for %_IsConstructCall().
226 // Caller should branch on equal condition.
227 void EmitIsConstructCall(Register temp);
228
220 LChunk* const chunk_; 229 LChunk* const chunk_;
221 MacroAssembler* const masm_; 230 MacroAssembler* const masm_;
222 CompilationInfo* const info_; 231 CompilationInfo* const info_;
223 232
224 int current_block_; 233 int current_block_;
225 int current_instruction_; 234 int current_instruction_;
226 const ZoneList<LInstruction*>* instructions_; 235 const ZoneList<LInstruction*>* instructions_;
227 ZoneList<LEnvironment*> deoptimizations_; 236 ZoneList<LEnvironment*> deoptimizations_;
228 ZoneList<Handle<Object> > deoptimization_literals_; 237 ZoneList<Handle<Object> > deoptimization_literals_;
229 int inlined_function_count_; 238 int inlined_function_count_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 private: 277 private:
269 LCodeGen* codegen_; 278 LCodeGen* codegen_;
270 Label entry_; 279 Label entry_;
271 Label exit_; 280 Label exit_;
272 Label* external_exit_; 281 Label* external_exit_;
273 }; 282 };
274 283
275 } } // namespace v8::internal 284 } } // namespace v8::internal
276 285
277 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 286 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698