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

Side by Side Diff: src/serialize.cc

Issue 9496010: Fix secondary stub cache and add a test for the stub cache lookups. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 9 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 // Stub cache tables 267 // Stub cache tables
268 Add(stub_cache->key_reference(StubCache::kPrimary).address(), 268 Add(stub_cache->key_reference(StubCache::kPrimary).address(),
269 STUB_CACHE_TABLE, 269 STUB_CACHE_TABLE,
270 1, 270 1,
271 "StubCache::primary_->key"); 271 "StubCache::primary_->key");
272 Add(stub_cache->value_reference(StubCache::kPrimary).address(), 272 Add(stub_cache->value_reference(StubCache::kPrimary).address(),
273 STUB_CACHE_TABLE, 273 STUB_CACHE_TABLE,
274 2, 274 2,
275 "StubCache::primary_->value"); 275 "StubCache::primary_->value");
276 Add(stub_cache->map_reference(StubCache::kPrimary).address(),
277 STUB_CACHE_TABLE,
278 3,
279 "StubCache::primary_->map");
276 Add(stub_cache->key_reference(StubCache::kSecondary).address(), 280 Add(stub_cache->key_reference(StubCache::kSecondary).address(),
277 STUB_CACHE_TABLE, 281 STUB_CACHE_TABLE,
278 3, 282 4,
279 "StubCache::secondary_->key"); 283 "StubCache::secondary_->key");
280 Add(stub_cache->value_reference(StubCache::kSecondary).address(), 284 Add(stub_cache->value_reference(StubCache::kSecondary).address(),
281 STUB_CACHE_TABLE, 285 STUB_CACHE_TABLE,
282 4, 286 5,
283 "StubCache::secondary_->value"); 287 "StubCache::secondary_->value");
288 Add(stub_cache->map_reference(StubCache::kSecondary).address(),
289 STUB_CACHE_TABLE,
290 6,
291 "StubCache::secondary_->map");
284 292
285 // Runtime entries 293 // Runtime entries
286 Add(ExternalReference::perform_gc_function(isolate).address(), 294 Add(ExternalReference::perform_gc_function(isolate).address(),
287 RUNTIME_ENTRY, 295 RUNTIME_ENTRY,
288 1, 296 1,
289 "Runtime::PerformGC"); 297 "Runtime::PerformGC");
290 Add(ExternalReference::fill_heap_number_with_random_function( 298 Add(ExternalReference::fill_heap_number_with_random_function(
291 isolate).address(), 299 isolate).address(),
292 RUNTIME_ENTRY, 300 RUNTIME_ENTRY,
293 2, 301 2,
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 int Serializer::SpaceAreaSize(int space) { 1666 int Serializer::SpaceAreaSize(int space) {
1659 if (space == CODE_SPACE) { 1667 if (space == CODE_SPACE) {
1660 return isolate_->memory_allocator()->CodePageAreaSize(); 1668 return isolate_->memory_allocator()->CodePageAreaSize();
1661 } else { 1669 } else {
1662 return Page::kPageSize - Page::kObjectStartOffset; 1670 return Page::kPageSize - Page::kObjectStartOffset;
1663 } 1671 }
1664 } 1672 }
1665 1673
1666 1674
1667 } } // namespace v8::internal 1675 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698