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

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

Issue 1857273002: Fix detection if a function was compiled, (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comments Created 4 years, 8 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.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) 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 5822 matching lines...) Expand 10 before | Expand all | Expand 10 after
5833 set_kind_tag(RecognizedBits::update(value, raw_ptr()->kind_tag_)); 5833 set_kind_tag(RecognizedBits::update(value, raw_ptr()->kind_tag_));
5834 } 5834 }
5835 5835
5836 5836
5837 void Function::set_token_pos(TokenPosition token_pos) const { 5837 void Function::set_token_pos(TokenPosition token_pos) const {
5838 ASSERT(!token_pos.IsClassifying() || IsMethodExtractor()); 5838 ASSERT(!token_pos.IsClassifying() || IsMethodExtractor());
5839 StoreNonPointer(&raw_ptr()->token_pos_, token_pos); 5839 StoreNonPointer(&raw_ptr()->token_pos_, token_pos);
5840 } 5840 }
5841 5841
5842 5842
5843 void Function::set_kind_tag(intptr_t value) const { 5843 void Function::set_kind_tag(uint32_t value) const {
5844 StoreNonPointer(&raw_ptr()->kind_tag_, static_cast<uint32_t>(value)); 5844 StoreNonPointer(&raw_ptr()->kind_tag_, static_cast<uint32_t>(value));
5845 } 5845 }
5846 5846
5847 5847
5848 void Function::set_num_fixed_parameters(intptr_t value) const { 5848 void Function::set_num_fixed_parameters(intptr_t value) const {
5849 ASSERT(value >= 0); 5849 ASSERT(value >= 0);
5850 ASSERT(Utils::IsInt(16, value)); 5850 ASSERT(Utils::IsInt(16, value));
5851 StoreNonPointer(&raw_ptr()->num_fixed_parameters_, 5851 StoreNonPointer(&raw_ptr()->num_fixed_parameters_,
5852 static_cast<int16_t>(value)); 5852 static_cast<int16_t>(value));
5853 } 5853 }
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
6485 result.set_is_external(is_external); 6485 result.set_is_external(is_external);
6486 result.set_is_native(is_native); 6486 result.set_is_native(is_native);
6487 result.set_is_reflectable(true); // Will be computed later. 6487 result.set_is_reflectable(true); // Will be computed later.
6488 result.set_is_visible(true); // Will be computed later. 6488 result.set_is_visible(true); // Will be computed later.
6489 result.set_is_debuggable(true); // Will be computed later. 6489 result.set_is_debuggable(true); // Will be computed later.
6490 result.set_is_intrinsic(false); 6490 result.set_is_intrinsic(false);
6491 result.set_is_redirecting(false); 6491 result.set_is_redirecting(false);
6492 result.set_is_generated_body(false); 6492 result.set_is_generated_body(false);
6493 result.set_always_inline(false); 6493 result.set_always_inline(false);
6494 result.set_is_polymorphic_target(false); 6494 result.set_is_polymorphic_target(false);
6495 result.set_was_compiled(false);
6495 result.set_owner(owner); 6496 result.set_owner(owner);
6496 result.set_token_pos(token_pos); 6497 result.set_token_pos(token_pos);
6497 result.set_end_token_pos(token_pos); 6498 result.set_end_token_pos(token_pos);
6498 result.set_num_fixed_parameters(0); 6499 result.set_num_fixed_parameters(0);
6499 result.set_num_optional_parameters(0); 6500 result.set_num_optional_parameters(0);
6500 result.set_usage_counter(0); 6501 result.set_usage_counter(0);
6501 result.set_deoptimization_counter(0); 6502 result.set_deoptimization_counter(0);
6502 result.set_optimized_instruction_count(0); 6503 result.set_optimized_instruction_count(0);
6503 result.set_optimized_call_site_count(0); 6504 result.set_optimized_call_site_count(0);
6504 result.set_is_optimizable(is_native ? false : true); 6505 result.set_is_optimizable(is_native ? false : true);
(...skipping 15356 matching lines...) Expand 10 before | Expand all | Expand 10 after
21861 return UserTag::null(); 21862 return UserTag::null();
21862 } 21863 }
21863 21864
21864 21865
21865 const char* UserTag::ToCString() const { 21866 const char* UserTag::ToCString() const {
21866 const String& tag_label = String::Handle(label()); 21867 const String& tag_label = String::Handle(label());
21867 return tag_label.ToCString(); 21868 return tag_label.ToCString();
21868 } 21869 }
21869 21870
21870 } // namespace dart 21871 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698