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

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

Issue 1304243008: Load predefined symbols address via Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/intrinsifier_x64.cc ('k') | runtime/vm/thread.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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 11022 matching lines...) Expand 10 before | Expand all | Expand 10 after
11033 11033
11034 RuntimeFunctionId rt_id = RuntimeEntry::RuntimeFunctionIdFromAddress(addr); 11034 RuntimeFunctionId rt_id = RuntimeEntry::RuntimeFunctionIdFromAddress(addr);
11035 if (rt_id != kNoRuntimeFunctionId) { 11035 if (rt_id != kNoRuntimeFunctionId) {
11036 return "runtime entry"; 11036 return "runtime entry";
11037 } 11037 }
11038 11038
11039 if (addr == NativeEntry::LinkNativeCallLabel().address()) { 11039 if (addr == NativeEntry::LinkNativeCallLabel().address()) {
11040 return "link native"; 11040 return "link native";
11041 } 11041 }
11042 11042
11043 if (addr == reinterpret_cast<uword>(Symbols::PredefinedAddress())) {
11044 return "predefined symbols";
11045 }
11046
11047 return "UNKNOWN"; 11043 return "UNKNOWN";
11048 } 11044 }
11049 11045
11050 11046
11051 void ObjectPool::DebugPrint() const { 11047 void ObjectPool::DebugPrint() const {
11052 ISL_Print("Object Pool: {\n"); 11048 ISL_Print("Object Pool: {\n");
11053 for (intptr_t i = 0; i < Length(); i++) { 11049 for (intptr_t i = 0; i < Length(); i++) {
11054 intptr_t offset = OffsetFromIndex(i); 11050 intptr_t offset = OffsetFromIndex(i);
11055 ISL_Print(" %" Pd " PP+0x%" Px ": ", i, offset); 11051 ISL_Print(" %" Pd " PP+0x%" Px ": ", i, offset);
11056 if (InfoAt(i) == kTaggedObject) { 11052 if (InfoAt(i) == kTaggedObject) {
(...skipping 10451 matching lines...) Expand 10 before | Expand all | Expand 10 after
21508 return tag_label.ToCString(); 21504 return tag_label.ToCString();
21509 } 21505 }
21510 21506
21511 21507
21512 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21508 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21513 Instance::PrintJSONImpl(stream, ref); 21509 Instance::PrintJSONImpl(stream, ref);
21514 } 21510 }
21515 21511
21516 21512
21517 } // namespace dart 21513 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698