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

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

Issue 10836020: First step toward deoptimization using deoptimization info: splits deoptimization into two steps: c… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
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 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 1362
1363 // Parameter names are valid for all valid parameter indices, and are not 1363 // Parameter names are valid for all valid parameter indices, and are not
1364 // limited to named optional parameters. 1364 // limited to named optional parameters.
1365 RawString* ParameterNameAt(intptr_t index) const; 1365 RawString* ParameterNameAt(intptr_t index) const;
1366 void SetParameterNameAt(intptr_t index, const String& value) const; 1366 void SetParameterNameAt(intptr_t index, const String& value) const;
1367 void set_parameter_names(const Array& value) const; 1367 void set_parameter_names(const Array& value) const;
1368 1368
1369 // Sets function's code and code's function. 1369 // Sets function's code and code's function.
1370 void SetCode(const Code& value) const; 1370 void SetCode(const Code& value) const;
1371 1371
1372 // Disables optimized code and switches to unoptimized code.
1373 void SwitchToUnoptimizedCode() const;
1374
1372 // Return the most recently compiled and installed code for this function. 1375 // Return the most recently compiled and installed code for this function.
1373 // It is not the only Code object that points to this function. 1376 // It is not the only Code object that points to this function.
1374 RawCode* CurrentCode() const { return raw_ptr()->code_; } 1377 RawCode* CurrentCode() const { return raw_ptr()->code_; }
1375 1378
1376 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } 1379 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; }
1377 void set_unoptimized_code(const Code& value) const; 1380 void set_unoptimized_code(const Code& value) const;
1378 static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); } 1381 static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); }
1379 inline bool HasCode() const; 1382 inline bool HasCode() const;
1380 1383
1381 RawContextScope* context_scope() const { return raw_ptr()->context_scope_; } 1384 RawContextScope* context_scope() const { return raw_ptr()->context_scope_; }
(...skipping 3829 matching lines...) Expand 10 before | Expand all | Expand 10 after
5211 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5214 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5212 return false; 5215 return false;
5213 } 5216 }
5214 } 5217 }
5215 return true; 5218 return true;
5216 } 5219 }
5217 5220
5218 } // namespace dart 5221 } // namespace dart
5219 5222
5220 #endif // VM_OBJECT_H_ 5223 #endif // VM_OBJECT_H_
OLDNEW
« runtime/vm/isolate.h ('K') | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698