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

Unified Diff: src/x64/macro-assembler-x64.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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | test/mjsunit/math-ceil-minus-zero.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/macro-assembler-x64.cc
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc
index 0e70826df2297d003f28c3de27577394fd9b57a2..e6a06dbc08b5220b3230eed33de09cec662ac56b 100644
--- a/src/x64/macro-assembler-x64.cc
+++ b/src/x64/macro-assembler-x64.cc
@@ -733,6 +733,15 @@ void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) {
}
+void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp,
+ BuiltinFunctionId id, Label* miss) {
+ movp(temp, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset));
+ movp(temp, FieldOperand(temp, SharedFunctionInfo::kFunctionDataOffset));
+ Cmp(temp, Smi::FromInt(id));
+ j(not_equal, miss);
+}
+
+
#define REG(Name) { kRegister_ ## Name ## _Code }
static const Register saved_regs[] = {
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | test/mjsunit/math-ceil-minus-zero.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698