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

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

Issue 2732273003: Disentangle assembler from isolate. (Closed)
Patch Set: Address feedback. Created 3 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/ppc/assembler-ppc-inl.h ('k') | src/ppc/macro-assembler-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/codegen-ppc.h" 5 #include "src/ppc/codegen-ppc.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 22 matching lines...) Expand all
33 // Called from C 33 // Called from C
34 __ function_descriptor(); 34 __ function_descriptor();
35 35
36 __ MovFromFloatParameter(d1); 36 __ MovFromFloatParameter(d1);
37 __ fsqrt(d1, d1); 37 __ fsqrt(d1, d1);
38 __ MovToFloatResult(d1); 38 __ MovToFloatResult(d1);
39 __ Ret(); 39 __ Ret();
40 40
41 CodeDesc desc; 41 CodeDesc desc;
42 masm.GetCode(&desc); 42 masm.GetCode(&desc);
43 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS || !RelocInfo::RequiresRelocation(desc)); 43 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS ||
44 !RelocInfo::RequiresRelocation(isolate, desc));
44 45
45 Assembler::FlushICache(isolate, buffer, actual_size); 46 Assembler::FlushICache(isolate, buffer, actual_size);
46 base::OS::ProtectCode(buffer, actual_size); 47 base::OS::ProtectCode(buffer, actual_size);
47 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); 48 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer);
48 #endif 49 #endif
49 } 50 }
50 51
51 #undef __ 52 #undef __
52 53
53 54
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 patcher.masm()->Jump(r3); 232 patcher.masm()->Jump(r3);
232 for (int i = 0; i < kCodeAgingSequenceNops; i++) { 233 for (int i = 0; i < kCodeAgingSequenceNops; i++) {
233 patcher.masm()->nop(); 234 patcher.masm()->nop();
234 } 235 }
235 } 236 }
236 } 237 }
237 } // namespace internal 238 } // namespace internal
238 } // namespace v8 239 } // namespace v8
239 240
240 #endif // V8_TARGET_ARCH_PPC 241 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc-inl.h ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698