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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 2254053002: Move inlining of recognized SIMD methods to the flow-graph inliner. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add missing guard for speculative inlining Created 4 years, 4 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: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index d1f8f924082c0e8a7554a53457e9ebfe22f19cac..5c83aa918b227f4abc010b62355d72d5634de9f1 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -469,40 +469,6 @@ UnboxedConstantInstr::UnboxedConstantInstr(const Object& value,
}
-bool Value::BindsTo32BitMaskConstant() const {
- if (!definition()->IsUnboxInt64() || !definition()->IsUnboxUint32()) {
- return false;
- }
- // Two cases to consider: UnboxInt64 and UnboxUint32.
- if (definition()->IsUnboxInt64()) {
- UnboxInt64Instr* instr = definition()->AsUnboxInt64();
- if (!instr->value()->BindsToConstant()) {
- return false;
- }
- const Object& obj = instr->value()->BoundConstant();
- if (!obj.IsMint()) {
- return false;
- }
- Mint& mint = Mint::Handle();
- mint ^= obj.raw();
- return mint.value() == kMaxUint32;
- } else if (definition()->IsUnboxUint32()) {
- UnboxUint32Instr* instr = definition()->AsUnboxUint32();
- if (!instr->value()->BindsToConstant()) {
- return false;
- }
- const Object& obj = instr->value()->BoundConstant();
- if (!obj.IsMint()) {
- return false;
- }
- Mint& mint = Mint::Handle();
- mint ^= obj.raw();
- return mint.value() == kMaxUint32;
- }
- return false;
-}
-
-
// Returns true if the value represents a constant.
bool Value::BindsToConstant() const {
return definition()->IsConstant();

Powered by Google App Engine
This is Rietveld 408576698