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

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

Issue 186623005: When running compile-all, clear code after compiling so that we do not out too much pressure on GC … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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/compiler.cc ('k') | runtime/vm/object.cc » ('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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 1473
1474 // Parameter names are valid for all valid parameter indices, and are not 1474 // Parameter names are valid for all valid parameter indices, and are not
1475 // limited to named optional parameters. 1475 // limited to named optional parameters.
1476 RawString* ParameterNameAt(intptr_t index) const; 1476 RawString* ParameterNameAt(intptr_t index) const;
1477 void SetParameterNameAt(intptr_t index, const String& value) const; 1477 void SetParameterNameAt(intptr_t index, const String& value) const;
1478 RawArray* parameter_names() const { return raw_ptr()->parameter_names_; } 1478 RawArray* parameter_names() const { return raw_ptr()->parameter_names_; }
1479 void set_parameter_names(const Array& value) const; 1479 void set_parameter_names(const Array& value) const;
1480 1480
1481 // Sets function's code and code's function. 1481 // Sets function's code and code's function.
1482 void SetCode(const Code& value) const; 1482 void SetCode(const Code& value) const;
1483 void ClearCode() const;
1483 1484
1484 // Disables optimized code and switches to unoptimized code. 1485 // Disables optimized code and switches to unoptimized code.
1485 void SwitchToUnoptimizedCode() const; 1486 void SwitchToUnoptimizedCode() const;
1486 1487
1487 // Return the most recently compiled and installed code for this function. 1488 // Return the most recently compiled and installed code for this function.
1488 // It is not the only Code object that points to this function. 1489 // It is not the only Code object that points to this function.
1489 RawCode* CurrentCode() const { return raw_ptr()->code_; } 1490 RawCode* CurrentCode() const { return raw_ptr()->code_; }
1490 1491
1491 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } 1492 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; }
1492 void set_unoptimized_code(const Code& value) const; 1493 void set_unoptimized_code(const Code& value) const;
(...skipping 5173 matching lines...) Expand 10 before | Expand all | Expand 10 after
6666 6667
6667 6668
6668 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6669 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6669 intptr_t index) { 6670 intptr_t index) {
6670 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6671 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6671 } 6672 }
6672 6673
6673 } // namespace dart 6674 } // namespace dart
6674 6675
6675 #endif // VM_OBJECT_H_ 6676 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698