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

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

Issue 530783002: Convert Linkage to use MachineSignature. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Another try at size_t. Staunch the bleeding. Created 6 years, 3 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: src/compiler/common-operator.h
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h
index 65528e1d0c756189e03584fd3f6725559533aa79..d82c4bdcb1f57f90e54c29a22e885264549376e6 100644
--- a/src/compiler/common-operator.h
+++ b/src/compiler/common-operator.h
@@ -33,11 +33,14 @@ class ControlOperator : public Operator1<int> {
class CallOperator : public Operator1<CallDescriptor*> {
public:
+ // TODO(titzer): Operator still uses int, whereas CallDescriptor uses size_t.
CallOperator(CallDescriptor* descriptor, const char* mnemonic)
: Operator1<CallDescriptor*>(
IrOpcode::kCall, descriptor->properties(),
- descriptor->InputCount() + descriptor->FrameStateCount(),
- descriptor->ReturnCount(), mnemonic, descriptor) {}
+ static_cast<int>(descriptor->InputCount() +
+ descriptor->FrameStateCount()),
+ static_cast<int>(descriptor->ReturnCount()), mnemonic, descriptor) {
+ }
virtual OStream& PrintParameter(OStream& os) const { // NOLINT
return os << "[" << *parameter() << "]";

Powered by Google App Engine
This is Rietveld 408576698