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

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

Issue 132163005: Version 1.1.0-dev.5.7 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/profiler.cc » ('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 4823 matching lines...) Expand 10 before | Expand all | Expand 10 after
4834 4834
4835 4835
4836 bool Function::IsNativeAutoSetupScope() const { 4836 bool Function::IsNativeAutoSetupScope() const {
4837 return is_native() ? is_optimizable() : false; 4837 return is_native() ? is_optimizable() : false;
4838 } 4838 }
4839 4839
4840 4840
4841 void Function::SetIsOptimizable(bool value) const { 4841 void Function::SetIsOptimizable(bool value) const {
4842 ASSERT(!is_native()); 4842 ASSERT(!is_native());
4843 set_is_optimizable(value); 4843 set_is_optimizable(value);
4844 if (!value) {
4845 set_is_inlinable(false);
4846 }
4844 } 4847 }
4845 4848
4846 4849
4847 void Function::SetIsNativeAutoSetupScope(bool value) const { 4850 void Function::SetIsNativeAutoSetupScope(bool value) const {
4848 ASSERT(is_native()); 4851 ASSERT(is_native());
4849 set_is_optimizable(value); 4852 set_is_optimizable(value);
4850 } 4853 }
4851 4854
4852 void Function::set_is_optimizable(bool value) const { 4855 void Function::set_is_optimizable(bool value) const {
4853 set_kind_tag(OptimizableBit::update(value, raw_ptr()->kind_tag_)); 4856 set_kind_tag(OptimizableBit::update(value, raw_ptr()->kind_tag_));
(...skipping 12073 matching lines...) Expand 10 before | Expand all | Expand 10 after
16927 return "_MirrorReference"; 16930 return "_MirrorReference";
16928 } 16931 }
16929 16932
16930 16933
16931 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 16934 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
16932 Instance::PrintToJSONStream(stream, ref); 16935 Instance::PrintToJSONStream(stream, ref);
16933 } 16936 }
16934 16937
16935 16938
16936 } // namespace dart 16939 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698