dbd08016de
calling out into the C++ runtime. Review URL: https://chromiumcodereview.appspot.com//10578046 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8929 260f80e4-7a28-3924-810f-c04153c831b5
27 lines
657 B
C++
27 lines
657 B
C++
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#include "vm/store_buffer.h"
|
|
|
|
#include "platform/assert.h"
|
|
|
|
namespace dart {
|
|
|
|
void StoreBufferBlock::ProcessBuffer() {
|
|
// TODO(iposva): Do the right thing for store buffer overflow.
|
|
top_ = 0; // Currently just reset back to the beginning.
|
|
}
|
|
|
|
|
|
bool StoreBufferBlock::Contains(uword pointer) {
|
|
for (int32_t i = 0; i < top_; i++) {
|
|
if (pointers_[i] == pointer) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
} // namespace dart
|