| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { | 609 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
| 610 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) | 610 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) |
| 611 ? oracle->GetObjectLiteralStoreMap(this) | 611 ? oracle->GetObjectLiteralStoreMap(this) |
| 612 : Handle<Map>::null(); | 612 : Handle<Map>::null(); |
| 613 } | 613 } |
| 614 | 614 |
| 615 | 615 |
| 616 // ---------------------------------------------------------------------------- | 616 // ---------------------------------------------------------------------------- |
| 617 // Implementation of AstVisitor | 617 // Implementation of AstVisitor |
| 618 | 618 |
| 619 bool AstVisitor::CheckStackOverflow() { | |
| 620 if (stack_overflow_) return true; | |
| 621 StackLimitCheck check(isolate_); | |
| 622 if (!check.HasOverflowed()) return false; | |
| 623 return (stack_overflow_ = true); | |
| 624 } | |
| 625 | |
| 626 | |
| 627 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { | 619 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { |
| 628 for (int i = 0; i < declarations->length(); i++) { | 620 for (int i = 0; i < declarations->length(); i++) { |
| 629 Visit(declarations->at(i)); | 621 Visit(declarations->at(i)); |
| 630 } | 622 } |
| 631 } | 623 } |
| 632 | 624 |
| 633 | 625 |
| 634 void AstVisitor::VisitStatements(ZoneList<Statement*>* statements) { | 626 void AstVisitor::VisitStatements(ZoneList<Statement*>* statements) { |
| 635 for (int i = 0; i < statements->length(); i++) { | 627 for (int i = 0; i < statements->length(); i++) { |
| 636 Visit(statements->at(i)); | 628 Visit(statements->at(i)); |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); | 1110 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); |
| 1119 str = arr; | 1111 str = arr; |
| 1120 } else { | 1112 } else { |
| 1121 str = DoubleToCString(handle_->Number(), buffer); | 1113 str = DoubleToCString(handle_->Number(), buffer); |
| 1122 } | 1114 } |
| 1123 return FACTORY->NewStringFromAscii(CStrVector(str)); | 1115 return FACTORY->NewStringFromAscii(CStrVector(str)); |
| 1124 } | 1116 } |
| 1125 | 1117 |
| 1126 | 1118 |
| 1127 } } // namespace v8::internal | 1119 } } // namespace v8::internal |
| OLD | NEW |