| 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/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 } | 599 } |
| 600 __ Call(callable.code(), RelocInfo::CODE_TARGET); | 600 __ Call(callable.code(), RelocInfo::CODE_TARGET); |
| 601 | 601 |
| 602 // Reload the context register after the call as i.e. TurboFan code stubs | 602 // Reload the context register after the call as i.e. TurboFan code stubs |
| 603 // won't preserve the context register. | 603 // won't preserve the context register. |
| 604 LoadFromFrameField(StandardFrameConstants::kContextOffset, | 604 LoadFromFrameField(StandardFrameConstants::kContextOffset, |
| 605 context_register()); | 605 context_register()); |
| 606 context()->Plug(result_register()); | 606 context()->Plug(result_register()); |
| 607 } | 607 } |
| 608 | 608 |
| 609 void FullCodeGenerator::EmitNewObject(CallRuntime* expr) { | |
| 610 EmitIntrinsicAsStubCall(expr, CodeFactory::FastNewObject(isolate())); | |
| 611 } | |
| 612 | |
| 613 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { | 609 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { |
| 614 EmitIntrinsicAsStubCall(expr, CodeFactory::NumberToString(isolate())); | 610 EmitIntrinsicAsStubCall(expr, CodeFactory::NumberToString(isolate())); |
| 615 } | 611 } |
| 616 | 612 |
| 617 | 613 |
| 618 void FullCodeGenerator::EmitToString(CallRuntime* expr) { | 614 void FullCodeGenerator::EmitToString(CallRuntime* expr) { |
| 619 EmitIntrinsicAsStubCall(expr, CodeFactory::ToString(isolate())); | 615 EmitIntrinsicAsStubCall(expr, CodeFactory::ToString(isolate())); |
| 620 } | 616 } |
| 621 | 617 |
| 622 | 618 |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 return info_->has_simple_parameters(); | 1608 return info_->has_simple_parameters(); |
| 1613 } | 1609 } |
| 1614 | 1610 |
| 1615 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } | 1611 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } |
| 1616 | 1612 |
| 1617 #undef __ | 1613 #undef __ |
| 1618 | 1614 |
| 1619 | 1615 |
| 1620 } // namespace internal | 1616 } // namespace internal |
| 1621 } // namespace v8 | 1617 } // namespace v8 |
| OLD | NEW |