Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: runtime/vm/intermediate_language.h

Issue 11956004: Fix vm code base so that it can be built for --arch=simarm (no snapshot yet). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 17160)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, 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.
@@ -1608,12 +1608,22 @@
};
-class RangeBoundary : public ValueObject {
+class RangeBoundary {
public:
enum Kind { kUnknown, kSymbol, kConstant };
RangeBoundary() : kind_(kUnknown), value_(0), offset_(0) { }
+ RangeBoundary(const RangeBoundary& other)
+ : kind_(other.kind_), value_(other.value_), offset_(other.offset_) { }
+
+ RangeBoundary& operator=(const RangeBoundary& other) {
+ kind_ = other.kind_;
+ value_ = other.value_;
+ offset_ = other.offset_;
+ return *this;
+ }
+
static RangeBoundary FromConstant(intptr_t val) {
return RangeBoundary(kConstant, val, 0);
}
@@ -4192,11 +4202,20 @@
class Environment : public ZoneAllocated {
public:
// Iterate the non-NULL values in the innermost level of an environment.
- class ShallowIterator : public ValueObject {
+ class ShallowIterator {
public:
explicit ShallowIterator(Environment* environment)
: environment_(environment), index_(0) { }
+ ShallowIterator(const ShallowIterator& other)
+ : environment_(other.environment_), index_(other.index_) { }
+
+ ShallowIterator& operator=(const ShallowIterator& other) {
+ environment_ = other.environment_;
+ index_ = other.index_;
+ return *this;
+ }
+
Environment* environment() const { return environment_; }
void Advance() {

Powered by Google App Engine
This is Rietveld 408576698