| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1248 int num_arguments, | 1259 int num_arguments, |
| 1249 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1260 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 1250 | 1261 |
| 1251 // Call a runtime function and save the value of XMM registers. | 1262 // Call a runtime function and save the value of XMM registers. |
| 1252 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 1263 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 1253 const Runtime::Function* function = Runtime::FunctionForId(id); | 1264 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 1254 CallRuntime(function, function->nargs, kSaveFPRegs); | 1265 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 1255 } | 1266 } |
| 1256 | 1267 |
| 1257 // Convenience function: Same as above, but takes the fid instead. | 1268 // Convenience function: Same as above, but takes the fid instead. |
| 1258 void CallRuntime(Runtime::FunctionId id, int num_arguments) { | 1269 void CallRuntime(Runtime::FunctionId id, |
| 1259 CallRuntime(Runtime::FunctionForId(id), num_arguments); | 1270 int num_arguments, |
| 1271 SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
| 1272 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
| 1260 } | 1273 } |
| 1261 | 1274 |
| 1262 // Convenience function: call an external reference. | 1275 // Convenience function: call an external reference. |
| 1263 void CallExternalReference(const ExternalReference& ext, | 1276 void CallExternalReference(const ExternalReference& ext, |
| 1264 int num_arguments); | 1277 int num_arguments); |
| 1265 | 1278 |
| 1266 // Tail call of a runtime routine (jump). | 1279 // Tail call of a runtime routine (jump). |
| 1267 // Like JumpToExternalReference, but also takes care of passing the number | 1280 // Like JumpToExternalReference, but also takes care of passing the number |
| 1268 // of parameters. | 1281 // of parameters. |
| 1269 void TailCallExternalReference(const ExternalReference& ext, | 1282 void TailCallExternalReference(const ExternalReference& ext, |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1599 masm->popfq(); \ | 1612 masm->popfq(); \ |
| 1600 } \ | 1613 } \ |
| 1601 masm-> | 1614 masm-> |
| 1602 #else | 1615 #else |
| 1603 #define ACCESS_MASM(masm) masm-> | 1616 #define ACCESS_MASM(masm) masm-> |
| 1604 #endif | 1617 #endif |
| 1605 | 1618 |
| 1606 } } // namespace v8::internal | 1619 } } // namespace v8::internal |
| 1607 | 1620 |
| 1608 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1621 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |