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

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

Issue 577273002: [arm64] cleanup heap numbers detection (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2801 matching lines...) Expand 10 before | Expand all | Expand 10 after
2812 VisitForAccumulatorValue(args->at(0)); 2812 VisitForAccumulatorValue(args->at(0));
2813 2813
2814 Label materialize_true, materialize_false; 2814 Label materialize_true, materialize_false;
2815 Label* if_true = NULL; 2815 Label* if_true = NULL;
2816 Label* if_false = NULL; 2816 Label* if_false = NULL;
2817 Label* fall_through = NULL; 2817 Label* fall_through = NULL;
2818 context()->PrepareTest(&materialize_true, &materialize_false, 2818 context()->PrepareTest(&materialize_true, &materialize_false,
2819 &if_true, &if_false, &fall_through); 2819 &if_true, &if_false, &fall_through);
2820 2820
2821 // Only a HeapNumber can be -0.0, so return false if we have something else. 2821 // Only a HeapNumber can be -0.0, so return false if we have something else.
2822 __ CheckMap(x0, x1, Heap::kHeapNumberMapRootIndex, if_false, DO_SMI_CHECK); 2822 __ JumpIfNotHeapNumber(x0, if_false, DO_SMI_CHECK);
2823 2823
2824 // Test the bit pattern. 2824 // Test the bit pattern.
2825 __ Ldr(x10, FieldMemOperand(x0, HeapNumber::kValueOffset)); 2825 __ Ldr(x10, FieldMemOperand(x0, HeapNumber::kValueOffset));
2826 __ Cmp(x10, 1); // Set V on 0x8000000000000000. 2826 __ Cmp(x10, 1); // Set V on 0x8000000000000000.
2827 2827
2828 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2828 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2829 Split(vs, if_true, if_false, fall_through); 2829 Split(vs, if_true, if_false, fall_through);
2830 2830
2831 context()->Plug(if_true, if_false); 2831 context()->Plug(if_true, if_false);
2832 } 2832 }
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after
4909 return previous_; 4909 return previous_;
4910 } 4910 }
4911 4911
4912 4912
4913 #undef __ 4913 #undef __
4914 4914
4915 4915
4916 } } // namespace v8::internal 4916 } } // namespace v8::internal
4917 4917
4918 #endif // V8_TARGET_ARCH_ARM64 4918 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698