Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: runtime/vm/intermediate_language_x64.cc

Issue 335443002: Setup R10/EDX to be valid Oops before stub calls (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 5807 matching lines...) Expand 10 before | Expand all | Expand 10 after
5818 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5818 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5819 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); 5819 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls()));
5820 const ExternalLabel label(stub.EntryPoint()); 5820 const ExternalLabel label(stub.EntryPoint());
5821 compiler->GenerateCall(token_pos(), 5821 compiler->GenerateCall(token_pos(),
5822 &label, 5822 &label,
5823 PcDescriptors::kOther, 5823 PcDescriptors::kOther,
5824 locs()); 5824 locs());
5825 __ Drop(ArgumentCount()); // Discard arguments. 5825 __ Drop(ArgumentCount()); // Discard arguments.
5826 } 5826 }
5827 5827
5828
5829 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5830 ASSERT(!compiler->is_optimizing());
5831 const ExternalLabel label(StubCode::DebugStepCheckEntryPoint());
5832 __ movq(R10, Immediate(0));
5833 __ movq(RBX, Immediate(0));
5834 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
5835 #if defined(DEBUG)
5836 __ movq(R10, Immediate(1)); // Garbage that looks like an object.
5837 __ movq(RBX, Immediate(1));
5838 #endif
5839 }
5840
5828 } // namespace dart 5841 } // namespace dart
5829 5842
5830 #undef __ 5843 #undef __
5831 5844
5832 #endif // defined TARGET_ARCH_X64 5845 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698