| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 } | 327 } |
| 328 | 328 |
| 329 | 329 |
| 330 void FlowGraphCompiler::VisitInstanceOf(InstanceOfComp* comp) { | 330 void FlowGraphCompiler::VisitInstanceOf(InstanceOfComp* comp) { |
| 331 Bailout("InstanceOf"); | 331 Bailout("InstanceOf"); |
| 332 } | 332 } |
| 333 | 333 |
| 334 | 334 |
| 335 void FlowGraphCompiler::VisitAllocateObject(AllocateObjectComp* comp) { | 335 void FlowGraphCompiler::VisitAllocateObject(AllocateObjectComp* comp) { |
| 336 const Class& cls = Class::ZoneHandle(comp->constructor().owner()); | 336 const Class& cls = Class::ZoneHandle(comp->constructor().owner()); |
| 337 const bool requires_type_arguments = cls.HasTypeArguments(); | |
| 338 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls)); | 337 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls)); |
| 339 const ExternalLabel label(cls.ToCString(), stub.EntryPoint()); | 338 const ExternalLabel label(cls.ToCString(), stub.EntryPoint()); |
| 340 GenerateCall(comp->token_index(), &label, PcDescriptors::kOther); | 339 GenerateCall(comp->token_index(), &label, PcDescriptors::kOther); |
| 341 for (intptr_t i = 0; i < comp->arguments().length(); i++) { | 340 for (intptr_t i = 0; i < comp->arguments().length(); i++) { |
| 342 __ popq(RCX); // Discard allocation argument | 341 __ popq(RCX); // Discard allocation argument |
| 343 } | 342 } |
| 344 } | 343 } |
| 345 | 344 |
| 346 | 345 |
| 347 void FlowGraphCompiler::VisitCreateArray(CreateArrayComp* comp) { | 346 void FlowGraphCompiler::VisitCreateArray(CreateArrayComp* comp) { |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { | 632 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { |
| 634 // We don't compile exception handlers yet. | 633 // We don't compile exception handlers yet. |
| 635 code.set_exception_handlers( | 634 code.set_exception_handlers( |
| 636 ExceptionHandlers::Handle(ExceptionHandlers::New(0))); | 635 ExceptionHandlers::Handle(ExceptionHandlers::New(0))); |
| 637 } | 636 } |
| 638 | 637 |
| 639 | 638 |
| 640 } // namespace dart | 639 } // namespace dart |
| 641 | 640 |
| 642 #endif // defined TARGET_ARCH_X64 | 641 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |