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

Unified Diff: src/interpreter/bytecode-array-builder.cc

Issue 1645763003: [Interpreter] TurboFan implementation of intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
Index: src/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index 4a1602a1d6ea6c3749cc74b30111c53a4cd1e730..55160183e7713b39f87596f3cf9d3669ab1a1911 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -1135,6 +1135,13 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime(
DCHECK_EQ(0u, arg_count);
first_arg = Register(0);
}
+ if (function_id == Runtime::kInlineIsJSReceiver ||
+ function_id == Runtime::kInlineIsArray) {
+ // Arg is in the accumulator
oth 2016/02/01 09:52:33 Comment seems distracting. Neither the interpreter
epertoso 2016/03/03 11:20:39 Removed.
+ Output(Bytecode::kIntrinsicOneArg, static_cast<uint16_t>(function_id),
+ first_arg.ToRawOperand());
+ return *this;
+ }
if (FitsInReg8Operand(first_arg) && FitsInIdx8Operand(arg_count)) {
Output(Bytecode::kCallRuntime, static_cast<uint16_t>(function_id),
first_arg.ToRawOperand(), static_cast<uint8_t>(arg_count));

Powered by Google App Engine
This is Rietveld 408576698