| 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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 inline bool AllowThisStubCall(CodeStub* stub); | 1288 inline bool AllowThisStubCall(CodeStub* stub); |
| 1289 | 1289 |
| 1290 static int SafepointRegisterStackIndex(Register reg) { | 1290 static int SafepointRegisterStackIndex(Register reg) { |
| 1291 return SafepointRegisterStackIndex(reg.code()); | 1291 return SafepointRegisterStackIndex(reg.code()); |
| 1292 } | 1292 } |
| 1293 | 1293 |
| 1294 // Activation support. | 1294 // Activation support. |
| 1295 void EnterFrame(StackFrame::Type type); | 1295 void EnterFrame(StackFrame::Type type); |
| 1296 void LeaveFrame(StackFrame::Type type); | 1296 void LeaveFrame(StackFrame::Type type); |
| 1297 | 1297 |
| 1298 // Expects object in rax and returns map with validated enum cache |
| 1299 // in rax. Assumes that any other register can be used as a scratch. |
| 1300 void CheckEnumCache(Register null_value, |
| 1301 Label* call_runtime); |
| 1302 |
| 1298 private: | 1303 private: |
| 1299 // Order general registers are pushed by Pushad. | 1304 // Order general registers are pushed by Pushad. |
| 1300 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. | 1305 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. |
| 1301 static int kSafepointPushRegisterIndices[Register::kNumRegisters]; | 1306 static int kSafepointPushRegisterIndices[Register::kNumRegisters]; |
| 1302 static const int kNumSafepointSavedRegisters = 11; | 1307 static const int kNumSafepointSavedRegisters = 11; |
| 1303 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; | 1308 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; |
| 1304 | 1309 |
| 1305 bool generating_stub_; | 1310 bool generating_stub_; |
| 1306 bool allow_stub_calls_; | 1311 bool allow_stub_calls_; |
| 1307 bool has_frame_; | 1312 bool has_frame_; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1463 masm->popfd(); \ | 1468 masm->popfd(); \ |
| 1464 } \ | 1469 } \ |
| 1465 masm-> | 1470 masm-> |
| 1466 #else | 1471 #else |
| 1467 #define ACCESS_MASM(masm) masm-> | 1472 #define ACCESS_MASM(masm) masm-> |
| 1468 #endif | 1473 #endif |
| 1469 | 1474 |
| 1470 } } // namespace v8::internal | 1475 } } // namespace v8::internal |
| 1471 | 1476 |
| 1472 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1477 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |