Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: src/x64/assembler-x64-inl.h

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698