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

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

Issue 7134067: Merge r8237 to V8 3.2 branch. Fix bug v8:1434, optimized compare of undefined can fail. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.2/
Patch Set: '' Created 9 years, 6 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/hydrogen-instructions.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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void RecordSafepoint(int deoptimization_index); 249 void RecordSafepoint(int deoptimization_index);
250 void RecordSafepointWithRegisters(LPointerMap* pointers, 250 void RecordSafepointWithRegisters(LPointerMap* pointers,
251 int arguments, 251 int arguments,
252 int deoptimization_index); 252 int deoptimization_index);
253 void RecordPosition(int position); 253 void RecordPosition(int position);
254 254
255 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 255 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
256 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); 256 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL);
257 void EmitBranch(int left_block, int right_block, Condition cc); 257 void EmitBranch(int left_block, int right_block, Condition cc);
258 void EmitCmpI(LOperand* left, LOperand* right); 258 void EmitCmpI(LOperand* left, LOperand* right);
259 void EmitNumberUntagD(Register input, XMMRegister result, LEnvironment* env); 259 void EmitNumberUntagD(Register input,
260 XMMRegister result,
261 bool deoptimize_on_undefined,
262 LEnvironment* env);
260 263
261 // Emits optimized code for typeof x == "y". Modifies input register. 264 // Emits optimized code for typeof x == "y". Modifies input register.
262 // Returns the condition on which a final split to 265 // Returns the condition on which a final split to
263 // true and false label should be made, to optimize fallthrough. 266 // true and false label should be made, to optimize fallthrough.
264 Condition EmitTypeofIs(Label* true_label, Label* false_label, 267 Condition EmitTypeofIs(Label* true_label, Label* false_label,
265 Register input, Handle<String> type_name); 268 Register input, Handle<String> type_name);
266 269
267 // Emits optimized code for %_IsObject(x). Preserves input register. 270 // Emits optimized code for %_IsObject(x). Preserves input register.
268 // Returns the condition on which a final split to 271 // Returns the condition on which a final split to
269 // true and false label should be made, to optimize fallthrough. 272 // true and false label should be made, to optimize fallthrough.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 private: 364 private:
362 LCodeGen* codegen_; 365 LCodeGen* codegen_;
363 Label entry_; 366 Label entry_;
364 Label exit_; 367 Label exit_;
365 Label* external_exit_; 368 Label* external_exit_;
366 }; 369 };
367 370
368 } } // namespace v8::internal 371 } } // namespace v8::internal
369 372
370 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 373 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698