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

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

Issue 3017025: Use static type information when creating the inlined code for comparison ope... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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 | « no previous file | src/ia32/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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // Translate the value on top of the frame into control flow to the 512 // Translate the value on top of the frame into control flow to the
513 // control destination. 513 // control destination.
514 void ToBoolean(ControlDestination* destination); 514 void ToBoolean(ControlDestination* destination);
515 515
516 // Generate code that computes a shortcutting logical operation. 516 // Generate code that computes a shortcutting logical operation.
517 void GenerateLogicalBooleanOperation(BinaryOperation* node); 517 void GenerateLogicalBooleanOperation(BinaryOperation* node);
518 518
519 void GenericBinaryOperation(BinaryOperation* expr, 519 void GenericBinaryOperation(BinaryOperation* expr,
520 OverwriteMode overwrite_mode); 520 OverwriteMode overwrite_mode);
521 521
522 // Emits code sequence that jumps to a JumpTarget if the inputs
523 // are both smis. Cannot be in MacroAssembler because it takes
524 // advantage of TypeInfo to skip unneeded checks.
525 // Allocates a temporary register, possibly spilling from the frame,
526 // if it needs to check both left and right.
527 void JumpIfBothSmiUsingTypeInfo(Register left,
528 Register right,
529 TypeInfo left_info,
530 TypeInfo right_info,
531 JumpTarget* both_smi);
532
522 // Emits code sequence that jumps to deferred code if the inputs 533 // Emits code sequence that jumps to deferred code if the inputs
523 // are not both smis. Cannot be in MacroAssembler because it takes 534 // are not both smis. Cannot be in MacroAssembler because it takes
524 // advantage of TypeInfo to skip unneeded checks. 535 // advantage of TypeInfo to skip unneeded checks.
525 void JumpIfNotBothSmiUsingTypeInfo(Register left, 536 void JumpIfNotBothSmiUsingTypeInfo(Register left,
526 Register right, 537 Register right,
527 Register scratch, 538 Register scratch,
528 TypeInfo left_info, 539 TypeInfo left_info,
529 TypeInfo right_info, 540 TypeInfo right_info,
530 DeferredCode* deferred); 541 DeferredCode* deferred);
531 542
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 void Print() { 1090 void Print() {
1080 PrintF("NumberToStringStub\n"); 1091 PrintF("NumberToStringStub\n");
1081 } 1092 }
1082 #endif 1093 #endif
1083 }; 1094 };
1084 1095
1085 1096
1086 } } // namespace v8::internal 1097 } } // namespace v8::internal
1087 1098
1088 #endif // V8_IA32_CODEGEN_IA32_H_ 1099 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698