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

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

Issue 399044: Merge r3285, r3313, and r3318 to branches/1.3. (Closed) Base URL: http://v8.googlecode.com/svn/branches/1.3/
Patch Set: Created 11 years, 1 month 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/heap.cc ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 477
478 void Comparison(Condition cc, 478 void Comparison(Condition cc,
479 bool strict, 479 bool strict,
480 ControlDestination* destination); 480 ControlDestination* destination);
481 481
482 // To prevent long attacker-controlled byte sequences, integer constants 482 // To prevent long attacker-controlled byte sequences, integer constants
483 // from the JavaScript source are loaded in two parts if they are larger 483 // from the JavaScript source are loaded in two parts if they are larger
484 // than 16 bits. 484 // than 16 bits.
485 static const int kMaxSmiInlinedBits = 16; 485 static const int kMaxSmiInlinedBits = 16;
486 bool IsUnsafeSmi(Handle<Object> value); 486 bool IsUnsafeSmi(Handle<Object> value);
487 // Load an integer constant x into a register target using 487 // Load an integer constant x into a register target or into the stack using
488 // at most 16 bits of user-controlled data per assembly operation. 488 // at most 16 bits of user-controlled data per assembly operation.
489 void LoadUnsafeSmi(Register target, Handle<Object> value); 489 void MoveUnsafeSmi(Register target, Handle<Object> value);
490 void StoreUnsafeSmiToLocal(int offset, Handle<Object> value);
491 void PushUnsafeSmi(Handle<Object> value);
490 492
491 void CallWithArguments(ZoneList<Expression*>* arguments, int position); 493 void CallWithArguments(ZoneList<Expression*>* arguments, int position);
492 494
493 // Use an optimized version of Function.prototype.apply that avoid 495 // Use an optimized version of Function.prototype.apply that avoid
494 // allocating the arguments object and just copies the arguments 496 // allocating the arguments object and just copies the arguments
495 // from the stack. 497 // from the stack.
496 void CallApplyLazy(Property* apply, 498 void CallApplyLazy(Property* apply,
497 Expression* receiver, 499 Expression* receiver,
498 VariableProxy* arguments, 500 VariableProxy* arguments,
499 int position); 501 int position);
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 void SetArgsReversed() { args_reversed_ = true; } 727 void SetArgsReversed() { args_reversed_ = true; }
726 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 728 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
727 bool HasArgumentsInRegisters() { return args_in_registers_; } 729 bool HasArgumentsInRegisters() { return args_in_registers_; }
728 bool HasArgumentsReversed() { return args_reversed_; } 730 bool HasArgumentsReversed() { return args_reversed_; }
729 }; 731 };
730 732
731 733
732 } } // namespace v8::internal 734 } } // namespace v8::internal
733 735
734 #endif // V8_IA32_CODEGEN_IA32_H_ 736 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698