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

Unified Diff: src/mips64/macro-assembler-mips64.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/macro-assembler-mips64.cc
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc
index 0e7955de00d4be4d9b81802bc2ba5e8f6ab80f8b..89ed2cd88a4f586ac00ab9fb19e9e320e00d4d03 100644
--- a/src/mips64/macro-assembler-mips64.cc
+++ b/src/mips64/macro-assembler-mips64.cc
@@ -4576,6 +4576,14 @@ void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) {
}
+void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp,
+ BuiltinFunctionId id, Label* miss) {
+ ld(temp, FieldMemOperand(function, JSFunction::kSharedFunctionInfoOffset));
+ ld(temp, FieldMemOperand(temp, SharedFunctionInfo::kFunctionDataOffset));
+ Branch(miss, ne, temp, Operand(Smi::FromInt(id)));
+}
+
+
void MacroAssembler::SetCounter(StatsCounter* counter, int value,
Register scratch1, Register scratch2) {
if (FLAG_native_code_counters && counter->Enabled()) {
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698