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

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

Issue 336483002: remove this == null (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/spaces.cc ('k') | test/cctest/test-spaces.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X64_ASSEMBLER_X64_INL_H_ 5 #ifndef V8_X64_ASSEMBLER_X64_INL_H_
6 #define V8_X64_ASSEMBLER_X64_INL_H_ 6 #define V8_X64_ASSEMBLER_X64_INL_H_
7 7
8 #include "src/x64/assembler-x64.h" 8 #include "src/x64/assembler-x64.h"
9 9
10 #include "src/cpu.h" 10 #include "src/cpu.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 emitl(current - 1); 70 emitl(current - 1);
71 } else { 71 } else {
72 code_targets_.Add(target); 72 code_targets_.Add(target);
73 emitl(current); 73 emitl(current);
74 } 74 }
75 } 75 }
76 76
77 77
78 void Assembler::emit_runtime_entry(Address entry, RelocInfo::Mode rmode) { 78 void Assembler::emit_runtime_entry(Address entry, RelocInfo::Mode rmode) {
79 ASSERT(RelocInfo::IsRuntimeEntry(rmode)); 79 ASSERT(RelocInfo::IsRuntimeEntry(rmode));
80 ASSERT(isolate()->code_range()->exists());
81 RecordRelocInfo(rmode); 80 RecordRelocInfo(rmode);
82 emitl(static_cast<uint32_t>(entry - isolate()->code_range()->start())); 81 emitl(static_cast<uint32_t>(entry - isolate()->code_range()->start()));
83 } 82 }
84 83
85 84
86 void Assembler::emit_rex_64(Register reg, Register rm_reg) { 85 void Assembler::emit_rex_64(Register reg, Register rm_reg) {
87 emit(0x48 | reg.high_bit() << 2 | rm_reg.high_bit()); 86 emit(0x48 | reg.high_bit() << 2 | rm_reg.high_bit());
88 } 87 }
89 88
90 89
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 return pc - kCallTargetAddressOffset; 205 return pc - kCallTargetAddressOffset;
207 } 206 }
208 207
209 208
210 Handle<Object> Assembler::code_target_object_handle_at(Address pc) { 209 Handle<Object> Assembler::code_target_object_handle_at(Address pc) {
211 return code_targets_[Memory::int32_at(pc)]; 210 return code_targets_[Memory::int32_at(pc)];
212 } 211 }
213 212
214 213
215 Address Assembler::runtime_entry_at(Address pc) { 214 Address Assembler::runtime_entry_at(Address pc) {
216 ASSERT(isolate()->code_range()->exists());
217 return Memory::int32_at(pc) + isolate()->code_range()->start(); 215 return Memory::int32_at(pc) + isolate()->code_range()->start();
218 } 216 }
219 217
220 // ----------------------------------------------------------------------------- 218 // -----------------------------------------------------------------------------
221 // Implementation of RelocInfo 219 // Implementation of RelocInfo
222 220
223 // The modes possibly affected by apply must be in kApplyMask. 221 // The modes possibly affected by apply must be in kApplyMask.
224 void RelocInfo::apply(intptr_t delta, ICacheFlushMode icache_flush_mode) { 222 void RelocInfo::apply(intptr_t delta, ICacheFlushMode icache_flush_mode) {
225 bool flush_icache = icache_flush_mode != SKIP_ICACHE_FLUSH; 223 bool flush_icache = icache_flush_mode != SKIP_ICACHE_FLUSH;
226 if (IsInternalReference(rmode_)) { 224 if (IsInternalReference(rmode_)) {
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 ASSERT(len_ == 1 || len_ == 2); 550 ASSERT(len_ == 1 || len_ == 2);
553 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); 551 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]);
554 *p = disp; 552 *p = disp;
555 len_ += sizeof(int32_t); 553 len_ += sizeof(int32_t);
556 } 554 }
557 555
558 556
559 } } // namespace v8::internal 557 } } // namespace v8::internal
560 558
561 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 559 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698