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

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

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enum class FTW Created 5 years 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/macro-assembler-arm.cc ('k') | src/arm64/macro-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 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 20 matching lines...) Expand all
31 UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate) { 31 UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate) {
32 // Use the Math.exp implemetation in MathExpGenerator::EmitMathExp() to create 32 // Use the Math.exp implemetation in MathExpGenerator::EmitMathExp() to create
33 // an AAPCS64-compliant exp() function. This will be faster than the C 33 // an AAPCS64-compliant exp() function. This will be faster than the C
34 // library's exp() function, but probably less accurate. 34 // library's exp() function, but probably less accurate.
35 size_t actual_size; 35 size_t actual_size;
36 byte* buffer = 36 byte* buffer =
37 static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true)); 37 static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true));
38 if (buffer == nullptr) return nullptr; 38 if (buffer == nullptr) return nullptr;
39 39
40 ExternalReference::InitializeMathExpData(); 40 ExternalReference::InitializeMathExpData();
41 MacroAssembler masm(nullptr, buffer, static_cast<int>(actual_size)); 41 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size),
42 CodeObjectRequired::kNo);
42 masm.SetStackPointer(csp); 43 masm.SetStackPointer(csp);
43 44
44 // The argument will be in d0 on entry. 45 // The argument will be in d0 on entry.
45 DoubleRegister input = d0; 46 DoubleRegister input = d0;
46 // Use other caller-saved registers for all other values. 47 // Use other caller-saved registers for all other values.
47 DoubleRegister result = d1; 48 DoubleRegister result = d1;
48 DoubleRegister double_temp1 = d2; 49 DoubleRegister double_temp1 = d2;
49 DoubleRegister double_temp2 = d3; 50 DoubleRegister double_temp2 = d3;
50 Register temp1 = x10; 51 Register temp1 = x10;
51 Register temp2 = x11; 52 Register temp2 = x11;
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 630
630 __ Bind(&done); 631 __ Bind(&done);
631 } 632 }
632 633
633 #undef __ 634 #undef __
634 635
635 } // namespace internal 636 } // namespace internal
636 } // namespace v8 637 } // namespace v8
637 638
638 #endif // V8_TARGET_ARCH_ARM64 639 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698