| 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 3322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3333 SetCode(Code::Handle(unoptimized_code())); | 3333 SetCode(Code::Handle(unoptimized_code())); |
| 3334 CodePatcher::RestoreEntry(Code::Handle(unoptimized_code())); | 3334 CodePatcher::RestoreEntry(Code::Handle(unoptimized_code())); |
| 3335 } | 3335 } |
| 3336 | 3336 |
| 3337 | 3337 |
| 3338 void Function::set_unoptimized_code(const Code& value) const { | 3338 void Function::set_unoptimized_code(const Code& value) const { |
| 3339 StorePointer(&raw_ptr()->unoptimized_code_, value.raw()); | 3339 StorePointer(&raw_ptr()->unoptimized_code_, value.raw()); |
| 3340 } | 3340 } |
| 3341 | 3341 |
| 3342 | 3342 |
| 3343 void Function::set_deopt_history(const Array& value) const { |
| 3344 StorePointer(&raw_ptr()->deopt_history_, value.raw()); |
| 3345 } |
| 3346 |
| 3347 |
| 3343 RawContextScope* Function::context_scope() const { | 3348 RawContextScope* Function::context_scope() const { |
| 3344 if (IsClosureFunction()) { | 3349 if (IsClosureFunction()) { |
| 3345 const Object& obj = Object::Handle(raw_ptr()->data_); | 3350 const Object& obj = Object::Handle(raw_ptr()->data_); |
| 3346 ASSERT(!obj.IsNull()); | 3351 ASSERT(!obj.IsNull()); |
| 3347 return ClosureData::Cast(obj).context_scope(); | 3352 return ClosureData::Cast(obj).context_scope(); |
| 3348 } | 3353 } |
| 3349 return ContextScope::null(); | 3354 return ContextScope::null(); |
| 3350 } | 3355 } |
| 3351 | 3356 |
| 3352 | 3357 |
| (...skipping 9888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13241 } | 13246 } |
| 13242 return result.raw(); | 13247 return result.raw(); |
| 13243 } | 13248 } |
| 13244 | 13249 |
| 13245 | 13250 |
| 13246 const char* WeakProperty::ToCString() const { | 13251 const char* WeakProperty::ToCString() const { |
| 13247 return "_WeakProperty"; | 13252 return "_WeakProperty"; |
| 13248 } | 13253 } |
| 13249 | 13254 |
| 13250 } // namespace dart | 13255 } // namespace dart |
| OLD | NEW |