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

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

Issue 2494753003: [turbofan] Introduce an ExternalPointer type. (Closed)
Patch Set: Stronger ducktape. Created 4 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/common-operator.h ('k') | src/compiler/js-create-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.cc
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
index 736a961e40336c477e7b1d33aac3bee27023281b..9ce6f71a0f9949bb9b4ddc04ee2e76ed1e2f413f 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -880,6 +880,13 @@ const Operator* CommonOperatorBuilder::NumberConstant(volatile double value) {
value); // parameter
}
+const Operator* CommonOperatorBuilder::PointerConstant(intptr_t value) {
+ return new (zone()) Operator1<intptr_t>( // --
+ IrOpcode::kPointerConstant, Operator::kPure, // opcode
+ "PointerConstant", // name
+ 0, 0, 0, 1, 0, 0, // counts
+ value); // parameter
+}
const Operator* CommonOperatorBuilder::HeapConstant(
const Handle<HeapObject>& value) {
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/js-create-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698