| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/ast.h" | 7 #include "src/ast.h" |
| 8 #include "src/ast-numbering.h" | 8 #include "src/ast-numbering.h" |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 281 } |
| 282 } | 282 } |
| 283 | 283 |
| 284 | 284 |
| 285 void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) { | 285 void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) { |
| 286 Visit(expr->left()); | 286 Visit(expr->left()); |
| 287 Visit(expr->right()); | 287 Visit(expr->right()); |
| 288 } | 288 } |
| 289 | 289 |
| 290 | 290 |
| 291 void BreakableStatementChecker::VisitSpread(Spread* expr) { |
| 292 Visit(expr->expression()); |
| 293 } |
| 294 |
| 295 |
| 291 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { | 296 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { |
| 292 } | 297 } |
| 293 | 298 |
| 294 | 299 |
| 295 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {} | 300 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {} |
| 296 | 301 |
| 297 | 302 |
| 298 #define __ ACCESS_MASM(masm()) | 303 #define __ ACCESS_MASM(masm()) |
| 299 | 304 |
| 300 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { | 305 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
| (...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1649 | 1654 |
| 1650 | 1655 |
| 1651 void FullCodeGenerator::VisitThrow(Throw* expr) { | 1656 void FullCodeGenerator::VisitThrow(Throw* expr) { |
| 1652 Comment cmnt(masm_, "[ Throw"); | 1657 Comment cmnt(masm_, "[ Throw"); |
| 1653 VisitForStackValue(expr->exception()); | 1658 VisitForStackValue(expr->exception()); |
| 1654 __ CallRuntime(Runtime::kThrow, 1); | 1659 __ CallRuntime(Runtime::kThrow, 1); |
| 1655 // Never returns here. | 1660 // Never returns here. |
| 1656 } | 1661 } |
| 1657 | 1662 |
| 1658 | 1663 |
| 1664 void FullCodeGenerator::VisitSpread(Spread* expr) { |
| 1665 Visit(expr->expression()); |
| 1666 } |
| 1667 |
| 1668 |
| 1659 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryCatch::Exit( | 1669 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryCatch::Exit( |
| 1660 int* stack_depth, | 1670 int* stack_depth, |
| 1661 int* context_length) { | 1671 int* context_length) { |
| 1662 // The macros used here must preserve the result register. | 1672 // The macros used here must preserve the result register. |
| 1663 __ Drop(*stack_depth); | 1673 __ Drop(*stack_depth); |
| 1664 __ PopTryHandler(); | 1674 __ PopTryHandler(); |
| 1665 *stack_depth = 0; | 1675 *stack_depth = 0; |
| 1666 return previous_; | 1676 return previous_; |
| 1667 } | 1677 } |
| 1668 | 1678 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 } | 1828 } |
| 1819 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1829 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
| 1820 codegen_->scope_ = saved_scope_; | 1830 codegen_->scope_ = saved_scope_; |
| 1821 } | 1831 } |
| 1822 | 1832 |
| 1823 | 1833 |
| 1824 #undef __ | 1834 #undef __ |
| 1825 | 1835 |
| 1826 | 1836 |
| 1827 } } // namespace v8::internal | 1837 } } // namespace v8::internal |
| OLD | NEW |