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

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

Issue 12208013: Separated smi check from HBoundsCheck. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed platform specific code. Created 7 years, 10 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/mips/lithium-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 void EmitGoto(int block); 284 void EmitGoto(int block);
285 void EmitBranch(int left_block, int right_block, Condition cc); 285 void EmitBranch(int left_block, int right_block, Condition cc);
286 void EmitNumberUntagD( 286 void EmitNumberUntagD(
287 Register input, 287 Register input,
288 XMMRegister result, 288 XMMRegister result,
289 bool deoptimize_on_undefined, 289 bool deoptimize_on_undefined,
290 bool deoptimize_on_minus_zero, 290 bool deoptimize_on_minus_zero,
291 LEnvironment* env, 291 LEnvironment* env,
292 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); 292 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED);
293 293
294
295 void DeoptIfTaggedButNotSmi(LEnvironment* environment,
296 HValue* value,
297 LOperand* operand);
298
299 // Emits optimized code for typeof x == "y". Modifies input register. 294 // Emits optimized code for typeof x == "y". Modifies input register.
300 // Returns the condition on which a final split to 295 // Returns the condition on which a final split to
301 // true and false label should be made, to optimize fallthrough. 296 // true and false label should be made, to optimize fallthrough.
302 Condition EmitTypeofIs(Label* true_label, 297 Condition EmitTypeofIs(Label* true_label,
303 Label* false_label, 298 Label* false_label,
304 Register input, 299 Register input,
305 Handle<String> type_name); 300 Handle<String> type_name);
306 301
307 // Emits optimized code for %_IsObject(x). Preserves input register. 302 // Emits optimized code for %_IsObject(x). Preserves input register.
308 // Returns the condition on which a final split to 303 // Returns the condition on which a final split to
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 LCodeGen* codegen_; 437 LCodeGen* codegen_;
443 Label entry_; 438 Label entry_;
444 Label exit_; 439 Label exit_;
445 Label* external_exit_; 440 Label* external_exit_;
446 int instruction_index_; 441 int instruction_index_;
447 }; 442 };
448 443
449 } } // namespace v8::internal 444 } } // namespace v8::internal
450 445
451 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 446 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698