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

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

Issue 1225004: Merge r4254 to trunk. (Closed)
Patch Set: Created 10 years, 9 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
« no previous file with comments | « src/codegen.h ('k') | 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 521
522 // Emit code to perform a binary operation on two untagged int32 values. 522 // Emit code to perform a binary operation on two untagged int32 values.
523 // The values are on top of the frame, and the result is pushed on the frame. 523 // The values are on top of the frame, and the result is pushed on the frame.
524 void Int32BinaryOperation(BinaryOperation* node); 524 void Int32BinaryOperation(BinaryOperation* node);
525 525
526 526
527 void Comparison(AstNode* node, 527 void Comparison(AstNode* node,
528 Condition cc, 528 Condition cc,
529 bool strict, 529 bool strict,
530 ControlDestination* destination); 530 ControlDestination* destination);
531 void GenerateInlineNumberComparison(Result* left_side,
532 Result* right_side,
533 Condition cc,
534 ControlDestination* dest);
535 531
536 // To prevent long attacker-controlled byte sequences, integer constants 532 // To prevent long attacker-controlled byte sequences, integer constants
537 // from the JavaScript source are loaded in two parts if they are larger 533 // from the JavaScript source are loaded in two parts if they are larger
538 // than 17 bits. 534 // than 17 bits.
539 static const int kMaxSmiInlinedBits = 17; 535 static const int kMaxSmiInlinedBits = 17;
540 bool IsUnsafeSmi(Handle<Object> value); 536 bool IsUnsafeSmi(Handle<Object> value);
541 // Load an integer constant x into a register target or into the stack using 537 // Load an integer constant x into a register target or into the stack using
542 // at most 16 bits of user-controlled data per assembly operation. 538 // at most 16 bits of user-controlled data per assembly operation.
543 void MoveUnsafeSmi(Register target, Handle<Object> value); 539 void MoveUnsafeSmi(Register target, Handle<Object> value);
544 void StoreUnsafeSmiToLocal(int offset, Handle<Object> value); 540 void StoreUnsafeSmiToLocal(int offset, Handle<Object> value);
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 return ObjectBits::encode(object_.code()) | 1046 return ObjectBits::encode(object_.code()) |
1051 AddressBits::encode(addr_.code()) | 1047 AddressBits::encode(addr_.code()) |
1052 ScratchBits::encode(scratch_.code()); 1048 ScratchBits::encode(scratch_.code());
1053 } 1049 }
1054 }; 1050 };
1055 1051
1056 1052
1057 } } // namespace v8::internal 1053 } } // namespace v8::internal
1058 1054
1059 #endif // V8_IA32_CODEGEN_IA32_H_ 1055 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698