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

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 10786003: Ensure objects emitted in code are allocated in old space. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 DISALLOW_COPY_AND_ASSIGN(UseVal); 330 DISALLOW_COPY_AND_ASSIGN(UseVal);
331 }; 331 };
332 332
333 333
334 class ConstantVal: public Value { 334 class ConstantVal: public Value {
335 public: 335 public:
336 explicit ConstantVal(const Object& value) 336 explicit ConstantVal(const Object& value)
337 : value_(value) { 337 : value_(value) {
338 ASSERT(value.IsZoneHandle()); 338 ASSERT(value.IsZoneHandle());
339 ASSERT(value.IsSmi() || value.IsOld());
339 } 340 }
340 341
341 DECLARE_VALUE(Constant) 342 DECLARE_VALUE(Constant)
342 343
343 const Object& value() const { return value_; } 344 const Object& value() const { return value_; }
344 345
345 private: 346 private:
346 const Object& value_; 347 const Object& value_;
347 348
348 DISALLOW_COPY_AND_ASSIGN(ConstantVal); 349 DISALLOW_COPY_AND_ASSIGN(ConstantVal);
(...skipping 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 const GrowableArray<BlockEntryInstr*>& block_order_; 2490 const GrowableArray<BlockEntryInstr*>& block_order_;
2490 2491
2491 private: 2492 private:
2492 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 2493 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
2493 }; 2494 };
2494 2495
2495 2496
2496 } // namespace dart 2497 } // namespace dart
2497 2498
2498 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 2499 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698