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

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

Issue 7489045: ARM: Fast path for compare against constant. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 3 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
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 LOperand* op, 215 LOperand* op,
216 bool is_tagged); 216 bool is_tagged);
217 void PopulateDeoptimizationData(Handle<Code> code); 217 void PopulateDeoptimizationData(Handle<Code> code);
218 int DefineDeoptimizationLiteral(Handle<Object> literal); 218 int DefineDeoptimizationLiteral(Handle<Object> literal);
219 219
220 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); 220 void PopulateDeoptimizationLiteralsWithInlinedFunctions();
221 221
222 Register ToRegister(int index) const; 222 Register ToRegister(int index) const;
223 XMMRegister ToDoubleRegister(int index) const; 223 XMMRegister ToDoubleRegister(int index) const;
224 int ToInteger32(LConstantOperand* op) const; 224 int ToInteger32(LConstantOperand* op) const;
225 double ToDouble(LConstantOperand* op) const;
225 Operand BuildFastArrayOperand(LOperand* elements_pointer, 226 Operand BuildFastArrayOperand(LOperand* elements_pointer,
226 LOperand* key, 227 LOperand* key,
227 ElementsKind elements_kind, 228 ElementsKind elements_kind,
228 uint32_t offset); 229 uint32_t offset);
229 230
230 // Specific math operations - used from DoUnaryMathOperation. 231 // Specific math operations - used from DoUnaryMathOperation.
231 void EmitIntegerMathAbs(LUnaryMathOperation* instr); 232 void EmitIntegerMathAbs(LUnaryMathOperation* instr);
232 void DoMathAbs(LUnaryMathOperation* instr); 233 void DoMathAbs(LUnaryMathOperation* instr);
233 void DoMathFloor(LUnaryMathOperation* instr); 234 void DoMathFloor(LUnaryMathOperation* instr);
234 void DoMathRound(LUnaryMathOperation* instr); 235 void DoMathRound(LUnaryMathOperation* instr);
(...skipping 14 matching lines...) Expand all
249 int arguments, 250 int arguments,
250 int deoptimization_index); 251 int deoptimization_index);
251 void RecordPosition(int position); 252 void RecordPosition(int position);
252 int LastSafepointEnd() { 253 int LastSafepointEnd() {
253 return static_cast<int>(safepoints_.GetPcAfterGap()); 254 return static_cast<int>(safepoints_.GetPcAfterGap());
254 } 255 }
255 256
256 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 257 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
257 void EmitGoto(int block); 258 void EmitGoto(int block);
258 void EmitBranch(int left_block, int right_block, Condition cc); 259 void EmitBranch(int left_block, int right_block, Condition cc);
259 void EmitCmpI(LOperand* left, LOperand* right);
260 void EmitNumberUntagD(Register input, 260 void EmitNumberUntagD(Register input,
261 XMMRegister result, 261 XMMRegister result,
262 bool deoptimize_on_undefined, 262 bool deoptimize_on_undefined,
263 LEnvironment* env); 263 LEnvironment* env);
264 264
265 // Emits optimized code for typeof x == "y". Modifies input register. 265 // Emits optimized code for typeof x == "y". Modifies input register.
266 // Returns the condition on which a final split to 266 // Returns the condition on which a final split to
267 // true and false label should be made, to optimize fallthrough. 267 // true and false label should be made, to optimize fallthrough.
268 Condition EmitTypeofIs(Label* true_label, Label* false_label, 268 Condition EmitTypeofIs(Label* true_label, Label* false_label,
269 Register input, Handle<String> type_name); 269 Register input, Handle<String> type_name);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 private: 364 private:
365 LCodeGen* codegen_; 365 LCodeGen* codegen_;
366 Label entry_; 366 Label entry_;
367 Label exit_; 367 Label exit_;
368 Label* external_exit_; 368 Label* external_exit_;
369 }; 369 };
370 370
371 } } // namespace v8::internal 371 } } // namespace v8::internal
372 372
373 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 373 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698