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

Side by Side Diff: src/serialize.cc

Issue 491004: Reapply keyed load cache probing in generated code. I introduced a... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « src/ic.h ('k') | src/x64/ic-x64.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); 477 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()");
478 Add(ExternalReference::re_check_stack_guard_state().address(), 478 Add(ExternalReference::re_check_stack_guard_state().address(),
479 UNCLASSIFIED, 479 UNCLASSIFIED,
480 20, 480 20,
481 "RegExpMacroAssembler*::CheckStackGuardState()"); 481 "RegExpMacroAssembler*::CheckStackGuardState()");
482 Add(ExternalReference::re_grow_stack().address(), 482 Add(ExternalReference::re_grow_stack().address(),
483 UNCLASSIFIED, 483 UNCLASSIFIED,
484 21, 484 21,
485 "NativeRegExpMacroAssembler::GrowStack()"); 485 "NativeRegExpMacroAssembler::GrowStack()");
486 #endif 486 #endif
487 // Keyed lookup cache.
488 Add(ExternalReference::keyed_lookup_cache_keys().address(),
489 UNCLASSIFIED,
490 22,
491 "KeyedLookupCache::keys()");
492 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(),
493 UNCLASSIFIED,
494 23,
495 "KeyedLookupCache::field_offsets()");
487 } 496 }
488 497
489 498
490 ExternalReferenceEncoder::ExternalReferenceEncoder() 499 ExternalReferenceEncoder::ExternalReferenceEncoder()
491 : encodings_(Match) { 500 : encodings_(Match) {
492 ExternalReferenceTable* external_references = 501 ExternalReferenceTable* external_references =
493 ExternalReferenceTable::instance(); 502 ExternalReferenceTable::instance();
494 for (int i = 0; i < external_references->size(); ++i) { 503 for (int i = 0; i < external_references->size(); ++i) {
495 Put(external_references->address(i), i); 504 Put(external_references->address(i), i);
496 } 505 }
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1221 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1213 } 1222 }
1214 } 1223 }
1215 int allocation_address = fullness_[space]; 1224 int allocation_address = fullness_[space];
1216 fullness_[space] = allocation_address + size; 1225 fullness_[space] = allocation_address + size;
1217 return allocation_address; 1226 return allocation_address;
1218 } 1227 }
1219 1228
1220 1229
1221 } } // namespace v8::internal 1230 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698