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

Side by Side Diff: vm/code_descriptors.cc

Issue 10025003: Revert change 6302 until the compiler warning is addressed. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « vm/code_descriptors.h ('k') | vm/code_descriptors_test.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/code_descriptors.h" 5 #include "vm/code_descriptors.h"
6 6
7 namespace dart { 7 namespace dart {
8 8
9 void DescriptorList::AddDescriptor(PcDescriptors::Kind kind, 9 void DescriptorList::AddDescriptor(PcDescriptors::Kind kind,
10 intptr_t pc_offset, 10 intptr_t pc_offset,
(...skipping 20 matching lines...) Expand all
31 Kind(i), 31 Kind(i),
32 NodeId(i), 32 NodeId(i),
33 TokenIndex(i), 33 TokenIndex(i),
34 TryIndex(i)); 34 TryIndex(i));
35 } 35 }
36 return descriptors.raw(); 36 return descriptors.raw();
37 } 37 }
38 38
39 39
40 void StackmapBuilder::AddEntry(intptr_t pc_offset) { 40 void StackmapBuilder::AddEntry(intptr_t pc_offset) {
41 stack_map_ = Stackmap::New(pc_offset, builder_); 41 stack_map_ = Stackmap::New(pc_offset, code_, builder_);
42 list_.Add(stack_map_); 42 list_.Add(stack_map_);
43 } 43 }
44 44
45 45
46 bool StackmapBuilder::Verify() { 46 bool StackmapBuilder::Verify() {
47 intptr_t num_entries = Length(); 47 intptr_t num_entries = Length();
48 Stackmap& map1 = Stackmap::Handle(); 48 Stackmap& map1 = Stackmap::Handle();
49 Stackmap& map2 = Stackmap::Handle(); 49 Stackmap& map2 = Stackmap::Handle();
50 for (intptr_t i = 1; i < num_entries; i++) { 50 for (intptr_t i = 1; i < num_entries; i++) {
51 map1 = Map(i - 1); 51 map1 = Map(i - 1);
(...skipping 23 matching lines...) Expand all
75 } 75 }
76 76
77 77
78 RawStackmap* StackmapBuilder::Map(int index) const { 78 RawStackmap* StackmapBuilder::Map(int index) const {
79 Stackmap& map = Stackmap::Handle(); 79 Stackmap& map = Stackmap::Handle();
80 map ^= list_.At(index); 80 map ^= list_.At(index);
81 return map.raw(); 81 return map.raw();
82 } 82 }
83 83
84 } // namespace dart 84 } // namespace dart
OLDNEW
« no previous file with comments | « vm/code_descriptors.h ('k') | vm/code_descriptors_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698