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/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 13473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13484 Function& function = Function::ZoneHandle(); | 13484 Function& function = Function::ZoneHandle(); |
13485 function ^= id_map.At(inlining_id); | 13485 function ^= id_map.At(inlining_id); |
13486 fs->Add(&function); | 13486 fs->Add(&function); |
13487 inlining_id = caller_id; | 13487 inlining_id = caller_id; |
13488 caller_id = GetCallerId(inlining_id); | 13488 caller_id = GetCallerId(inlining_id); |
13489 } | 13489 } |
13490 } | 13490 } |
13491 | 13491 |
13492 | 13492 |
13493 void Code::DumpInlinedIntervals() const { | 13493 void Code::DumpInlinedIntervals() const { |
13494 LogBlock lb(Isolate::Current()); | 13494 LogBlock lb(Thread::Current()); |
13495 ISL_Print("Inlined intervals:\n"); | 13495 ISL_Print("Inlined intervals:\n"); |
13496 const Array& intervals = Array::Handle(GetInlinedIntervals()); | 13496 const Array& intervals = Array::Handle(GetInlinedIntervals()); |
13497 if (intervals.IsNull() || (intervals.Length() == 0)) return; | 13497 if (intervals.IsNull() || (intervals.Length() == 0)) return; |
13498 Smi& start = Smi::Handle(); | 13498 Smi& start = Smi::Handle(); |
13499 Smi& inlining_id = Smi::Handle(); | 13499 Smi& inlining_id = Smi::Handle(); |
13500 GrowableArray<Function*> inlined_functions; | 13500 GrowableArray<Function*> inlined_functions; |
13501 const Function& inliner = Function::Handle(function()); | 13501 const Function& inliner = Function::Handle(function()); |
13502 for (intptr_t i = 0; i < intervals.Length(); i += Code::kInlIntNumEntries) { | 13502 for (intptr_t i = 0; i < intervals.Length(); i += Code::kInlIntNumEntries) { |
13503 start ^= intervals.At(i + Code::kInlIntStart); | 13503 start ^= intervals.At(i + Code::kInlIntStart); |
13504 ASSERT(!start.IsNull()); | 13504 ASSERT(!start.IsNull()); |
(...skipping 8040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21545 return tag_label.ToCString(); | 21545 return tag_label.ToCString(); |
21546 } | 21546 } |
21547 | 21547 |
21548 | 21548 |
21549 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21549 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
21550 Instance::PrintJSONImpl(stream, ref); | 21550 Instance::PrintJSONImpl(stream, ref); |
21551 } | 21551 } |
21552 | 21552 |
21553 | 21553 |
21554 } // namespace dart | 21554 } // namespace dart |
OLD | NEW |