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

Unified Diff: src/interpreter/interpreter-intrinsics.cc

Issue 2642303003: [ignition] Remove obsolete %_ValueOf intrinsic. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « src/interpreter/interpreter-intrinsics.h ('k') | test/cctest/interpreter/test-interpreter-intrinsics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/interpreter-intrinsics.cc
diff --git a/src/interpreter/interpreter-intrinsics.cc b/src/interpreter/interpreter-intrinsics.cc
index 9417d964c5a42e7c5d53d77bc71843823886166c..6fae3896ea1a36f399f8449e5a749c6a4598be1c 100644
--- a/src/interpreter/interpreter-intrinsics.cc
+++ b/src/interpreter/interpreter-intrinsics.cc
@@ -304,31 +304,6 @@ Node* IntrinsicsHelper::Call(Node* args_reg, Node* arg_count, Node* context) {
return result;
}
-Node* IntrinsicsHelper::ValueOf(Node* args_reg, Node* arg_count,
- Node* context) {
- InterpreterAssembler::Variable return_value(assembler_,
- MachineRepresentation::kTagged);
- InterpreterAssembler::Label done(assembler_);
-
- Node* object = __ LoadRegister(args_reg);
- return_value.Bind(object);
-
- // If the object is a smi return the object.
- __ GotoIf(__ TaggedIsSmi(object), &done);
-
- // If the object is not a value type, return the object.
- Node* condition =
- CompareInstanceType(object, JS_VALUE_TYPE, kInstanceTypeEqual);
- __ GotoUnless(condition, &done);
-
- // If the object is a value type, return the value field.
- return_value.Bind(__ LoadObjectField(object, JSValue::kValueOffset));
- __ Goto(&done);
-
- __ Bind(&done);
- return return_value.value();
-}
-
Node* IntrinsicsHelper::ClassOf(Node* args_reg, Node* arg_count,
Node* context) {
Node* value = __ LoadRegister(args_reg);
« no previous file with comments | « src/interpreter/interpreter-intrinsics.h ('k') | test/cctest/interpreter/test-interpreter-intrinsics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698