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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 72813004: Fixed crashes exposed though fuzzing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits Created 7 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/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 Label::Distance near_jump = Label::kFar); 785 Label::Distance near_jump = Label::kFar);
786 786
787 void JumpIfBothInstanceTypesAreNotSequentialAscii( 787 void JumpIfBothInstanceTypesAreNotSequentialAscii(
788 Register first_object_instance_type, 788 Register first_object_instance_type,
789 Register second_object_instance_type, 789 Register second_object_instance_type,
790 Register scratch1, 790 Register scratch1,
791 Register scratch2, 791 Register scratch2,
792 Label* on_fail, 792 Label* on_fail,
793 Label::Distance near_jump = Label::kFar); 793 Label::Distance near_jump = Label::kFar);
794 794
795 void EmitSeqStringSetCharCheck(Register string,
796 Register index,
797 Register value,
798 uint32_t encoding_mask);
799
795 // Checks if the given register or operand is a unique name 800 // Checks if the given register or operand is a unique name
796 void JumpIfNotUniqueName(Register reg, Label* not_unique_name, 801 void JumpIfNotUniqueName(Register reg, Label* not_unique_name,
797 Label::Distance distance = Label::kFar); 802 Label::Distance distance = Label::kFar);
798 void JumpIfNotUniqueName(Operand operand, Label* not_unique_name, 803 void JumpIfNotUniqueName(Operand operand, Label* not_unique_name,
799 Label::Distance distance = Label::kFar); 804 Label::Distance distance = Label::kFar);
800 805
801 // --------------------------------------------------------------------------- 806 // ---------------------------------------------------------------------------
802 // Macro instructions. 807 // Macro instructions.
803 808
804 // Load/store with specific representation. 809 // Load/store with specific representation.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 // Unlink the stack handler on top of the stack from the try handler chain. 1056 // Unlink the stack handler on top of the stack from the try handler chain.
1052 void PopTryHandler(); 1057 void PopTryHandler();
1053 1058
1054 // Activate the top handler in the try hander chain and pass the 1059 // Activate the top handler in the try hander chain and pass the
1055 // thrown value. 1060 // thrown value.
1056 void Throw(Register value); 1061 void Throw(Register value);
1057 1062
1058 // Propagate an uncatchable exception out of the current JS stack. 1063 // Propagate an uncatchable exception out of the current JS stack.
1059 void ThrowUncatchable(Register value); 1064 void ThrowUncatchable(Register value);
1060 1065
1066 // Throw a message string as an exception.
1067 void Throw(BailoutReason reason);
1068
1069 // Throw a message string as an exception if a condition is not true.
1070 void ThrowIf(Condition cc, BailoutReason reason);
1071
1061 // --------------------------------------------------------------------------- 1072 // ---------------------------------------------------------------------------
1062 // Inline caching support 1073 // Inline caching support
1063 1074
1064 // Generate code for checking access rights - used for security checks 1075 // Generate code for checking access rights - used for security checks
1065 // on access to global objects across environments. The holder register 1076 // on access to global objects across environments. The holder register
1066 // is left untouched, but the scratch register and kScratchRegister, 1077 // is left untouched, but the scratch register and kScratchRegister,
1067 // which must be different, are clobbered. 1078 // which must be different, are clobbered.
1068 void CheckAccessGlobalProxy(Register holder_reg, 1079 void CheckAccessGlobalProxy(Register holder_reg,
1069 Register scratch, 1080 Register scratch,
1070 Label* miss); 1081 Label* miss);
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 masm->popfq(); \ 1610 masm->popfq(); \
1600 } \ 1611 } \
1601 masm-> 1612 masm->
1602 #else 1613 #else
1603 #define ACCESS_MASM(masm) masm-> 1614 #define ACCESS_MASM(masm) masm->
1604 #endif 1615 #endif
1605 1616
1606 } } // namespace v8::internal 1617 } } // namespace v8::internal
1607 1618
1608 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1619 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698