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

Unified Diff: src/compiler/js-operator.cc

Issue 1104453006: [turbofan] Introduce explicit JSCreateLiteral[Array|Object]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. 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/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index 8812b6e46ecbcc5ba9e7df6e507ce558662d031f..646e8579b0008a95bcf5bbf8f441fd5977b8b173 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -479,6 +479,24 @@ const Operator* JSOperatorBuilder::CreateClosure(
}
+const Operator* JSOperatorBuilder::CreateLiteralArray(int literal_flags) {
+ return new (zone()) Operator1<int>( // --
+ IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode
+ "JSCreateLiteralArray", // name
+ 3, 1, 1, 1, 1, 2, // counts
+ literal_flags); // parameter
+}
+
+
+const Operator* JSOperatorBuilder::CreateLiteralObject(int literal_flags) {
+ return new (zone()) Operator1<int>( // --
+ IrOpcode::kJSCreateLiteralObject, Operator::kNoProperties, // opcode
+ "JSCreateLiteralObject", // name
+ 3, 1, 1, 1, 1, 2, // counts
+ literal_flags); // parameter
+}
+
+
const Operator* JSOperatorBuilder::CreateCatchContext(
const Unique<String>& name) {
return new (zone()) Operator1<Unique<String>>( // --
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698