| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 pos_ = assignment->position(); | 288 pos_ = assignment->position(); |
| 289 CopyAnalysisResultsFrom(assignment); | 289 CopyAnalysisResultsFrom(assignment); |
| 290 } | 290 } |
| 291 | 291 |
| 292 | 292 |
| 293 // ---------------------------------------------------------------------------- | 293 // ---------------------------------------------------------------------------- |
| 294 // Implementation of AstVisitor | 294 // Implementation of AstVisitor |
| 295 | 295 |
| 296 bool AstVisitor::CheckStackOverflow() { | 296 bool AstVisitor::CheckStackOverflow() { |
| 297 if (stack_overflow_) return true; | 297 if (stack_overflow_) return true; |
| 298 StackLimitCheck check; | 298 StackLimitCheck check(Isolate::Current()); |
| 299 if (!check.HasOverflowed()) return false; | 299 if (!check.HasOverflowed()) return false; |
| 300 return (stack_overflow_ = true); | 300 return (stack_overflow_ = true); |
| 301 } | 301 } |
| 302 | 302 |
| 303 | 303 |
| 304 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { | 304 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { |
| 305 for (int i = 0; i < declarations->length(); i++) { | 305 for (int i = 0; i < declarations->length(); i++) { |
| 306 Visit(declarations->at(i)); | 306 Visit(declarations->at(i)); |
| 307 } | 307 } |
| 308 } | 308 } |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 cond_(NULL), | 634 cond_(NULL), |
| 635 may_have_function_literal_(true) { | 635 may_have_function_literal_(true) { |
| 636 } | 636 } |
| 637 | 637 |
| 638 | 638 |
| 639 CaseClause::CaseClause(Expression* label, ZoneList<Statement*>* statements) | 639 CaseClause::CaseClause(Expression* label, ZoneList<Statement*>* statements) |
| 640 : label_(label), statements_(statements) { | 640 : label_(label), statements_(statements) { |
| 641 } | 641 } |
| 642 | 642 |
| 643 } } // namespace v8::internal | 643 } } // namespace v8::internal |
| OLD | NEW |