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

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

Issue 992003002: - Remove stale code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | « no previous file | runtime/vm/isolate.h » ('j') | 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/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback(); 1217 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback();
1218 if (callback) { 1218 if (callback) {
1219 if ((*callback)()) { 1219 if ((*callback)()) {
1220 return; 1220 return;
1221 } else { 1221 } else {
1222 // TODO(turnidge): Unwind the stack. 1222 // TODO(turnidge): Unwind the stack.
1223 UNIMPLEMENTED(); 1223 UNIMPLEMENTED();
1224 } 1224 }
1225 } 1225 }
1226 } 1226 }
1227 if ((interrupt_bits & Isolate::kVmStatusInterrupt) != 0) {
1228 Dart_IsolateInterruptCallback callback = isolate->VmStatsCallback();
1229 if (callback) {
1230 (*callback)();
1231 }
1232 }
1233 1227
1234 if ((stack_overflow_flags & Isolate::kOsrRequest) != 0) { 1228 if ((stack_overflow_flags & Isolate::kOsrRequest) != 0) {
1235 ASSERT(FLAG_use_osr); 1229 ASSERT(FLAG_use_osr);
1236 DartFrameIterator iterator; 1230 DartFrameIterator iterator;
1237 StackFrame* frame = iterator.NextFrame(); 1231 StackFrame* frame = iterator.NextFrame();
1238 ASSERT(frame != NULL); 1232 ASSERT(frame != NULL);
1239 const Code& code = Code::ZoneHandle(frame->LookupDartCode()); 1233 const Code& code = Code::ZoneHandle(frame->LookupDartCode());
1240 ASSERT(!code.IsNull()); 1234 ASSERT(!code.IsNull());
1241 const Function& function = Function::Handle(code.function()); 1235 const Function& function = Function::Handle(code.function());
1242 ASSERT(!function.IsNull()); 1236 ASSERT(!function.IsNull());
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 const intptr_t elm_size = old_data.ElementSizeInBytes(); 1673 const intptr_t elm_size = old_data.ElementSizeInBytes();
1680 const TypedData& new_data = 1674 const TypedData& new_data =
1681 TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld)); 1675 TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld));
1682 TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size); 1676 TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size);
1683 typed_data_cell.SetAt(0, new_data); 1677 typed_data_cell.SetAt(0, new_data);
1684 arguments.SetReturn(new_data); 1678 arguments.SetReturn(new_data);
1685 } 1679 }
1686 1680
1687 1681
1688 } // namespace dart 1682 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698