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

Side by Side Diff: runtime/vm/weak_code.cc

Issue 2827873002: Move runtime functions to the more logical runtime_entry.cc. (Closed)
Patch Set: sort Created 3 years, 8 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
« no previous file with comments | « runtime/vm/vm_sources.gypi ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 #include "vm/weak_code.h" 5 #include "vm/weak_code.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 8
9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
11 #include "vm/object.h" 10 #include "vm/object.h"
11 #include "vm/runtime_entry.h"
12 #include "vm/stack_frame.h" 12 #include "vm/stack_frame.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 bool WeakCodeReferences::HasCodes() const { 16 bool WeakCodeReferences::HasCodes() const {
17 return !array_.IsNull() && (array_.Length() > 0); 17 return !array_.IsNull() && (array_.Length() > 0);
18 } 18 }
19 19
20 20
21 void WeakCodeReferences::Register(const Code& value) { 21 void WeakCodeReferences::Register(const Code& value) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Make non-OSR code non-entrant. 126 // Make non-OSR code non-entrant.
127 if (!code.IsDisabled()) { 127 if (!code.IsDisabled()) {
128 ReportSwitchingCode(code); 128 ReportSwitchingCode(code);
129 code.DisableDartCode(); 129 code.DisableDartCode();
130 } 130 }
131 } 131 }
132 } 132 }
133 } 133 }
134 134
135 } // namespace dart 135 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/vm_sources.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698