| 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/scopeinfo.h" | 10 #include "src/ast/scopeinfo.h" |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 | 581 |
| 582 void FullCodeGenerator::EmitToName(CallRuntime* expr) { | 582 void FullCodeGenerator::EmitToName(CallRuntime* expr) { |
| 583 EmitIntrinsicAsStubCall(expr, CodeFactory::ToName(isolate())); | 583 EmitIntrinsicAsStubCall(expr, CodeFactory::ToName(isolate())); |
| 584 } | 584 } |
| 585 | 585 |
| 586 | 586 |
| 587 void FullCodeGenerator::EmitToLength(CallRuntime* expr) { | 587 void FullCodeGenerator::EmitToLength(CallRuntime* expr) { |
| 588 EmitIntrinsicAsStubCall(expr, CodeFactory::ToLength(isolate())); | 588 EmitIntrinsicAsStubCall(expr, CodeFactory::ToLength(isolate())); |
| 589 } | 589 } |
| 590 | 590 |
| 591 void FullCodeGenerator::EmitToInteger(CallRuntime* expr) { |
| 592 EmitIntrinsicAsStubCall(expr, CodeFactory::ToInteger(isolate())); |
| 593 } |
| 591 | 594 |
| 592 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { | 595 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { |
| 593 EmitIntrinsicAsStubCall(expr, CodeFactory::ToNumber(isolate())); | 596 EmitIntrinsicAsStubCall(expr, CodeFactory::ToNumber(isolate())); |
| 594 } | 597 } |
| 595 | 598 |
| 596 | 599 |
| 597 void FullCodeGenerator::EmitToObject(CallRuntime* expr) { | 600 void FullCodeGenerator::EmitToObject(CallRuntime* expr) { |
| 598 EmitIntrinsicAsStubCall(expr, CodeFactory::ToObject(isolate())); | 601 EmitIntrinsicAsStubCall(expr, CodeFactory::ToObject(isolate())); |
| 599 } | 602 } |
| 600 | 603 |
| (...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1949 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1952 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
| 1950 var->initializer_position() >= proxy->position(); | 1953 var->initializer_position() >= proxy->position(); |
| 1951 } | 1954 } |
| 1952 | 1955 |
| 1953 | 1956 |
| 1954 #undef __ | 1957 #undef __ |
| 1955 | 1958 |
| 1956 | 1959 |
| 1957 } // namespace internal | 1960 } // namespace internal |
| 1958 } // namespace v8 | 1961 } // namespace v8 |
| OLD | NEW |