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

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

Issue 16844011: Revert r23330 and r23136 because of a bug with loop invariant code motion. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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_optimizer.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 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 1361
1362 // Return the most recently compiled and installed code for this function. 1362 // Return the most recently compiled and installed code for this function.
1363 // It is not the only Code object that points to this function. 1363 // It is not the only Code object that points to this function.
1364 RawCode* CurrentCode() const { return raw_ptr()->code_; } 1364 RawCode* CurrentCode() const { return raw_ptr()->code_; }
1365 1365
1366 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } 1366 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; }
1367 void set_unoptimized_code(const Code& value) const; 1367 void set_unoptimized_code(const Code& value) const;
1368 static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); } 1368 static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); }
1369 inline bool HasCode() const; 1369 inline bool HasCode() const;
1370 1370
1371 RawArray* deopt_history() const { return raw_ptr()->deopt_history_; }
1372 void set_deopt_history(const Array& value) const;
1373 // If not yet present, allocate deoptimization history array.
1374 void EnsureDeoptHistory() const;
1375
1376 // Returns true if there is at least one debugger breakpoint 1371 // Returns true if there is at least one debugger breakpoint
1377 // set in this function. 1372 // set in this function.
1378 bool HasBreakpoint() const; 1373 bool HasBreakpoint() const;
1379 1374
1380 RawContextScope* context_scope() const; 1375 RawContextScope* context_scope() const;
1381 void set_context_scope(const ContextScope& value) const; 1376 void set_context_scope(const ContextScope& value) const;
1382 1377
1383 // Enclosing function of this local function. 1378 // Enclosing function of this local function.
1384 RawFunction* parent_function() const; 1379 RawFunction* parent_function() const;
1385 1380
(...skipping 4530 matching lines...) Expand 10 before | Expand all | Expand 10 after
5916 5911
5917 5912
5918 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 5913 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
5919 intptr_t index) { 5914 intptr_t index) {
5920 return array.At((index * kEntryLength) + kTargetFunctionIndex); 5915 return array.At((index * kEntryLength) + kTargetFunctionIndex);
5921 } 5916 }
5922 5917
5923 } // namespace dart 5918 } // namespace dart
5924 5919
5925 #endif // VM_OBJECT_H_ 5920 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698