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

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

Issue 1025453003: MIPS: Fix 'MIPS: Serializer: serialize internal references via object visitor.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. Created 5 years, 9 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
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm64/assembler-arm64.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 Address constant_pool_entry, Code* code, Address target) { 547 Address constant_pool_entry, Code* code, Address target) {
548 if (FLAG_enable_ool_constant_pool) { 548 if (FLAG_enable_ool_constant_pool) {
549 set_target_address_at(constant_pool_entry, code, target); 549 set_target_address_at(constant_pool_entry, code, target);
550 } else { 550 } else {
551 Memory::Address_at(constant_pool_entry) = target; 551 Memory::Address_at(constant_pool_entry) = target;
552 } 552 }
553 } 553 }
554 554
555 555
556 void Assembler::deserialization_set_target_internal_reference_at( 556 void Assembler::deserialization_set_target_internal_reference_at(
557 Address pc, Address target) { 557 Address pc, Address target, RelocInfo::Mode mode) {
558 Memory::Address_at(pc) = target; 558 Memory::Address_at(pc) = target;
559 } 559 }
560 560
561 561
562 bool Assembler::is_constant_pool_load(Address pc) { 562 bool Assembler::is_constant_pool_load(Address pc) {
563 if (CpuFeatures::IsSupported(ARMv7)) { 563 if (CpuFeatures::IsSupported(ARMv7)) {
564 return !Assembler::IsMovW(Memory::int32_at(pc)) || 564 return !Assembler::IsMovW(Memory::int32_at(pc)) ||
565 (FLAG_enable_ool_constant_pool && 565 (FLAG_enable_ool_constant_pool &&
566 Assembler::IsLdrPpRegOffset( 566 Assembler::IsLdrPpRegOffset(
567 Memory::int32_at(pc + 2 * Assembler::kInstrSize))); 567 Memory::int32_at(pc + 2 * Assembler::kInstrSize)));
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 694 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
695 CpuFeatures::FlushICache(pc, 4 * kInstrSize); 695 CpuFeatures::FlushICache(pc, 4 * kInstrSize);
696 } 696 }
697 } 697 }
698 } 698 }
699 699
700 700
701 } } // namespace v8::internal 701 } } // namespace v8::internal
702 702
703 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 703 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm64/assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698