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 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1442 return Operand(object, index, scale, offset - kHeapObjectTag); | 1442 return Operand(object, index, scale, offset - kHeapObjectTag); |
1443 } | 1443 } |
1444 | 1444 |
1445 | 1445 |
1446 inline Operand ContextOperand(Register context, int index) { | 1446 inline Operand ContextOperand(Register context, int index) { |
1447 return Operand(context, Context::SlotOffset(index)); | 1447 return Operand(context, Context::SlotOffset(index)); |
1448 } | 1448 } |
1449 | 1449 |
1450 | 1450 |
1451 inline Operand GlobalObjectOperand() { | 1451 inline Operand GlobalObjectOperand() { |
1452 return ContextOperand(rsi, Context::GLOBAL_INDEX); | 1452 return ContextOperand(rsi, Context::GLOBAL_OBJECT_INDEX); |
1453 } | 1453 } |
1454 | 1454 |
1455 | 1455 |
1456 // Provides access to exit frame stack space (not GCed). | 1456 // Provides access to exit frame stack space (not GCed). |
1457 inline Operand StackSpaceOperand(int index) { | 1457 inline Operand StackSpaceOperand(int index) { |
1458 #ifdef _WIN64 | 1458 #ifdef _WIN64 |
1459 const int kShaddowSpace = 4; | 1459 const int kShaddowSpace = 4; |
1460 return Operand(rsp, (index + kShaddowSpace) * kPointerSize); | 1460 return Operand(rsp, (index + kShaddowSpace) * kPointerSize); |
1461 #else | 1461 #else |
1462 return Operand(rsp, index * kPointerSize); | 1462 return Operand(rsp, index * kPointerSize); |
(...skipping 19 matching lines...) Expand all Loading... |
1482 masm->popfd(); \ | 1482 masm->popfd(); \ |
1483 } \ | 1483 } \ |
1484 masm-> | 1484 masm-> |
1485 #else | 1485 #else |
1486 #define ACCESS_MASM(masm) masm-> | 1486 #define ACCESS_MASM(masm) masm-> |
1487 #endif | 1487 #endif |
1488 | 1488 |
1489 } } // namespace v8::internal | 1489 } } // namespace v8::internal |
1490 | 1490 |
1491 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1491 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |