| OLD | NEW |
| 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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1342 } | 1342 } |
| 1343 if (FLAG_support_debugger && do_stacktrace) { | 1343 if (FLAG_support_debugger && do_stacktrace) { |
| 1344 String& var_name = String::Handle(); | 1344 String& var_name = String::Handle(); |
| 1345 Instance& var_value = Instance::Handle(); | 1345 Instance& var_value = Instance::Handle(); |
| 1346 DebuggerStackTrace* stack = isolate->debugger()->StackTrace(); | 1346 DebuggerStackTrace* stack = isolate->debugger()->StackTrace(); |
| 1347 intptr_t num_frames = stack->Length(); | 1347 intptr_t num_frames = stack->Length(); |
| 1348 for (intptr_t i = 0; i < num_frames; i++) { | 1348 for (intptr_t i = 0; i < num_frames; i++) { |
| 1349 ActivationFrame* frame = stack->FrameAt(i); | 1349 ActivationFrame* frame = stack->FrameAt(i); |
| 1350 // Variable locations and number are unknown when precompiling. | 1350 // Variable locations and number are unknown when precompiling. |
| 1351 const int num_vars = | 1351 const int num_vars = |
| 1352 FLAG_precompiled_mode ? 0 : frame->NumLocalVariables(); | 1352 FLAG_precompiled_runtime ? 0 : frame->NumLocalVariables(); |
| 1353 TokenPosition unused = TokenPosition::kNoSource; | 1353 TokenPosition unused = TokenPosition::kNoSource; |
| 1354 for (intptr_t v = 0; v < num_vars; v++) { | 1354 for (intptr_t v = 0; v < num_vars; v++) { |
| 1355 frame->VariableAt(v, &var_name, &unused, &unused, &var_value); | 1355 frame->VariableAt(v, &var_name, &unused, &unused, &var_value); |
| 1356 } | 1356 } |
| 1357 } | 1357 } |
| 1358 } | 1358 } |
| 1359 | 1359 |
| 1360 const Error& error = Error::Handle(isolate->HandleInterrupts()); | 1360 const Error& error = Error::Handle(isolate->HandleInterrupts()); |
| 1361 if (!error.IsNull()) { | 1361 if (!error.IsNull()) { |
| 1362 Exceptions::PropagateError(error); | 1362 Exceptions::PropagateError(error); |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1887 const intptr_t elm_size = old_data.ElementSizeInBytes(); | 1887 const intptr_t elm_size = old_data.ElementSizeInBytes(); |
| 1888 const TypedData& new_data = | 1888 const TypedData& new_data = |
| 1889 TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld)); | 1889 TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld)); |
| 1890 TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size); | 1890 TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size); |
| 1891 typed_data_cell.SetAt(0, new_data); | 1891 typed_data_cell.SetAt(0, new_data); |
| 1892 arguments.SetReturn(new_data); | 1892 arguments.SetReturn(new_data); |
| 1893 } | 1893 } |
| 1894 | 1894 |
| 1895 | 1895 |
| 1896 } // namespace dart | 1896 } // namespace dart |
| OLD | NEW |