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

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

Issue 148593004: A64: Synchronize with r18084. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/a64/assembler-a64.h ('k') | src/a64/builtins-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 } 557 }
558 } 558 }
559 559
560 560
561 void Assembler::deserialization_set_special_target_at( 561 void Assembler::deserialization_set_special_target_at(
562 Address constant_pool_entry, Address target) { 562 Address constant_pool_entry, Address target) {
563 Memory::Address_at(constant_pool_entry) = target; 563 Memory::Address_at(constant_pool_entry) = target;
564 } 564 }
565 565
566 566
567 void Assembler::set_external_target_at(Address constant_pool_entry,
568 Address target) {
569 Memory::Address_at(constant_pool_entry) = target;
570 }
571
572
573 void Assembler::set_target_address_at(Address pc, Address target) { 567 void Assembler::set_target_address_at(Address pc, Address target) {
574 Memory::Address_at(target_pointer_address_at(pc)) = target; 568 Memory::Address_at(target_pointer_address_at(pc)) = target;
575 // Intuitively, we would think it is necessary to always flush the 569 // Intuitively, we would think it is necessary to always flush the
576 // instruction cache after patching a target address in the code as follows: 570 // instruction cache after patching a target address in the code as follows:
577 // CPU::FlushICache(pc, sizeof(target)); 571 // CPU::FlushICache(pc, sizeof(target));
578 // However, on ARM, an instruction is actually patched in the case of 572 // However, on ARM, an instruction is actually patched in the case of
579 // embedded constants of the form: 573 // embedded constants of the form:
580 // ldr ip, [pc, #...] 574 // ldr ip, [pc, #...]
581 // since the instruction accessing this address in the constant pool remains 575 // since the instruction accessing this address in the constant pool remains
582 // unchanged, a flush is not required. 576 // unchanged, a flush is not required.
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 1138
1145 1139
1146 void Assembler::ClearRecordedAstId() { 1140 void Assembler::ClearRecordedAstId() {
1147 recorded_ast_id_ = TypeFeedbackId::None(); 1141 recorded_ast_id_ = TypeFeedbackId::None();
1148 } 1142 }
1149 1143
1150 1144
1151 } } // namespace v8::internal 1145 } } // namespace v8::internal
1152 1146
1153 #endif // V8_A64_ASSEMBLER_A64_INL_H_ 1147 #endif // V8_A64_ASSEMBLER_A64_INL_H_
OLDNEW
« no previous file with comments | « src/a64/assembler-a64.h ('k') | src/a64/builtins-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698