| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 | 257 |
| 258 | 258 |
| 259 Object* RelocInfo::target_object() { | 259 Object* RelocInfo::target_object() { |
| 260 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 260 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 261 return Memory::Object_at(pc_); | 261 return Memory::Object_at(pc_); |
| 262 } | 262 } |
| 263 | 263 |
| 264 | 264 |
| 265 Handle<Object> RelocInfo::target_object_handle(Assembler *origin) { | 265 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
| 266 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 266 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 267 if (rmode_ == EMBEDDED_OBJECT) { | 267 if (rmode_ == EMBEDDED_OBJECT) { |
| 268 return Memory::Object_Handle_at(pc_); | 268 return Memory::Object_Handle_at(pc_); |
| 269 } else { | 269 } else { |
| 270 return origin->code_target_object_handle_at(pc_); | 270 return origin->code_target_object_handle_at(pc_); |
| 271 } | 271 } |
| 272 } | 272 } |
| 273 | 273 |
| 274 | 274 |
| 275 Object** RelocInfo::target_object_address() { | 275 Object** RelocInfo::target_object_address() { |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 ASSERT(len_ == 1 || len_ == 2); | 479 ASSERT(len_ == 1 || len_ == 2); |
| 480 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); | 480 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); |
| 481 *p = disp; | 481 *p = disp; |
| 482 len_ += sizeof(int32_t); | 482 len_ += sizeof(int32_t); |
| 483 } | 483 } |
| 484 | 484 |
| 485 | 485 |
| 486 } } // namespace v8::internal | 486 } } // namespace v8::internal |
| 487 | 487 |
| 488 #endif // V8_X64_ASSEMBLER_X64_INL_H_ | 488 #endif // V8_X64_ASSEMBLER_X64_INL_H_ |
| OLD | NEW |