| 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.h" | 7 #include "src/ast/ast.h" |
| 8 #include "src/ast/ast-numbering.h" | 8 #include "src/ast/ast-numbering.h" |
| 9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
| 10 #include "src/ast/scopeinfo.h" | 10 #include "src/ast/scopeinfo.h" |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { | 513 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { |
| 514 EmitIntrinsicAsStubCall(expr, CodeFactory::NumberToString(isolate())); | 514 EmitIntrinsicAsStubCall(expr, CodeFactory::NumberToString(isolate())); |
| 515 } | 515 } |
| 516 | 516 |
| 517 | 517 |
| 518 void FullCodeGenerator::EmitToString(CallRuntime* expr) { | 518 void FullCodeGenerator::EmitToString(CallRuntime* expr) { |
| 519 EmitIntrinsicAsStubCall(expr, CodeFactory::ToString(isolate())); | 519 EmitIntrinsicAsStubCall(expr, CodeFactory::ToString(isolate())); |
| 520 } | 520 } |
| 521 | 521 |
| 522 | 522 |
| 523 void FullCodeGenerator::EmitToName(CallRuntime* expr) { |
| 524 EmitIntrinsicAsStubCall(expr, CodeFactory::ToName(isolate())); |
| 525 } |
| 526 |
| 527 |
| 523 void FullCodeGenerator::EmitToLength(CallRuntime* expr) { | 528 void FullCodeGenerator::EmitToLength(CallRuntime* expr) { |
| 524 EmitIntrinsicAsStubCall(expr, CodeFactory::ToLength(isolate())); | 529 EmitIntrinsicAsStubCall(expr, CodeFactory::ToLength(isolate())); |
| 525 } | 530 } |
| 526 | 531 |
| 527 | 532 |
| 528 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { | 533 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { |
| 529 EmitIntrinsicAsStubCall(expr, CodeFactory::ToNumber(isolate())); | 534 EmitIntrinsicAsStubCall(expr, CodeFactory::ToNumber(isolate())); |
| 530 } | 535 } |
| 531 | 536 |
| 532 | 537 |
| (...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1730 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1735 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
| 1731 var->initializer_position() >= proxy->position(); | 1736 var->initializer_position() >= proxy->position(); |
| 1732 } | 1737 } |
| 1733 | 1738 |
| 1734 | 1739 |
| 1735 #undef __ | 1740 #undef __ |
| 1736 | 1741 |
| 1737 | 1742 |
| 1738 } // namespace internal | 1743 } // namespace internal |
| 1739 } // namespace v8 | 1744 } // namespace v8 |
| OLD | NEW |