| Index: src/rewriter.cc
|
| ===================================================================
|
| --- src/rewriter.cc (revision 1168)
|
| +++ src/rewriter.cc (working copy)
|
| @@ -243,6 +243,12 @@
|
| }
|
|
|
|
|
| +void AstOptimizer::VisitCatchExtensionObject(CatchExtensionObject* node) {
|
| + Visit(node->key());
|
| + Visit(node->value());
|
| +}
|
| +
|
| +
|
| void AstOptimizer::VisitAssignment(Assignment* node) {
|
| switch (node->op()) {
|
| case Token::INIT_VAR:
|
| @@ -282,7 +288,7 @@
|
| case Token::INIT_VAR:
|
| case Token::INIT_CONST:
|
| case Token::ASSIGN:
|
| - // Pure assigment copies the type from the value.
|
| + // Pure assignment copies the type from the value.
|
| node->type()->CopyFrom(node->value()->type());
|
| break;
|
| case Token::ASSIGN_BIT_OR:
|
| @@ -420,7 +426,7 @@
|
| node->type()->SetAsLikelySmi();
|
| }
|
| if (node->type()->IsLikelySmi()) {
|
| - // The type of this node changed to LIKELY_SMI. Propagate this knowlege
|
| + // The type of this node changed to LIKELY_SMI. Propagate this knowledge
|
| // down through the nodes.
|
| if (node->left()->type()->IsUnknown()) {
|
| node->left()->type()->SetAsLikelySmi();
|
| @@ -455,7 +461,7 @@
|
| node->type()->SetAsLikelySmi();
|
| }
|
| if (node->type()->IsLikelySmi()) {
|
| - // The type of this node changed to LIKELY_SMI. Propagate this knowlege
|
| + // The type of this node changed to LIKELY_SMI. Propagate this knowledge
|
| // down through the nodes.
|
| if (node->left()->type()->IsUnknown()) {
|
| node->left()->type()->SetAsLikelySmi();
|
| @@ -684,6 +690,12 @@
|
| }
|
|
|
|
|
| +void Processor::VisitCatchExtensionObject(CatchExtensionObject* node) {
|
| + USE(node);
|
| + UNREACHABLE();
|
| +}
|
| +
|
| +
|
| void Processor::VisitAssignment(Assignment* node) {
|
| USE(node);
|
| UNREACHABLE();
|
|
|