| 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/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
| 9 #include "src/debug.h" | 9 #include "src/debug.h" |
| 10 #include "src/full-codegen.h" | 10 #include "src/full-codegen.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) { | 278 void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) { |
| 279 Visit(expr->left()); | 279 Visit(expr->left()); |
| 280 Visit(expr->right()); | 280 Visit(expr->right()); |
| 281 } | 281 } |
| 282 | 282 |
| 283 | 283 |
| 284 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { | 284 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { |
| 285 } | 285 } |
| 286 | 286 |
| 287 | 287 |
| 288 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {} |
| 289 |
| 290 |
| 288 #define __ ACCESS_MASM(masm()) | 291 #define __ ACCESS_MASM(masm()) |
| 289 | 292 |
| 290 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { | 293 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
| 291 Isolate* isolate = info->isolate(); | 294 Isolate* isolate = info->isolate(); |
| 292 | 295 |
| 293 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); | 296 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); |
| 294 | 297 |
| 295 Handle<Script> script = info->script(); | 298 Handle<Script> script = info->script(); |
| 296 if (!script->IsUndefined() && !script->source()->IsUndefined()) { | 299 if (!script->IsUndefined() && !script->source()->IsUndefined()) { |
| 297 int len = String::cast(script->source())->length(); | 300 int len = String::cast(script->source())->length(); |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 } | 1685 } |
| 1683 return true; | 1686 return true; |
| 1684 } | 1687 } |
| 1685 #endif // DEBUG | 1688 #endif // DEBUG |
| 1686 | 1689 |
| 1687 | 1690 |
| 1688 #undef __ | 1691 #undef __ |
| 1689 | 1692 |
| 1690 | 1693 |
| 1691 } } // namespace v8::internal | 1694 } } // namespace v8::internal |
| OLD | NEW |