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

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

Issue 7348008: Merge up to 8597 to experimental/gc from the bleeding edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 5 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool GenerateCode(); 87 bool GenerateCode();
88 88
89 // Finish the code by setting stack height, safepoint, and bailout 89 // Finish the code by setting stack height, safepoint, and bailout
90 // information on it. 90 // information on it.
91 void FinishCode(Handle<Code> code); 91 void FinishCode(Handle<Code> code);
92 92
93 // Deferred code support. 93 // Deferred code support.
94 void DoDeferredNumberTagD(LNumberTagD* instr); 94 void DoDeferredNumberTagD(LNumberTagD* instr);
95 void DoDeferredTaggedToI(LTaggedToI* instr); 95 void DoDeferredTaggedToI(LTaggedToI* instr);
96 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); 96 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr);
97 void DoDeferredStackCheck(LGoto* instr); 97 void DoDeferredStackCheck(LStackCheck* instr);
98 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 98 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
99 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 99 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
100 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 100 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
101 Label* map_check); 101 Label* map_check);
102 102
103 // Parallel move support. 103 // Parallel move support.
104 void DoParallelMove(LParallelMove* move); 104 void DoParallelMove(LParallelMove* move);
105 void DoGap(LGap* instr); 105 void DoGap(LGap* instr);
106 106
107 // Emit frame translation commands for an environment. 107 // Emit frame translation commands for an environment.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void AddToTranslation(Translation* translation, 208 void AddToTranslation(Translation* translation,
209 LOperand* op, 209 LOperand* op,
210 bool is_tagged); 210 bool is_tagged);
211 void PopulateDeoptimizationData(Handle<Code> code); 211 void PopulateDeoptimizationData(Handle<Code> code);
212 int DefineDeoptimizationLiteral(Handle<Object> literal); 212 int DefineDeoptimizationLiteral(Handle<Object> literal);
213 213
214 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); 214 void PopulateDeoptimizationLiteralsWithInlinedFunctions();
215 215
216 Register ToRegister(int index) const; 216 Register ToRegister(int index) const;
217 XMMRegister ToDoubleRegister(int index) const; 217 XMMRegister ToDoubleRegister(int index) const;
218 Operand BuildExternalArrayOperand(LOperand* external_pointer, 218 Operand BuildExternalArrayOperand(
219 LOperand* key, 219 LOperand* external_pointer,
220 ExternalArrayType array_type); 220 LOperand* key,
221 JSObject::ElementsKind elements_kind);
221 222
222 // Specific math operations - used from DoUnaryMathOperation. 223 // Specific math operations - used from DoUnaryMathOperation.
223 void EmitIntegerMathAbs(LUnaryMathOperation* instr); 224 void EmitIntegerMathAbs(LUnaryMathOperation* instr);
224 void DoMathAbs(LUnaryMathOperation* instr); 225 void DoMathAbs(LUnaryMathOperation* instr);
225 void DoMathFloor(LUnaryMathOperation* instr); 226 void DoMathFloor(LUnaryMathOperation* instr);
226 void DoMathRound(LUnaryMathOperation* instr); 227 void DoMathRound(LUnaryMathOperation* instr);
227 void DoMathSqrt(LUnaryMathOperation* instr); 228 void DoMathSqrt(LUnaryMathOperation* instr);
228 void DoMathPowHalf(LUnaryMathOperation* instr); 229 void DoMathPowHalf(LUnaryMathOperation* instr);
229 void DoMathLog(LUnaryMathOperation* instr); 230 void DoMathLog(LUnaryMathOperation* instr);
230 void DoMathCos(LUnaryMathOperation* instr); 231 void DoMathCos(LUnaryMathOperation* instr);
231 void DoMathSin(LUnaryMathOperation* instr); 232 void DoMathSin(LUnaryMathOperation* instr);
232 233
233 // Support for recording safepoint and position information. 234 // Support for recording safepoint and position information.
234 void RecordSafepoint(LPointerMap* pointers, 235 void RecordSafepoint(LPointerMap* pointers,
235 Safepoint::Kind kind, 236 Safepoint::Kind kind,
236 int arguments, 237 int arguments,
237 int deoptimization_index); 238 int deoptimization_index);
238 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); 239 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index);
239 void RecordSafepoint(int deoptimization_index); 240 void RecordSafepoint(int deoptimization_index);
240 void RecordSafepointWithRegisters(LPointerMap* pointers, 241 void RecordSafepointWithRegisters(LPointerMap* pointers,
241 int arguments, 242 int arguments,
242 int deoptimization_index); 243 int deoptimization_index);
243 void RecordPosition(int position); 244 void RecordPosition(int position);
244 int LastSafepointEnd() { 245 int LastSafepointEnd() {
245 return static_cast<int>(safepoints_.GetPcAfterGap()); 246 return static_cast<int>(safepoints_.GetPcAfterGap());
246 } 247 }
247 248
248 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 249 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
249 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); 250 void EmitGoto(int block);
250 void EmitBranch(int left_block, int right_block, Condition cc); 251 void EmitBranch(int left_block, int right_block, Condition cc);
251 void EmitCmpI(LOperand* left, LOperand* right); 252 void EmitCmpI(LOperand* left, LOperand* right);
252 void EmitNumberUntagD(Register input, XMMRegister result, LEnvironment* env); 253 void EmitNumberUntagD(Register input,
254 XMMRegister result,
255 bool deoptimize_on_undefined,
256 LEnvironment* env);
253 257
254 // Emits optimized code for typeof x == "y". Modifies input register. 258 // Emits optimized code for typeof x == "y". Modifies input register.
255 // Returns the condition on which a final split to 259 // Returns the condition on which a final split to
256 // true and false label should be made, to optimize fallthrough. 260 // true and false label should be made, to optimize fallthrough.
257 Condition EmitTypeofIs(Label* true_label, Label* false_label, 261 Condition EmitTypeofIs(Label* true_label, Label* false_label,
258 Register input, Handle<String> type_name); 262 Register input, Handle<String> type_name);
259 263
260 // Emits optimized code for %_IsObject(x). Preserves input register. 264 // Emits optimized code for %_IsObject(x). Preserves input register.
261 // Returns the condition on which a final split to 265 // Returns the condition on which a final split to
262 // true and false label should be made, to optimize fallthrough. 266 // true and false label should be made, to optimize fallthrough.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 private: 362 private:
359 LCodeGen* codegen_; 363 LCodeGen* codegen_;
360 Label entry_; 364 Label entry_;
361 Label exit_; 365 Label exit_;
362 Label* external_exit_; 366 Label* external_exit_;
363 }; 367 };
364 368
365 } } // namespace v8::internal 369 } } // namespace v8::internal
366 370
367 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 371 #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