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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 841083002: Remove "extra checks" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/objects-inl.h ('k') | src/x87/macro-assembler-x87.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 cmpp(prev_limit_reg, Operand(base_reg, kLimitOffset)); 792 cmpp(prev_limit_reg, Operand(base_reg, kLimitOffset));
793 j(not_equal, &delete_allocated_handles); 793 j(not_equal, &delete_allocated_handles);
794 bind(&leave_exit_frame); 794 bind(&leave_exit_frame);
795 795
796 // Check if the function scheduled an exception. 796 // Check if the function scheduled an exception.
797 Move(rsi, scheduled_exception_address); 797 Move(rsi, scheduled_exception_address);
798 Cmp(Operand(rsi, 0), factory->the_hole_value()); 798 Cmp(Operand(rsi, 0), factory->the_hole_value());
799 j(not_equal, &promote_scheduled_exception); 799 j(not_equal, &promote_scheduled_exception);
800 bind(&exception_handled); 800 bind(&exception_handled);
801 801
802 #if ENABLE_EXTRA_CHECKS 802 #if DEBUG
803 // Check if the function returned a valid JavaScript value. 803 // Check if the function returned a valid JavaScript value.
804 Label ok; 804 Label ok;
805 Register return_value = rax; 805 Register return_value = rax;
806 Register map = rcx; 806 Register map = rcx;
807 807
808 JumpIfSmi(return_value, &ok, Label::kNear); 808 JumpIfSmi(return_value, &ok, Label::kNear);
809 movp(map, FieldOperand(return_value, HeapObject::kMapOffset)); 809 movp(map, FieldOperand(return_value, HeapObject::kMapOffset));
810 810
811 CmpInstanceType(map, FIRST_NONSTRING_TYPE); 811 CmpInstanceType(map, FIRST_NONSTRING_TYPE);
812 j(below, &ok, Label::kNear); 812 j(below, &ok, Label::kNear);
(...skipping 4583 matching lines...) Expand 10 before | Expand all | Expand 10 after
5396 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); 5396 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift));
5397 movl(rax, dividend); 5397 movl(rax, dividend);
5398 shrl(rax, Immediate(31)); 5398 shrl(rax, Immediate(31));
5399 addl(rdx, rax); 5399 addl(rdx, rax);
5400 } 5400 }
5401 5401
5402 5402
5403 } } // namespace v8::internal 5403 } } // namespace v8::internal
5404 5404
5405 #endif // V8_TARGET_ARCH_X64 5405 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698