| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 15 matching lines...) Expand all Loading... |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ | 28 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
| 29 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 29 #define V8_X64_MACRO_ASSEMBLER_X64_H_ |
| 30 | 30 |
| 31 #include "assembler.h" | 31 #include "assembler.h" |
| 32 | 32 |
| 33 namespace v8 { | 33 namespace v8 { |
| 34 namespace internal { | 34 namespace internal { |
| 35 | 35 |
| 36 // Default scratch register used by MacroAssembler (and other code that needs |
| 37 // a spare register). The register isn't callee save, and not used by the |
| 38 // function calling convention. |
| 36 static const Register kScratchRegister = r10; | 39 static const Register kScratchRegister = r10; |
| 37 | 40 |
| 38 // Forward declaration. | 41 // Forward declaration. |
| 39 class JumpTarget; | 42 class JumpTarget; |
| 40 | 43 |
| 41 | 44 |
| 42 // Helper types to make flags easier to read at call sites. | 45 // Helper types to make flags easier to read at call sites. |
| 43 enum InvokeFlag { | 46 enum InvokeFlag { |
| 44 CALL_FUNCTION, | 47 CALL_FUNCTION, |
| 45 JUMP_FUNCTION | 48 JUMP_FUNCTION |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 154 |
| 152 // FCmp is similar to integer cmp, but requires unsigned | 155 // FCmp is similar to integer cmp, but requires unsigned |
| 153 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). | 156 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). |
| 154 void FCmp(); | 157 void FCmp(); |
| 155 | 158 |
| 156 // --------------------------------------------------------------------------- | 159 // --------------------------------------------------------------------------- |
| 157 // Exception handling | 160 // Exception handling |
| 158 | 161 |
| 159 // Push a new try handler and link into try handler chain. | 162 // Push a new try handler and link into try handler chain. |
| 160 // The return address must be pushed before calling this helper. | 163 // The return address must be pushed before calling this helper. |
| 161 // On exit, eax contains TOS (next_sp). | 164 // On exit, rax contains TOS (next_sp). |
| 162 void PushTryHandler(CodeLocation try_location, HandlerType type); | 165 void PushTryHandler(CodeLocation try_location, HandlerType type); |
| 163 | 166 |
| 164 | 167 |
| 165 // --------------------------------------------------------------------------- | 168 // --------------------------------------------------------------------------- |
| 166 // Inline caching support | 169 // Inline caching support |
| 167 | 170 |
| 168 // Generates code that verifies that the maps of objects in the | 171 // Generates code that verifies that the maps of objects in the |
| 169 // prototype chain of object hasn't changed since the code was | 172 // prototype chain of object hasn't changed since the code was |
| 170 // generated and branches to the miss label if any map has. If | 173 // generated and branches to the miss label if any map has. If |
| 171 // necessary the function also generates code for security check | 174 // necessary the function also generates code for security check |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 } \ | 368 } \ |
| 366 masm-> | 369 masm-> |
| 367 #else | 370 #else |
| 368 #define ACCESS_MASM(masm) masm-> | 371 #define ACCESS_MASM(masm) masm-> |
| 369 #endif | 372 #endif |
| 370 | 373 |
| 371 | 374 |
| 372 } } // namespace v8::internal | 375 } } // namespace v8::internal |
| 373 | 376 |
| 374 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 377 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |