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

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

Issue 395713002: Allow embedding of ConsString objects into code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Yang Guo. Created 6 years, 5 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/arm/assembler-arm-inl.h ('k') | src/factory.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_ASSEMBLER_ARM64_INL_H_ 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_INL_H_
6 #define V8_ARM64_ASSEMBLER_ARM64_INL_H_ 6 #define V8_ARM64_ASSEMBLER_ARM64_INL_H_
7 7
8 #include "src/arm64/assembler-arm64.h" 8 #include "src/arm64/assembler-arm64.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 709 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
710 return Handle<Object>(reinterpret_cast<Object**>( 710 return Handle<Object>(reinterpret_cast<Object**>(
711 Assembler::target_address_at(pc_, host_))); 711 Assembler::target_address_at(pc_, host_)));
712 } 712 }
713 713
714 714
715 void RelocInfo::set_target_object(Object* target, 715 void RelocInfo::set_target_object(Object* target,
716 WriteBarrierMode write_barrier_mode, 716 WriteBarrierMode write_barrier_mode,
717 ICacheFlushMode icache_flush_mode) { 717 ICacheFlushMode icache_flush_mode) {
718 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 718 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
719 ASSERT(!target->IsConsString());
720 Assembler::set_target_address_at(pc_, host_, 719 Assembler::set_target_address_at(pc_, host_,
721 reinterpret_cast<Address>(target), 720 reinterpret_cast<Address>(target),
722 icache_flush_mode); 721 icache_flush_mode);
723 if (write_barrier_mode == UPDATE_WRITE_BARRIER && 722 if (write_barrier_mode == UPDATE_WRITE_BARRIER &&
724 host() != NULL && 723 host() != NULL &&
725 target->IsHeapObject()) { 724 target->IsHeapObject()) {
726 host()->GetHeap()->incremental_marking()->RecordWrite( 725 host()->GetHeap()->incremental_marking()->RecordWrite(
727 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); 726 host(), &Memory::Object_at(pc_), HeapObject::cast(target));
728 } 727 }
729 } 728 }
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 1258
1260 1259
1261 void Assembler::ClearRecordedAstId() { 1260 void Assembler::ClearRecordedAstId() {
1262 recorded_ast_id_ = TypeFeedbackId::None(); 1261 recorded_ast_id_ = TypeFeedbackId::None();
1263 } 1262 }
1264 1263
1265 1264
1266 } } // namespace v8::internal 1265 } } // namespace v8::internal
1267 1266
1268 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ 1267 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698