| 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/code_generator.h" | 5 #include "vm/code_generator.h" |
| 6 | 6 |
| 7 #include "vm/assembler_macros.h" | 7 #include "vm/assembler_macros.h" |
| 8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/dart_api_impl.h" | 10 #include "vm/dart_api_impl.h" |
| (...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 } | 1567 } |
| 1568 } | 1568 } |
| 1569 } | 1569 } |
| 1570 } | 1570 } |
| 1571 // The cache is null terminated, therefore the loop above should never | 1571 // The cache is null terminated, therefore the loop above should never |
| 1572 // terminate by itself. | 1572 // terminate by itself. |
| 1573 UNREACHABLE(); | 1573 UNREACHABLE(); |
| 1574 return Code::null(); | 1574 return Code::null(); |
| 1575 } | 1575 } |
| 1576 | 1576 |
| 1577 |
| 1578 // Adds a pointer to the store buffer. |
| 1579 // Arg0: the address of a field being stored into |
| 1580 DEFINE_LEAF_RUNTIME_ENTRY(StoreBuffer, 1) { |
| 1581 ASSERT(args.Count() == kStoreBufferRuntimeEntry.argument_count()); |
| 1582 uword ptr = reinterpret_cast<uword>(args.At(0)); |
| 1583 isolate->store_buffer()->AddPointer(ptr); |
| 1584 return Smi::New(0); // Just an arbitrary RawObject* value. |
| 1585 } |
| 1586 |
| 1577 } // namespace dart | 1587 } // namespace dart |
| OLD | NEW |