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

Unified Diff: src/compiler/opcodes.h

Issue 1435873002: [turbofan] Initial support for constructor call inlining. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 1 month 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/compiler/linkage.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/opcodes.h
diff --git a/src/compiler/opcodes.h b/src/compiler/opcodes.h
index d94c60d468d4ee2646a60f98d106e81e12d1195a..b943c22aa82ef36c010a513c95704fc580edf5a1 100644
--- a/src/compiler/opcodes.h
+++ b/src/compiler/opcodes.h
@@ -372,6 +372,11 @@ class IrOpcode {
return kIfTrue <= value && value <= kIfDefault;
}
+ // Returns true if opcode can be inlined.
+ static bool IsInlineeOpcode(Value value) {
+ return value == kJSCallConstruct || value == kJSCallFunction;
+ }
+
// Returns true if opcode for comparison operator.
static bool IsComparisonOpcode(Value value) {
return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) ||
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698