| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/code_generator.h" | 5 #include "vm/code_generator.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/ast.h" | 8 #include "vm/ast.h" |
| 9 #include "vm/bigint_operations.h" | 9 #include "vm/bigint_operations.h" |
| 10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
| (...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 if (FLAG_trace_patching) { | 1262 if (FLAG_trace_patching) { |
| 1263 OS::PrintErr("FixCallersTarget: patching from %#" Px " to '%s' %#" Px "\n", | 1263 OS::PrintErr("FixCallersTarget: patching from %#" Px " to '%s' %#" Px "\n", |
| 1264 frame->pc(), | 1264 frame->pc(), |
| 1265 target_function.ToFullyQualifiedCString(), | 1265 target_function.ToFullyQualifiedCString(), |
| 1266 current_target_code.EntryPoint()); | 1266 current_target_code.EntryPoint()); |
| 1267 } | 1267 } |
| 1268 arguments.SetReturn(current_target_code); | 1268 arguments.SetReturn(current_target_code); |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 | 1271 |
| 1272 const char* DeoptReasonToCString(ICData::ICData::DeoptReasonId deopt_reason) { | 1272 const char* DeoptReasonToCString(ICData::DeoptReasonId deopt_reason) { |
| 1273 switch (deopt_reason) { | 1273 switch (deopt_reason) { |
| 1274 #define DEOPT_REASON_TO_TEXT(name) case ICData::kDeopt##name: return #name; | 1274 #define DEOPT_REASON_TO_TEXT(name) case ICData::kDeopt##name: return #name; |
| 1275 DEOPT_REASONS(DEOPT_REASON_TO_TEXT) | 1275 DEOPT_REASONS(DEOPT_REASON_TO_TEXT) |
| 1276 #undef DEOPT_REASON_TO_TEXT | 1276 #undef DEOPT_REASON_TO_TEXT |
| 1277 default: | 1277 default: |
| 1278 UNREACHABLE(); | 1278 UNREACHABLE(); |
| 1279 return ""; | 1279 return ""; |
| 1280 } | 1280 } |
| 1281 } | 1281 } |
| 1282 | 1282 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1497 // of the given value. | 1497 // of the given value. |
| 1498 // Arg0: Field object; | 1498 // Arg0: Field object; |
| 1499 // Arg1: Value that is being stored. | 1499 // Arg1: Value that is being stored. |
| 1500 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { | 1500 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { |
| 1501 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); | 1501 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); |
| 1502 const Object& value = Object::Handle(arguments.ArgAt(1)); | 1502 const Object& value = Object::Handle(arguments.ArgAt(1)); |
| 1503 field.UpdateGuardedCidAndLength(value); | 1503 field.UpdateGuardedCidAndLength(value); |
| 1504 } | 1504 } |
| 1505 | 1505 |
| 1506 } // namespace dart | 1506 } // namespace dart |
| OLD | NEW |