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

Side by Side Diff: src/arm64/codegen-arm64.cc

Issue 1332283002: Make FlushICache part of Assembler(Base) and take Isolate as parameter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 PatchingAssembler that initialized its isolate with NULL :) Created 5 years, 3 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/arm64/assembler-arm64-inl.h ('k') | src/arm64/cpu-arm64.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 // 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 #include "src/arm64/codegen-arm64.h" 5 #include "src/arm64/codegen-arm64.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/arm64/simulator-arm64.h" 9 #include "src/arm64/simulator-arm64.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 double_temp1, double_temp2, 57 double_temp1, double_temp2,
58 temp1, temp2, temp3); 58 temp1, temp2, temp3);
59 // Move the result to the return register. 59 // Move the result to the return register.
60 masm.Fmov(d0, result); 60 masm.Fmov(d0, result);
61 masm.Ret(); 61 masm.Ret();
62 62
63 CodeDesc desc; 63 CodeDesc desc;
64 masm.GetCode(&desc); 64 masm.GetCode(&desc);
65 DCHECK(!RelocInfo::RequiresRelocation(desc)); 65 DCHECK(!RelocInfo::RequiresRelocation(desc));
66 66
67 CpuFeatures::FlushICache(buffer, actual_size); 67 Assembler::FlushICacheWithoutIsolate(buffer, actual_size);
68 base::OS::ProtectCode(buffer, actual_size); 68 base::OS::ProtectCode(buffer, actual_size);
69 69
70 #if !defined(USE_SIMULATOR) 70 #if !defined(USE_SIMULATOR)
71 return FUNCTION_CAST<UnaryMathFunction>(buffer); 71 return FUNCTION_CAST<UnaryMathFunction>(buffer);
72 #else 72 #else
73 fast_exp_arm64_machine_code = buffer; 73 fast_exp_arm64_machine_code = buffer;
74 return &fast_exp_simulator; 74 return &fast_exp_simulator;
75 #endif 75 #endif
76 } 76 }
77 77
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 631
632 __ Bind(&done); 632 __ Bind(&done);
633 } 633 }
634 634
635 #undef __ 635 #undef __
636 636
637 } // namespace internal 637 } // namespace internal
638 } // namespace v8 638 } // namespace v8
639 639
640 #endif // V8_TARGET_ARCH_ARM64 640 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64-inl.h ('k') | src/arm64/cpu-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698