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/full-codegen/full-codegen.h" | 5 #include "src/full-codegen/full-codegen.h" |
6 | 6 |
7 #include "src/ast/ast-numbering.h" | 7 #include "src/ast/ast-numbering.h" |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 // Exception handling is not supported. | 1225 // Exception handling is not supported. |
1226 UNREACHABLE(); | 1226 UNREACHABLE(); |
1227 } | 1227 } |
1228 | 1228 |
1229 | 1229 |
1230 void FullCodeGenerator::VisitDebuggerStatement(DebuggerStatement* stmt) { | 1230 void FullCodeGenerator::VisitDebuggerStatement(DebuggerStatement* stmt) { |
1231 Comment cmnt(masm_, "[ DebuggerStatement"); | 1231 Comment cmnt(masm_, "[ DebuggerStatement"); |
1232 SetStatementPosition(stmt); | 1232 SetStatementPosition(stmt); |
1233 | 1233 |
1234 __ DebugBreak(); | 1234 __ DebugBreak(); |
1235 // Ignore the return value. | 1235 __ MaybeDropFrames(); |
1236 | 1236 |
1237 PrepareForBailoutForId(stmt->DebugBreakId(), BailoutState::NO_REGISTERS); | 1237 PrepareForBailoutForId(stmt->DebugBreakId(), BailoutState::NO_REGISTERS); |
1238 } | 1238 } |
1239 | 1239 |
1240 | 1240 |
1241 void FullCodeGenerator::VisitCaseClause(CaseClause* clause) { | 1241 void FullCodeGenerator::VisitCaseClause(CaseClause* clause) { |
1242 UNREACHABLE(); | 1242 UNREACHABLE(); |
1243 } | 1243 } |
1244 | 1244 |
1245 | 1245 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 return info_->has_simple_parameters(); | 1603 return info_->has_simple_parameters(); |
1604 } | 1604 } |
1605 | 1605 |
1606 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } | 1606 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } |
1607 | 1607 |
1608 #undef __ | 1608 #undef __ |
1609 | 1609 |
1610 | 1610 |
1611 } // namespace internal | 1611 } // namespace internal |
1612 } // namespace v8 | 1612 } // namespace v8 |
OLD | NEW |