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

Unified Diff: src/crankshaft/hydrogen-instructions.cc

Issue 1480273002: Rename IS_SPEC_OBJECT to IS_JS_RECEIVER in hydrogen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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/crankshaft/hydrogen-instructions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen-instructions.cc
diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc
index b8334c61c20bdf8e91fba1c31b4a5bf79d989d65..b2cdb789e943c0a52236721f4e67c8e29f01cbd9 100644
--- a/src/crankshaft/hydrogen-instructions.cc
+++ b/src/crankshaft/hydrogen-instructions.cc
@@ -1620,7 +1620,7 @@ HValue* HUnaryMathOperation::Canonicalize() {
HValue* HCheckInstanceType::Canonicalize() {
- if ((check_ == IS_SPEC_OBJECT && value()->type().IsJSObject()) ||
+ if ((check_ == IS_JS_RECEIVER && value()->type().IsJSObject()) ||
(check_ == IS_JS_ARRAY && value()->type().IsJSArray()) ||
(check_ == IS_STRING && value()->type().IsString())) {
return value();
@@ -1639,7 +1639,7 @@ void HCheckInstanceType::GetCheckInterval(InstanceType* first,
InstanceType* last) {
DCHECK(is_interval_check());
switch (check_) {
- case IS_SPEC_OBJECT:
+ case IS_JS_RECEIVER:
*first = FIRST_JS_RECEIVER_TYPE;
*last = LAST_JS_RECEIVER_TYPE;
return;
@@ -1716,7 +1716,7 @@ HValue* HCheckValue::Canonicalize() {
const char* HCheckInstanceType::GetCheckName() const {
switch (check_) {
- case IS_SPEC_OBJECT: return "object";
+ case IS_JS_RECEIVER: return "object";
case IS_JS_ARRAY: return "array";
case IS_JS_DATE:
return "date";
« no previous file with comments | « src/crankshaft/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698