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

Side by Side Diff: vm/scanner.cc

Issue 10797021: - Start using the collected store buffer entries to find (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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/object.cc ('k') | vm/scavenger.h » ('j') | vm/scavenger.cc » ('J')
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/scanner.h" 5 #include "vm/scanner.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/object_store.h" 10 #include "vm/object_store.h"
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 935
936 RawString* Scanner::AllocatePrivateKey(const Library& library) { 936 RawString* Scanner::AllocatePrivateKey(const Library& library) {
937 const String& url = String::Handle(library.url()); 937 const String& url = String::Handle(library.url());
938 intptr_t key_value = url.Hash(); 938 intptr_t key_value = url.Hash();
939 while (Library::IsKeyUsed(key_value)) { 939 while (Library::IsKeyUsed(key_value)) {
940 key_value++; 940 key_value++;
941 } 941 }
942 char private_key[32]; 942 char private_key[32];
943 OS::SNPrint(private_key, sizeof(private_key), 943 OS::SNPrint(private_key, sizeof(private_key),
944 "%c%"PRIxPTR, kPrivateKeySeparator, key_value); 944 "%c%"PRIxPTR, kPrivateKeySeparator, key_value);
945 const String& result = String::Handle(String::New(private_key)); 945 const String& result = String::Handle(String::New(private_key, Heap::kOld));
946 return result.raw(); 946 return result.raw();
947 } 947 }
948 948
949 949
950 void Scanner::InitOnce() { 950 void Scanner::InitOnce() {
951 } 951 }
952 952
953 } // namespace dart 953 } // namespace dart
OLDNEW
« no previous file with comments | « vm/object.cc ('k') | vm/scavenger.h » ('j') | vm/scavenger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698