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

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

Issue 10912120: Restoring assert that deopt_id() should be accessed only if the instruction can deoptimize. Print r… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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_ia32.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) 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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Note that the nop(8) byte pattern is not recognized by the debugger. 107 // Note that the nop(8) byte pattern is not recognized by the debugger.
108 __ nop(1); 108 __ nop(1);
109 __ nop(1); 109 __ nop(1);
110 __ nop(1); 110 __ nop(1);
111 __ nop(1); 111 __ nop(1);
112 __ nop(1); 112 __ nop(1);
113 __ nop(1); 113 __ nop(1);
114 __ nop(1); 114 __ nop(1);
115 __ nop(1); 115 __ nop(1);
116 compiler->AddCurrentDescriptor(PcDescriptors::kReturn, 116 compiler->AddCurrentDescriptor(PcDescriptors::kReturn,
117 deopt_id(), 117 Isolate::kNoDeoptId,
118 token_pos()); 118 token_pos());
119 } 119 }
120 120
121 121
122 LocationSummary* ClosureCallInstr::MakeLocationSummary() const { 122 LocationSummary* ClosureCallInstr::MakeLocationSummary() const {
123 const intptr_t kNumInputs = 0; 123 const intptr_t kNumInputs = 0;
124 const intptr_t kNumTemps = 1; 124 const intptr_t kNumTemps = 1;
125 LocationSummary* result = 125 LocationSummary* result =
126 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall); 126 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall);
127 result->set_out(Location::RegisterLocation(RAX)); 127 result->set_out(Location::RegisterLocation(RAX));
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 __ j(ABOVE_EQUAL, deopt); 2275 __ j(ABOVE_EQUAL, deopt);
2276 } 2276 }
2277 } 2277 }
2278 2278
2279 2279
2280 } // namespace dart 2280 } // namespace dart
2281 2281
2282 #undef __ 2282 #undef __
2283 2283
2284 #endif // defined TARGET_ARCH_X64 2284 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698