| 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 5508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5519 } | 5519 } |
| 5520 | 5520 |
| 5521 | 5521 |
| 5522 void Function::set_is_external(bool value) const { | 5522 void Function::set_is_external(bool value) const { |
| 5523 set_kind_tag(ExternalBit::update(value, raw_ptr()->kind_tag_)); | 5523 set_kind_tag(ExternalBit::update(value, raw_ptr()->kind_tag_)); |
| 5524 } | 5524 } |
| 5525 | 5525 |
| 5526 | 5526 |
| 5527 void Function::set_is_async_closure(bool value) const { | 5527 void Function::set_is_async_closure(bool value) const { |
| 5528 set_kind_tag(AsyncClosureBit::update(value, raw_ptr()->kind_tag_)); | 5528 set_kind_tag(AsyncClosureBit::update(value, raw_ptr()->kind_tag_)); |
| 5529 set_is_optimizable(false); | 5529 // Prohibit inlining as the closure is used for implementing a continuation. |
| 5530 set_is_inlinable(false); |
| 5530 } | 5531 } |
| 5531 | 5532 |
| 5532 | 5533 |
| 5533 void Function::set_token_pos(intptr_t value) const { | 5534 void Function::set_token_pos(intptr_t value) const { |
| 5534 ASSERT(value >= 0); | 5535 ASSERT(value >= 0); |
| 5535 raw_ptr()->token_pos_ = value; | 5536 raw_ptr()->token_pos_ = value; |
| 5536 } | 5537 } |
| 5537 | 5538 |
| 5538 | 5539 |
| 5539 void Function::set_kind_tag(intptr_t value) const { | 5540 void Function::set_kind_tag(intptr_t value) const { |
| (...skipping 13927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19467 return tag_label.ToCString(); | 19468 return tag_label.ToCString(); |
| 19468 } | 19469 } |
| 19469 | 19470 |
| 19470 | 19471 |
| 19471 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 19472 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 19472 Instance::PrintJSONImpl(stream, ref); | 19473 Instance::PrintJSONImpl(stream, ref); |
| 19473 } | 19474 } |
| 19474 | 19475 |
| 19475 | 19476 |
| 19476 } // namespace dart | 19477 } // namespace dart |
| OLD | NEW |