| 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/ast.h" | 5 #include "src/ast.h" |
| 6 #include "src/ast-numbering.h" | 6 #include "src/ast-numbering.h" |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 // TODO(rossberg) | 441 // TODO(rossberg) |
| 442 } | 442 } |
| 443 | 443 |
| 444 | 444 |
| 445 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { | 445 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { |
| 446 Comment cmnt(masm_, "[ VariableProxy"); | 446 Comment cmnt(masm_, "[ VariableProxy"); |
| 447 EmitVariableLoad(expr); | 447 EmitVariableLoad(expr); |
| 448 } | 448 } |
| 449 | 449 |
| 450 | 450 |
| 451 void FullCodeGenerator::VisitRestParameter(RestParameter* node) { |
| 452 UNREACHABLE(); |
| 453 } |
| 454 |
| 455 |
| 451 int FullCodeGenerator::DeclareGlobalsFlags() { | 456 int FullCodeGenerator::DeclareGlobalsFlags() { |
| 452 DCHECK(DeclareGlobalsLanguageMode::is_valid(language_mode())); | 457 DCHECK(DeclareGlobalsLanguageMode::is_valid(language_mode())); |
| 453 return DeclareGlobalsEvalFlag::encode(is_eval()) | | 458 return DeclareGlobalsEvalFlag::encode(is_eval()) | |
| 454 DeclareGlobalsNativeFlag::encode(is_native()) | | 459 DeclareGlobalsNativeFlag::encode(is_native()) | |
| 455 DeclareGlobalsLanguageMode::encode(language_mode()); | 460 DeclareGlobalsLanguageMode::encode(language_mode()); |
| 456 } | 461 } |
| 457 | 462 |
| 458 | 463 |
| 459 void FullCodeGenerator::EmitSubString(CallRuntime* expr) { | 464 void FullCodeGenerator::EmitSubString(CallRuntime* expr) { |
| 460 // Load the arguments on the stack and call the stub. | 465 // Load the arguments on the stack and call the stub. |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1588 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1593 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
| 1589 codegen_->scope_ = saved_scope_; | 1594 codegen_->scope_ = saved_scope_; |
| 1590 } | 1595 } |
| 1591 | 1596 |
| 1592 | 1597 |
| 1593 #undef __ | 1598 #undef __ |
| 1594 | 1599 |
| 1595 | 1600 |
| 1596 } // namespace internal | 1601 } // namespace internal |
| 1597 } // namespace v8 | 1602 } // namespace v8 |
| OLD | NEW |