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

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

Issue 7608020: Use immediates when possible for HBoundsCheck and HLoadKeyedFastElement (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: refactored as suggested Created 9 years, 4 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/ia32/lithium-ia32.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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 BuildFastArrayOperand( 218 Operand BuildFastArrayOperand(
219 LOperand* external_pointer, 219 LOperand* elements_pointer,
220 LOperand* key, 220 LOperand* key,
221 JSObject::ElementsKind elements_kind, 221 JSObject::ElementsKind elements_kind,
222 uint32_t offset); 222 uint32_t offset);
223 223
224 // Specific math operations - used from DoUnaryMathOperation. 224 // Specific math operations - used from DoUnaryMathOperation.
225 void EmitIntegerMathAbs(LUnaryMathOperation* instr); 225 void EmitIntegerMathAbs(LUnaryMathOperation* instr);
226 void DoMathAbs(LUnaryMathOperation* instr); 226 void DoMathAbs(LUnaryMathOperation* instr);
227 void DoMathFloor(LUnaryMathOperation* instr); 227 void DoMathFloor(LUnaryMathOperation* instr);
228 void DoMathRound(LUnaryMathOperation* instr); 228 void DoMathRound(LUnaryMathOperation* instr);
229 void DoMathSqrt(LUnaryMathOperation* instr); 229 void DoMathSqrt(LUnaryMathOperation* instr);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 private: 363 private:
364 LCodeGen* codegen_; 364 LCodeGen* codegen_;
365 Label entry_; 365 Label entry_;
366 Label exit_; 366 Label exit_;
367 Label* external_exit_; 367 Label* external_exit_;
368 }; 368 };
369 369
370 } } // namespace v8::internal 370 } } // namespace v8::internal
371 371
372 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 372 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698