| 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 9082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9093 StorePointer(&(VariableDescAddr(scope_index)->name), name.raw()); | 9093 StorePointer(&(VariableDescAddr(scope_index)->name), name.raw()); |
| 9094 } | 9094 } |
| 9095 | 9095 |
| 9096 | 9096 |
| 9097 bool ContextScope::IsFinalAt(intptr_t scope_index) const { | 9097 bool ContextScope::IsFinalAt(intptr_t scope_index) const { |
| 9098 return Bool::Handle(VariableDescAddr(scope_index)->is_final).value(); | 9098 return Bool::Handle(VariableDescAddr(scope_index)->is_final).value(); |
| 9099 } | 9099 } |
| 9100 | 9100 |
| 9101 | 9101 |
| 9102 void ContextScope::SetIsFinalAt(intptr_t scope_index, bool is_final) const { | 9102 void ContextScope::SetIsFinalAt(intptr_t scope_index, bool is_final) const { |
| 9103 VariableDescAddr(scope_index)->is_final = Bool::Get(is_final); | 9103 VariableDescAddr(scope_index)->is_final = Bool::Get(is_final).raw(); |
| 9104 } | 9104 } |
| 9105 | 9105 |
| 9106 | 9106 |
| 9107 bool ContextScope::IsConstAt(intptr_t scope_index) const { | 9107 bool ContextScope::IsConstAt(intptr_t scope_index) const { |
| 9108 return Bool::Handle(VariableDescAddr(scope_index)->is_const).value(); | 9108 return Bool::Handle(VariableDescAddr(scope_index)->is_const).value(); |
| 9109 } | 9109 } |
| 9110 | 9110 |
| 9111 | 9111 |
| 9112 void ContextScope::SetIsConstAt(intptr_t scope_index, bool is_const) const { | 9112 void ContextScope::SetIsConstAt(intptr_t scope_index, bool is_const) const { |
| 9113 VariableDescAddr(scope_index)->is_const = Bool::Get(is_const); | 9113 VariableDescAddr(scope_index)->is_const = Bool::Get(is_const).raw(); |
| 9114 } | 9114 } |
| 9115 | 9115 |
| 9116 | 9116 |
| 9117 RawAbstractType* ContextScope::TypeAt(intptr_t scope_index) const { | 9117 RawAbstractType* ContextScope::TypeAt(intptr_t scope_index) const { |
| 9118 ASSERT(!IsConstAt(scope_index)); | 9118 ASSERT(!IsConstAt(scope_index)); |
| 9119 return VariableDescAddr(scope_index)->type; | 9119 return VariableDescAddr(scope_index)->type; |
| 9120 } | 9120 } |
| 9121 | 9121 |
| 9122 | 9122 |
| 9123 void ContextScope::SetTypeAt( | 9123 void ContextScope::SetTypeAt( |
| (...skipping 5728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14852 } | 14852 } |
| 14853 | 14853 |
| 14854 | 14854 |
| 14855 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 14855 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 14856 stream->OpenObject(); | 14856 stream->OpenObject(); |
| 14857 stream->CloseObject(); | 14857 stream->CloseObject(); |
| 14858 } | 14858 } |
| 14859 | 14859 |
| 14860 | 14860 |
| 14861 } // namespace dart | 14861 } // namespace dart |
| OLD | NEW |