| OLD | NEW |
| 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/debugger.h" | 5 #include "vm/debugger.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "platform/address_sanitizer.h" | 9 #include "platform/address_sanitizer.h" |
| 10 | 10 |
| 11 #include "vm/code_patcher.h" | 11 #include "vm/code_patcher.h" |
| 12 #include "vm/compiler.h" | 12 #include "vm/compiler.h" |
| 13 #include "vm/dart_entry.h" | 13 #include "vm/dart_entry.h" |
| 14 #include "vm/deopt_instructions.h" | 14 #include "vm/deopt_instructions.h" |
| 15 #include "vm/disassembler.h" | 15 #include "vm/disassembler.h" |
| 16 #include "vm/flags.h" | 16 #include "vm/flags.h" |
| 17 #include "vm/globals.h" | 17 #include "vm/globals.h" |
| 18 #include "vm/json_stream.h" | 18 #include "vm/json_stream.h" |
| 19 #include "vm/kernel_reader.h" | 19 #include "vm/kernel.h" |
| 20 #include "vm/longjump.h" | 20 #include "vm/longjump.h" |
| 21 #include "vm/message_handler.h" | 21 #include "vm/message_handler.h" |
| 22 #include "vm/object.h" | 22 #include "vm/object.h" |
| 23 #include "vm/object_store.h" | 23 #include "vm/object_store.h" |
| 24 #include "vm/os.h" | 24 #include "vm/os.h" |
| 25 #include "vm/parser.h" | 25 #include "vm/parser.h" |
| 26 #include "vm/port.h" | 26 #include "vm/port.h" |
| 27 #include "vm/runtime_entry.h" | 27 #include "vm/runtime_entry.h" |
| 28 #include "vm/service.h" | 28 #include "vm/service.h" |
| 29 #include "vm/service_event.h" | 29 #include "vm/service_event.h" |
| (...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2665 continue; | 2665 continue; |
| 2666 } | 2666 } |
| 2667 if (!field.has_initializer()) { | 2667 if (!field.has_initializer()) { |
| 2668 continue; | 2668 continue; |
| 2669 } | 2669 } |
| 2670 | 2670 |
| 2671 bool has_func_literal_initializer = false; | 2671 bool has_func_literal_initializer = false; |
| 2672 #ifndef DART_PRECOMPILED_RUNTIME | 2672 #ifndef DART_PRECOMPILED_RUNTIME |
| 2673 if (isolate_->use_dart_frontend()) { | 2673 if (isolate_->use_dart_frontend()) { |
| 2674 has_func_literal_initializer = | 2674 has_func_literal_initializer = |
| 2675 kernel::KernelReader::FieldHasFunctionLiteralInitializer( | 2675 kernel::FieldHasFunctionLiteralInitializer(field, &start, &end); |
| 2676 field, &start, &end); | |
| 2677 } else { | 2676 } else { |
| 2678 #endif // !DART_PRECOMPILED_RUNTIME | 2677 #endif // !DART_PRECOMPILED_RUNTIME |
| 2679 has_func_literal_initializer = | 2678 has_func_literal_initializer = |
| 2680 Parser::FieldHasFunctionLiteralInitializer(field, &start, &end); | 2679 Parser::FieldHasFunctionLiteralInitializer(field, &start, &end); |
| 2681 #ifndef DART_PRECOMPILED_RUNTIME | 2680 #ifndef DART_PRECOMPILED_RUNTIME |
| 2682 } | 2681 } |
| 2683 #endif // !DART_PRECOMPILED_RUNTIME | 2682 #endif // !DART_PRECOMPILED_RUNTIME |
| 2684 | 2683 |
| 2685 if (has_func_literal_initializer) { | 2684 if (has_func_literal_initializer) { |
| 2686 if ((start <= token_pos && token_pos <= end) || | 2685 if ((start <= token_pos && token_pos <= end) || |
| (...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4361 | 4360 |
| 4362 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 4361 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 4363 ASSERT(bpt->next() == NULL); | 4362 ASSERT(bpt->next() == NULL); |
| 4364 bpt->set_next(code_breakpoints_); | 4363 bpt->set_next(code_breakpoints_); |
| 4365 code_breakpoints_ = bpt; | 4364 code_breakpoints_ = bpt; |
| 4366 } | 4365 } |
| 4367 | 4366 |
| 4368 #endif // !PRODUCT | 4367 #endif // !PRODUCT |
| 4369 | 4368 |
| 4370 } // namespace dart | 4369 } // namespace dart |
| OLD | NEW |