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

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

Issue 6902112: Avoid using a register for constant external array indices. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add arch-independent ExternalArrayTypeToShiftSize() function Created 9 years, 7 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/lithium.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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 void AddToTranslation(Translation* translation, 207 void AddToTranslation(Translation* translation,
208 LOperand* op, 208 LOperand* op,
209 bool is_tagged); 209 bool is_tagged);
210 void PopulateDeoptimizationData(Handle<Code> code); 210 void PopulateDeoptimizationData(Handle<Code> code);
211 int DefineDeoptimizationLiteral(Handle<Object> literal); 211 int DefineDeoptimizationLiteral(Handle<Object> literal);
212 212
213 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); 213 void PopulateDeoptimizationLiteralsWithInlinedFunctions();
214 214
215 Register ToRegister(int index) const; 215 Register ToRegister(int index) const;
216 XMMRegister ToDoubleRegister(int index) const; 216 XMMRegister ToDoubleRegister(int index) const;
217 Operand BuildExternalArrayOperand(LOperand* external_pointer,
218 LOperand* key,
219 ExternalArrayType array_type);
217 220
218 // Specific math operations - used from DoUnaryMathOperation. 221 // Specific math operations - used from DoUnaryMathOperation.
219 void EmitIntegerMathAbs(LUnaryMathOperation* instr); 222 void EmitIntegerMathAbs(LUnaryMathOperation* instr);
220 void DoMathAbs(LUnaryMathOperation* instr); 223 void DoMathAbs(LUnaryMathOperation* instr);
221 void DoMathFloor(LUnaryMathOperation* instr); 224 void DoMathFloor(LUnaryMathOperation* instr);
222 void DoMathRound(LUnaryMathOperation* instr); 225 void DoMathRound(LUnaryMathOperation* instr);
223 void DoMathSqrt(LUnaryMathOperation* instr); 226 void DoMathSqrt(LUnaryMathOperation* instr);
224 void DoMathPowHalf(LUnaryMathOperation* instr); 227 void DoMathPowHalf(LUnaryMathOperation* instr);
225 void DoMathLog(LUnaryMathOperation* instr); 228 void DoMathLog(LUnaryMathOperation* instr);
226 void DoMathCos(LUnaryMathOperation* instr); 229 void DoMathCos(LUnaryMathOperation* instr);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 private: 357 private:
355 LCodeGen* codegen_; 358 LCodeGen* codegen_;
356 Label entry_; 359 Label entry_;
357 Label exit_; 360 Label exit_;
358 Label* external_exit_; 361 Label* external_exit_;
359 }; 362 };
360 363
361 } } // namespace v8::internal 364 } } // namespace v8::internal
362 365
363 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 366 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/lithium.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698