| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #ifndef V8_X64_ASSEMBLER_X64_INL_H_ | 28 #ifndef V8_X64_ASSEMBLER_X64_INL_H_ |
| 29 #define V8_X64_ASSEMBLER_X64_INL_H_ | 29 #define V8_X64_ASSEMBLER_X64_INL_H_ |
| 30 | 30 |
| 31 #include "cpu.h" | 31 #include "cpu.h" |
| 32 #include "memory.h" | 32 #include "memory.h" |
| 33 | 33 |
| 34 namespace v8 { | 34 namespace v8 { |
| 35 namespace internal { | 35 namespace internal { |
| 36 | 36 |
| 37 Condition NegateCondition(Condition cc) { | 37 inline Condition NegateCondition(Condition cc) { |
| 38 return static_cast<Condition>(cc ^ 1); | 38 return static_cast<Condition>(cc ^ 1); |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 // ----------------------------------------------------------------------------- | 42 // ----------------------------------------------------------------------------- |
| 43 // Implementation of Assembler | 43 // Implementation of Assembler |
| 44 | 44 |
| 45 | 45 |
| 46 | 46 |
| 47 void Assembler::emitl(uint32_t x) { | 47 void Assembler::emitl(uint32_t x) { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 ASSERT(len_ == 1 || len_ == 2); | 354 ASSERT(len_ == 1 || len_ == 2); |
| 355 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); | 355 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); |
| 356 *p = disp; | 356 *p = disp; |
| 357 len_ += sizeof(int32_t); | 357 len_ += sizeof(int32_t); |
| 358 } | 358 } |
| 359 | 359 |
| 360 | 360 |
| 361 } } // namespace v8::internal | 361 } } // namespace v8::internal |
| 362 | 362 |
| 363 #endif // V8_X64_ASSEMBLER_X64_INL_H_ | 363 #endif // V8_X64_ASSEMBLER_X64_INL_H_ |
| OLD | NEW |