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

Side by Side Diff: src/runtime/runtime-test.cc

Issue 2083453002: [builtins] Introduce proper Float64Tan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/runtime/runtime-maths.cc ('k') | src/third_party/fdlibm/fdlibm.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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/frames-inl.h" 9 #include "src/frames-inl.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
11 #include "src/isolate-inl.h" 11 #include "src/isolate-inl.h"
12 #include "src/snapshot/natives.h" 12 #include "src/snapshot/natives.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 RUNTIME_FUNCTION(Runtime_ConstructDouble) {
18 HandleScope scope(isolate);
19 DCHECK(args.length() == 2);
20 CONVERT_NUMBER_CHECKED(uint32_t, hi, Uint32, args[0]);
21 CONVERT_NUMBER_CHECKED(uint32_t, lo, Uint32, args[1]);
22 uint64_t result = (static_cast<uint64_t>(hi) << 32) | lo;
23 return *isolate->factory()->NewNumber(uint64_to_double(result));
24 }
25
17 RUNTIME_FUNCTION(Runtime_DeoptimizeFunction) { 26 RUNTIME_FUNCTION(Runtime_DeoptimizeFunction) {
18 HandleScope scope(isolate); 27 HandleScope scope(isolate);
19 DCHECK(args.length() == 1); 28 DCHECK(args.length() == 1);
20 29
21 // This function is used by fuzzers to get coverage in compiler. 30 // This function is used by fuzzers to get coverage in compiler.
22 // Ignore calls on non-function objects to avoid runtime errors. 31 // Ignore calls on non-function objects to avoid runtime errors.
23 CONVERT_ARG_HANDLE_CHECKED(Object, function_object, 0); 32 CONVERT_ARG_HANDLE_CHECKED(Object, function_object, 0);
24 // If it is not a JSFunction, just return. 33 // If it is not a JSFunction, just return.
25 if (!function_object->IsJSFunction()) { 34 if (!function_object->IsJSFunction()) {
26 return isolate->heap()->undefined_value(); 35 return isolate->heap()->undefined_value();
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 567
559 RUNTIME_FUNCTION(Runtime_SpeciesProtector) { 568 RUNTIME_FUNCTION(Runtime_SpeciesProtector) {
560 SealHandleScope shs(isolate); 569 SealHandleScope shs(isolate);
561 DCHECK_EQ(0, args.length()); 570 DCHECK_EQ(0, args.length());
562 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact()); 571 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact());
563 } 572 }
564 573
565 574
566 } // namespace internal 575 } // namespace internal
567 } // namespace v8 576 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-maths.cc ('k') | src/third_party/fdlibm/fdlibm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698