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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { | 554 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { |
555 EmitIntrinsicAsStubCall(expr, CodeFactory::NumberToString(isolate())); | 555 EmitIntrinsicAsStubCall(expr, CodeFactory::NumberToString(isolate())); |
556 } | 556 } |
557 | 557 |
558 | 558 |
559 void FullCodeGenerator::EmitToString(CallRuntime* expr) { | 559 void FullCodeGenerator::EmitToString(CallRuntime* expr) { |
560 EmitIntrinsicAsStubCall(expr, CodeFactory::ToString(isolate())); | 560 EmitIntrinsicAsStubCall(expr, CodeFactory::ToString(isolate())); |
561 } | 561 } |
562 | 562 |
563 | 563 |
564 void FullCodeGenerator::EmitToName(CallRuntime* expr) { | |
565 EmitIntrinsicAsStubCall(expr, CodeFactory::ToName(isolate())); | |
566 } | |
567 | |
568 | |
569 void FullCodeGenerator::EmitToLength(CallRuntime* expr) { | 564 void FullCodeGenerator::EmitToLength(CallRuntime* expr) { |
570 EmitIntrinsicAsStubCall(expr, CodeFactory::ToLength(isolate())); | 565 EmitIntrinsicAsStubCall(expr, CodeFactory::ToLength(isolate())); |
571 } | 566 } |
572 | 567 |
573 void FullCodeGenerator::EmitToInteger(CallRuntime* expr) { | 568 void FullCodeGenerator::EmitToInteger(CallRuntime* expr) { |
574 EmitIntrinsicAsStubCall(expr, CodeFactory::ToInteger(isolate())); | 569 EmitIntrinsicAsStubCall(expr, CodeFactory::ToInteger(isolate())); |
575 } | 570 } |
576 | 571 |
577 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { | 572 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { |
578 EmitIntrinsicAsStubCall(expr, CodeFactory::ToNumber(isolate())); | 573 EmitIntrinsicAsStubCall(expr, CodeFactory::ToNumber(isolate())); |
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 return var->scope()->is_nonlinear() || | 1962 return var->scope()->is_nonlinear() || |
1968 var->initializer_position() >= proxy->position(); | 1963 var->initializer_position() >= proxy->position(); |
1969 } | 1964 } |
1970 | 1965 |
1971 | 1966 |
1972 #undef __ | 1967 #undef __ |
1973 | 1968 |
1974 | 1969 |
1975 } // namespace internal | 1970 } // namespace internal |
1976 } // namespace v8 | 1971 } // namespace v8 |
OLD | NEW |