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

Unified Diff: src/ia32/macro-assembler-ia32.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/ia32/macro-assembler-ia32.h ('k') | src/ic/ic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/macro-assembler-ia32.cc
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
index 4d599eef8d4186fbb1dfb7a780445ad8f8008a1b..2aab2e68782bd29b8cc8611824f4a5ea7e10a2e6 100644
--- a/src/ia32/macro-assembler-ia32.cc
+++ b/src/ia32/macro-assembler-ia32.cc
@@ -2141,6 +2141,15 @@ void MacroAssembler::GetBuiltinEntry(Register target, Builtins::JavaScript id) {
}
+void MacroAssembler::BranchIfNotBuiltin(Register function, Register temp,
+ BuiltinFunctionId id, Label* miss) {
+ mov(temp, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset));
+ mov(temp, FieldOperand(temp, SharedFunctionInfo::kFunctionDataOffset));
+ cmp(temp, Immediate(Smi::FromInt(id)));
+ j(not_equal, miss);
+}
+
+
void MacroAssembler::LoadContext(Register dst, int context_chain_length) {
if (context_chain_length > 0) {
// Move up the chain of contexts to the context containing the slot.
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698