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

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

Issue 2584613002: PATCH (not to be comitted): Support for printing instruction statistics
Patch Set: Fixed polymorphic call inside try, added more tags for remaining unknown code Created 4 years 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/object.h ('k') | runtime/vm/precompiler.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 #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/become.h" 10 #include "vm/become.h"
(...skipping 14070 matching lines...) Expand 10 before | Expand all | Expand 10 after
14081 uword size = Code::InstanceSize(pointer_offsets_length); 14081 uword size = Code::InstanceSize(pointer_offsets_length);
14082 RawObject* raw = Object::Allocate(Code::kClassId, size, Heap::kOld); 14082 RawObject* raw = Object::Allocate(Code::kClassId, size, Heap::kOld);
14083 NoSafepointScope no_safepoint; 14083 NoSafepointScope no_safepoint;
14084 result ^= raw; 14084 result ^= raw;
14085 result.set_pointer_offsets_length(pointer_offsets_length); 14085 result.set_pointer_offsets_length(pointer_offsets_length);
14086 result.set_is_optimized(false); 14086 result.set_is_optimized(false);
14087 result.set_is_alive(false); 14087 result.set_is_alive(false);
14088 result.set_comments(Comments::New(0)); 14088 result.set_comments(Comments::New(0));
14089 result.set_compile_timestamp(0); 14089 result.set_compile_timestamp(0);
14090 result.set_pc_descriptors(Object::empty_descriptors()); 14090 result.set_pc_descriptors(Object::empty_descriptors());
14091 result.set_stats(NULL);
14091 } 14092 }
14092 return result.raw(); 14093 return result.raw();
14093 } 14094 }
14094 14095
14095 14096
14096 RawCode* Code::FinalizeCode(const char* name, 14097 RawCode* Code::FinalizeCode(const char* name,
14097 Assembler* assembler, 14098 Assembler* assembler,
14098 bool optimized) { 14099 bool optimized) {
14099 Isolate* isolate = Isolate::Current(); 14100 Isolate* isolate = Isolate::Current();
14100 if (!isolate->compilation_allowed()) { 14101 if (!isolate->compilation_allowed()) {
(...skipping 8665 matching lines...) Expand 10 before | Expand all | Expand 10 after
22766 return UserTag::null(); 22767 return UserTag::null();
22767 } 22768 }
22768 22769
22769 22770
22770 const char* UserTag::ToCString() const { 22771 const char* UserTag::ToCString() const {
22771 const String& tag_label = String::Handle(label()); 22772 const String& tag_label = String::Handle(label());
22772 return tag_label.ToCString(); 22773 return tag_label.ToCString();
22773 } 22774 }
22774 22775
22775 } // namespace dart 22776 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698