Chromium Code Reviews| 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 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1554 } | 1554 } |
| 1555 } | 1555 } |
| 1556 } | 1556 } |
| 1557 } | 1557 } |
| 1558 // The cache is null terminated, therefore the loop above should never | 1558 // The cache is null terminated, therefore the loop above should never |
| 1559 // terminate by itself. | 1559 // terminate by itself. |
| 1560 UNREACHABLE(); | 1560 UNREACHABLE(); |
| 1561 return Code::null(); | 1561 return Code::null(); |
| 1562 } | 1562 } |
| 1563 | 1563 |
| 1564 | |
| 1565 // Adds a pointer to the store buffer. | |
| 1566 // Arg0: pointer | |
| 1567 DEFINE_RUNTIME_ENTRY(StoreBuffer, 1) { | |
| 1568 ASSERT(arguments.Count() == kStoreBufferRuntimeEntry.argument_count()); | |
| 1569 RawObject* dest = arguments.At(0); | |
|
srdjan
2012/06/12 06:57:08
I would use the CheckedHandle thus verifying that
cshapiro
2012/06/12 21:41:01
This is not an object, just a field address. I th
| |
| 1570 uword ptr = reinterpret_cast<uword>(dest); | |
| 1571 isolate->store_buffer()->AddPointer(ptr); | |
| 1572 } | |
| 1573 | |
| 1564 } // namespace dart | 1574 } // namespace dart |
| OLD | NEW |