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

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

Issue 1053143005: Collect type feedback on result of Math.[round|ceil|floor] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: MIPS port Created 5 years, 7 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/arm/macro-assembler-arm.h ('k') | src/arm64/code-stubs-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 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 <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_ARM 9 #if V8_TARGET_ARCH_ARM
10 10
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 2582
2583 2583
2584 void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) { 2584 void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) {
2585 DCHECK(!target.is(r1)); 2585 DCHECK(!target.is(r1));
2586 GetBuiltinFunction(r1, id); 2586 GetBuiltinFunction(r1, id);
2587 // Load the code entry point from the builtins object. 2587 // Load the code entry point from the builtins object.
2588 ldr(target, FieldMemOperand(r1, JSFunction::kCodeEntryOffset)); 2588 ldr(target, FieldMemOperand(r1, JSFunction::kCodeEntryOffset));
2589 } 2589 }
2590 2590
2591 2591
2592 void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp,
2593 BuiltinFunctionId id, Label* miss) {
2594 ldr(temp, FieldMemOperand(function, JSFunction::kSharedFunctionInfoOffset));
2595 ldr(temp, FieldMemOperand(temp, SharedFunctionInfo::kFunctionDataOffset));
2596 cmp(temp, Operand(Smi::FromInt(id)));
2597 b(ne, miss);
2598 }
2599
2600
2592 void MacroAssembler::SetCounter(StatsCounter* counter, int value, 2601 void MacroAssembler::SetCounter(StatsCounter* counter, int value,
2593 Register scratch1, Register scratch2) { 2602 Register scratch1, Register scratch2) {
2594 if (FLAG_native_code_counters && counter->Enabled()) { 2603 if (FLAG_native_code_counters && counter->Enabled()) {
2595 mov(scratch1, Operand(value)); 2604 mov(scratch1, Operand(value));
2596 mov(scratch2, Operand(ExternalReference(counter))); 2605 mov(scratch2, Operand(ExternalReference(counter)));
2597 str(scratch1, MemOperand(scratch2)); 2606 str(scratch1, MemOperand(scratch2));
2598 } 2607 }
2599 } 2608 }
2600 2609
2601 2610
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3908 } 3917 }
3909 } 3918 }
3910 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3919 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3911 add(result, result, Operand(dividend, LSR, 31)); 3920 add(result, result, Operand(dividend, LSR, 31));
3912 } 3921 }
3913 3922
3914 } // namespace internal 3923 } // namespace internal
3915 } // namespace v8 3924 } // namespace v8
3916 3925
3917 #endif // V8_TARGET_ARCH_ARM 3926 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698