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

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

Issue 13841003: Separate Math Lithium operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 years, 8 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/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.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 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 LOperand* right_argument, 130 LOperand* right_argument,
131 Token::Value op); 131 Token::Value op);
132 void DoDeferredNumberTagD(LNumberTagD* instr); 132 void DoDeferredNumberTagD(LNumberTagD* instr);
133 133
134 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; 134 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 };
135 void DoDeferredNumberTagI(LInstruction* instr, 135 void DoDeferredNumberTagI(LInstruction* instr,
136 LOperand* value, 136 LOperand* value,
137 IntegerSignedness signedness); 137 IntegerSignedness signedness);
138 138
139 void DoDeferredTaggedToI(LTaggedToI* instr); 139 void DoDeferredTaggedToI(LTaggedToI* instr);
140 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); 140 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr);
141 void DoDeferredStackCheck(LStackCheck* instr); 141 void DoDeferredStackCheck(LStackCheck* instr);
142 void DoDeferredRandom(LRandom* instr); 142 void DoDeferredRandom(LRandom* instr);
143 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 143 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
144 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 144 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
145 void DoDeferredAllocateObject(LAllocateObject* instr); 145 void DoDeferredAllocateObject(LAllocateObject* instr);
146 void DoDeferredAllocate(LAllocate* instr); 146 void DoDeferredAllocate(LAllocate* instr);
147 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 147 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
148 Label* map_check); 148 Label* map_check);
149 149
150 void DoCheckMapCommon(Register map_reg, Handle<Map> map, 150 void DoCheckMapCommon(Register map_reg, Handle<Map> map,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 int arguments_count); 287 int arguments_count);
288 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); 288 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code);
289 void PopulateDeoptimizationData(Handle<Code> code); 289 void PopulateDeoptimizationData(Handle<Code> code);
290 int DefineDeoptimizationLiteral(Handle<Object> literal); 290 int DefineDeoptimizationLiteral(Handle<Object> literal);
291 291
292 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); 292 void PopulateDeoptimizationLiteralsWithInlinedFunctions();
293 293
294 Register ToRegister(int index) const; 294 Register ToRegister(int index) const;
295 DwVfpRegister ToDoubleRegister(int index) const; 295 DwVfpRegister ToDoubleRegister(int index) const;
296 296
297 // Specific math operations - used from DoUnaryMathOperation. 297 void EmitIntegerMathAbs(LMathAbs* instr);
298 void EmitIntegerMathAbs(LUnaryMathOperation* instr);
299 void DoMathAbs(LUnaryMathOperation* instr);
300 void DoMathFloor(LUnaryMathOperation* instr);
301 void DoMathRound(LUnaryMathOperation* instr);
302 void DoMathSqrt(LUnaryMathOperation* instr);
303 void DoMathPowHalf(LUnaryMathOperation* instr);
304 void DoMathLog(LUnaryMathOperation* instr);
305 void DoMathTan(LUnaryMathOperation* instr);
306 void DoMathCos(LUnaryMathOperation* instr);
307 void DoMathSin(LUnaryMathOperation* instr);
308 298
309 // Support for recording safepoint and position information. 299 // Support for recording safepoint and position information.
310 void RecordSafepoint(LPointerMap* pointers, 300 void RecordSafepoint(LPointerMap* pointers,
311 Safepoint::Kind kind, 301 Safepoint::Kind kind,
312 int arguments, 302 int arguments,
313 Safepoint::DeoptMode mode); 303 Safepoint::DeoptMode mode);
314 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 304 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
315 void RecordSafepoint(Safepoint::DeoptMode mode); 305 void RecordSafepoint(Safepoint::DeoptMode mode);
316 void RecordSafepointWithRegisters(LPointerMap* pointers, 306 void RecordSafepointWithRegisters(LPointerMap* pointers,
317 int arguments, 307 int arguments,
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 LCodeGen* codegen_; 497 LCodeGen* codegen_;
508 Label entry_; 498 Label entry_;
509 Label exit_; 499 Label exit_;
510 Label* external_exit_; 500 Label* external_exit_;
511 int instruction_index_; 501 int instruction_index_;
512 }; 502 };
513 503
514 } } // namespace v8::internal 504 } } // namespace v8::internal
515 505
516 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 506 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698