| Index: src/hydrogen-instructions.cc
|
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
|
| index 18daa1894c2e65e60892204ed08659a910c36d06..795196f4198b1841a2a1df3505e97cd2c2a4d780 100644
|
| --- a/src/hydrogen-instructions.cc
|
| +++ b/src/hydrogen-instructions.cc
|
| @@ -844,9 +844,7 @@ void HUnaryCall::PrintDataTo(StringStream* stream) {
|
|
|
|
|
| void HCallJSFunction::PrintDataTo(StringStream* stream) {
|
| - OperandAt(0)->PrintNameTo(stream);
|
| - stream->Add(" ");
|
| - OperandAt(1)->PrintNameTo(stream);
|
| + function()->PrintNameTo(stream);
|
| stream->Add(" ");
|
| stream->Add("#%d", argument_count());
|
| }
|
| @@ -1446,7 +1444,6 @@ HValue* HUnaryMathOperation::Canonicalize() {
|
|
|
| if (op() == kMathFloor) {
|
| HValue* val = value();
|
| - if (val->IsChange()) val = HChange::cast(val)->value();
|
| if (val->IsDiv() && (val->UseCount() == 1)) {
|
| HDiv* hdiv = HDiv::cast(val);
|
| HValue* left = hdiv->left();
|
| @@ -1485,17 +1482,8 @@ HValue* HUnaryMathOperation::Canonicalize() {
|
| }
|
| HMathFloorOfDiv* instr =
|
| HMathFloorOfDiv::New(block()->zone(), context(), new_left, new_right);
|
| - // Replace this HMathFloor instruction by the new HMathFloorOfDiv.
|
| instr->InsertBefore(this);
|
| - ReplaceAllUsesWith(instr);
|
| - Kill();
|
| - // We know the division had no other uses than this HMathFloor. Delete it.
|
| - // Dead code elimination will deal with |left| and |right| if
|
| - // appropriate.
|
| - hdiv->DeleteAndReplaceWith(NULL);
|
| -
|
| - // Return NULL to remove this instruction from the graph.
|
| - return NULL;
|
| + return instr;
|
| }
|
| }
|
| return this;
|
| @@ -2535,6 +2523,7 @@ HConstant::HConstant(Handle<Object> handle, Representation r)
|
| has_smi_value_ = has_int32_value_ && Smi::IsValid(int32_value_);
|
| double_value_ = n;
|
| has_double_value_ = true;
|
| + // TODO(titzer): if this heap number is new space, tenure a new one.
|
| } else {
|
| is_internalized_string_ = handle->IsInternalizedString();
|
| }
|
| @@ -2733,6 +2722,9 @@ void HConstant::PrintDataTo(StringStream* stream) {
|
| } else {
|
| handle(Isolate::Current())->ShortPrint(stream);
|
| }
|
| + if (!is_not_in_new_space_) {
|
| + stream->Add("[new space] ");
|
| + }
|
| }
|
|
|
|
|
| @@ -3353,12 +3345,6 @@ void HStoreGlobalCell::PrintDataTo(StringStream* stream) {
|
| }
|
|
|
|
|
| -void HStoreGlobalGeneric::PrintDataTo(StringStream* stream) {
|
| - stream->Add("%o = ", *name());
|
| - value()->PrintNameTo(stream);
|
| -}
|
| -
|
| -
|
| void HLoadContextSlot::PrintDataTo(StringStream* stream) {
|
| value()->PrintNameTo(stream);
|
| stream->Add("[%d]", slot_index());
|
|
|