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 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 // Expects object in rax and returns map with validated enum cache | 1313 // Expects object in rax and returns map with validated enum cache |
1314 // in rax. Assumes that any other register can be used as a scratch. | 1314 // in rax. Assumes that any other register can be used as a scratch. |
1315 void CheckEnumCache(Register null_value, | 1315 void CheckEnumCache(Register null_value, |
1316 Label* call_runtime); | 1316 Label* call_runtime); |
1317 | 1317 |
1318 // AllocationSiteInfo support. Arrays may have an associated | 1318 // AllocationSiteInfo support. Arrays may have an associated |
1319 // AllocationSiteInfo object that can be checked for in order to pretransition | 1319 // AllocationSiteInfo object that can be checked for in order to pretransition |
1320 // to another type. | 1320 // to another type. |
1321 // On entry, receiver_reg should point to the array object. | 1321 // On entry, receiver_reg should point to the array object. |
1322 // scratch_reg gets clobbered. | 1322 // scratch_reg gets clobbered. |
1323 // If allocation info is present, jump to allocation_info_present | 1323 // If allocation info is present, condition flags are set to equal |
1324 void TestJSArrayForAllocationSiteInfo(Register receiver_reg, | 1324 void TestJSArrayForAllocationSiteInfo(Register receiver_reg, |
1325 Register scratch_reg, | 1325 Register scratch_reg); |
1326 Label* allocation_info_present); | |
1327 | 1326 |
1328 private: | 1327 private: |
1329 // Order general registers are pushed by Pushad. | 1328 // Order general registers are pushed by Pushad. |
1330 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. | 1329 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. |
1331 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; | 1330 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; |
1332 static const int kNumSafepointSavedRegisters = 11; | 1331 static const int kNumSafepointSavedRegisters = 11; |
1333 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; | 1332 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; |
1334 | 1333 |
1335 bool generating_stub_; | 1334 bool generating_stub_; |
1336 bool allow_stub_calls_; | 1335 bool allow_stub_calls_; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1494 masm->popfq(); \ | 1493 masm->popfq(); \ |
1495 } \ | 1494 } \ |
1496 masm-> | 1495 masm-> |
1497 #else | 1496 #else |
1498 #define ACCESS_MASM(masm) masm-> | 1497 #define ACCESS_MASM(masm) masm-> |
1499 #endif | 1498 #endif |
1500 | 1499 |
1501 } } // namespace v8::internal | 1500 } } // namespace v8::internal |
1502 | 1501 |
1503 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1502 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |