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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 LOperand* op, 222 LOperand* op,
223 bool is_tagged); 223 bool is_tagged);
224 void PopulateDeoptimizationData(Handle<Code> code); 224 void PopulateDeoptimizationData(Handle<Code> code);
225 int DefineDeoptimizationLiteral(Handle<Object> literal); 225 int DefineDeoptimizationLiteral(Handle<Object> literal);
226 226
227 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); 227 void PopulateDeoptimizationLiteralsWithInlinedFunctions();
228 228
229 Register ToRegister(int index) const; 229 Register ToRegister(int index) const;
230 XMMRegister ToDoubleRegister(int index) const; 230 XMMRegister ToDoubleRegister(int index) const;
231 int ToInteger32(LConstantOperand* op) const; 231 int ToInteger32(LConstantOperand* op) const;
232 Operand BuildExternalArrayOperand(LOperand* external_pointer,
233 LOperand* key,
234 ExternalArrayType array_type);
232 235
233 // Specific math operations - used from DoUnaryMathOperation. 236 // Specific math operations - used from DoUnaryMathOperation.
234 void EmitIntegerMathAbs(LUnaryMathOperation* instr); 237 void EmitIntegerMathAbs(LUnaryMathOperation* instr);
235 void DoMathAbs(LUnaryMathOperation* instr); 238 void DoMathAbs(LUnaryMathOperation* instr);
236 void DoMathFloor(LUnaryMathOperation* instr); 239 void DoMathFloor(LUnaryMathOperation* instr);
237 void DoMathRound(LUnaryMathOperation* instr); 240 void DoMathRound(LUnaryMathOperation* instr);
238 void DoMathSqrt(LUnaryMathOperation* instr); 241 void DoMathSqrt(LUnaryMathOperation* instr);
239 void DoMathPowHalf(LUnaryMathOperation* instr); 242 void DoMathPowHalf(LUnaryMathOperation* instr);
240 void DoMathLog(LUnaryMathOperation* instr); 243 void DoMathLog(LUnaryMathOperation* instr);
241 void DoMathCos(LUnaryMathOperation* instr); 244 void DoMathCos(LUnaryMathOperation* instr);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 private: 365 private:
363 LCodeGen* codegen_; 366 LCodeGen* codegen_;
364 Label entry_; 367 Label entry_;
365 Label exit_; 368 Label exit_;
366 Label* external_exit_; 369 Label* external_exit_;
367 }; 370 };
368 371
369 } } // namespace v8::internal 372 } } // namespace v8::internal
370 373
371 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 374 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698