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

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

Issue 572913002: Revert r40306 because of crash. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5870 matching lines...) Expand 10 before | Expand all | Expand 10 after
5881 // Function in RAX. 5881 // Function in RAX.
5882 ASSERT(locs()->in(0).reg() == RAX); 5882 ASSERT(locs()->in(0).reg() == RAX);
5883 __ movq(RCX, FieldAddress(RAX, Function::instructions_offset())); 5883 __ movq(RCX, FieldAddress(RAX, Function::instructions_offset()));
5884 5884
5885 // RAX: Function. 5885 // RAX: Function.
5886 // R10: Arguments descriptor array. 5886 // R10: Arguments descriptor array.
5887 // RBX: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). 5887 // RBX: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value).
5888 __ xorq(RBX, RBX); 5888 __ xorq(RBX, RBX);
5889 __ addq(RCX, Immediate(Instructions::HeaderSize() - kHeapObjectTag)); 5889 __ addq(RCX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
5890 __ call(RCX); 5890 __ call(RCX);
5891 compiler->RecordCallInfo(token_pos(), 5891 compiler->AddCurrentDescriptor(RawPcDescriptors::kClosureCall,
5892 RawPcDescriptors::kClosureCall, 5892 deopt_id(),
5893 deopt_id(), 5893 token_pos());
5894 locs(), 5894 compiler->RecordSafepoint(locs());
5895 locs()->input_count()); 5895 // Marks either the continuation point in unoptimized code or the
5896 // deoptimization point in optimized code, after call.
5897 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id());
5898 if (compiler->is_optimizing()) {
5899 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos());
5900 } else {
5901 // Add deoptimization continuation point after the call and before the
5902 // arguments are removed.
5903 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
5904 deopt_id_after,
5905 token_pos());
5906 }
5896 __ Drop(argument_count); 5907 __ Drop(argument_count);
5897 } 5908 }
5898 5909
5899 5910
5900 LocationSummary* BooleanNegateInstr::MakeLocationSummary(Isolate* isolate, 5911 LocationSummary* BooleanNegateInstr::MakeLocationSummary(Isolate* isolate,
5901 bool opt) const { 5912 bool opt) const {
5902 return LocationSummary::Make(isolate, 5913 return LocationSummary::Make(isolate,
5903 1, 5914 1,
5904 Location::RequiresRegister(), 5915 Location::RequiresRegister(),
5905 LocationSummary::kNoCall); 5916 LocationSummary::kNoCall);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
5948 __ movq(R10, Immediate(kInvalidObjectPointer)); 5959 __ movq(R10, Immediate(kInvalidObjectPointer));
5949 __ movq(RBX, Immediate(kInvalidObjectPointer)); 5960 __ movq(RBX, Immediate(kInvalidObjectPointer));
5950 #endif 5961 #endif
5951 } 5962 }
5952 5963
5953 } // namespace dart 5964 } // namespace dart
5954 5965
5955 #undef __ 5966 #undef __
5956 5967
5957 #endif // defined TARGET_ARCH_X64 5968 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698