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

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

Issue 1473683004: Lazily initialize fast_sqrt() and pass an Isolate parameter to it (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates 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/simulator-arm.cc ('k') | src/arm64/simulator-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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 #if !defined(USE_SIMULATOR) 69 #if !defined(USE_SIMULATOR)
70 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); 70 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer);
71 #else 71 #else
72 fast_exp_arm64_machine_code = buffer; 72 fast_exp_arm64_machine_code = buffer;
73 return &fast_exp_simulator; 73 return &fast_exp_simulator;
74 #endif 74 #endif
75 } 75 }
76 76
77 77
78 UnaryMathFunction CreateSqrtFunction() { 78 UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) {
79 return &std::sqrt; 79 return nullptr;
80 } 80 }
81 81
82 82
83 // ------------------------------------------------------------------------- 83 // -------------------------------------------------------------------------
84 // Platform-specific RuntimeCallHelper functions. 84 // Platform-specific RuntimeCallHelper functions.
85 85
86 void StubRuntimeCallHelper::BeforeCall(MacroAssembler* masm) const { 86 void StubRuntimeCallHelper::BeforeCall(MacroAssembler* masm) const {
87 masm->EnterFrame(StackFrame::INTERNAL); 87 masm->EnterFrame(StackFrame::INTERNAL);
88 DCHECK(!masm->has_frame()); 88 DCHECK(!masm->has_frame());
89 masm->set_has_frame(true); 89 masm->set_has_frame(true);
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 630
631 __ Bind(&done); 631 __ Bind(&done);
632 } 632 }
633 633
634 #undef __ 634 #undef __
635 635
636 } // namespace internal 636 } // namespace internal
637 } // namespace v8 637 } // namespace v8
638 638
639 #endif // V8_TARGET_ARCH_ARM64 639 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/arm64/simulator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698