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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

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/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 void InvokeBuiltin(Builtins::JavaScript id, 346 void InvokeBuiltin(Builtins::JavaScript id,
347 InvokeFlag flag, 347 InvokeFlag flag,
348 const CallWrapper& call_wrapper = NullCallWrapper()); 348 const CallWrapper& call_wrapper = NullCallWrapper());
349 349
350 // Store the function for the given builtin in the target register. 350 // Store the function for the given builtin in the target register.
351 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 351 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
352 352
353 // Store the code object for the given builtin in the target register. 353 // Store the code object for the given builtin in the target register.
354 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 354 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
355 355
356 void BranchIfNotBuiltin(Register function, Register temp,
357 BuiltinFunctionId id, Label* miss);
358
356 // Expression support 359 // Expression support
357 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 360 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
358 // hinders register renaming and makes dependence chains longer. So we use 361 // hinders register renaming and makes dependence chains longer. So we use
359 // xorps to clear the dst register before cvtsi2sd to solve this issue. 362 // xorps to clear the dst register before cvtsi2sd to solve this issue.
360 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } 363 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); }
361 void Cvtsi2sd(XMMRegister dst, const Operand& src); 364 void Cvtsi2sd(XMMRegister dst, const Operand& src);
362 365
363 // Support for constant splitting. 366 // Support for constant splitting.
364 bool IsUnsafeImmediate(const Immediate& x); 367 bool IsUnsafeImmediate(const Immediate& x);
365 void SafeMove(Register dst, const Immediate& x); 368 void SafeMove(Register dst, const Immediate& x);
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 } \ 1100 } \
1098 masm-> 1101 masm->
1099 #else 1102 #else
1100 #define ACCESS_MASM(masm) masm-> 1103 #define ACCESS_MASM(masm) masm->
1101 #endif 1104 #endif
1102 1105
1103 1106
1104 } } // namespace v8::internal 1107 } } // namespace v8::internal
1105 1108
1106 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1109 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698