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

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

Issue 2929843002: PPC/s390: [compiler] Delay allocation of code-embedded heap numbers. (Closed)
Patch Set: missing codegen changes Created 3 years, 6 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.cc ('k') | src/regexp/ppc/regexp-macro-assembler-ppc.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 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 21 matching lines...) Expand all
32 32
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(isolate, &desc);
43 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS || 43 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS ||
44 !RelocInfo::RequiresRelocation(isolate, desc)); 44 !RelocInfo::RequiresRelocation(isolate, desc));
45 45
46 Assembler::FlushICache(isolate, buffer, actual_size); 46 Assembler::FlushICache(isolate, buffer, actual_size);
47 base::OS::ProtectCode(buffer, actual_size); 47 base::OS::ProtectCode(buffer, actual_size);
48 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); 48 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer);
49 #endif 49 #endif
50 } 50 }
51 51
52 #undef __ 52 #undef __
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 patcher.masm()->Jump(r3); 232 patcher.masm()->Jump(r3);
233 for (int i = 0; i < kCodeAgingSequenceNops; i++) { 233 for (int i = 0; i < kCodeAgingSequenceNops; i++) {
234 patcher.masm()->nop(); 234 patcher.masm()->nop();
235 } 235 }
236 } 236 }
237 } 237 }
238 } // namespace internal 238 } // namespace internal
239 } // namespace v8 239 } // namespace v8
240 240
241 #endif // V8_TARGET_ARCH_PPC 241 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc.cc ('k') | src/regexp/ppc/regexp-macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698