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

Side by Side Diff: src/serialize.cc

Issue 8022002: Optimize KeyedStoreGeneric for Smi arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 2 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 | « src/ia32/stub-cache-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 42, 487 42,
488 "power_double_int_function"); 488 "power_double_int_function");
489 Add(ExternalReference::store_buffer_top(isolate).address(), 489 Add(ExternalReference::store_buffer_top(isolate).address(),
490 UNCLASSIFIED, 490 UNCLASSIFIED,
491 43, 491 43,
492 "store_buffer_top"); 492 "store_buffer_top");
493 Add(ExternalReference::arguments_marker_location(isolate).address(), 493 Add(ExternalReference::arguments_marker_location(isolate).address(),
494 UNCLASSIFIED, 494 UNCLASSIFIED,
495 44, 495 44,
496 "Factory::arguments_marker().location()"); 496 "Factory::arguments_marker().location()");
497 Add(ExternalReference::address_of_canonical_non_hole_nan().address(),
498 UNCLASSIFIED,
499 45,
500 "canonical_nan");
497 } 501 }
498 502
499 503
500 ExternalReferenceEncoder::ExternalReferenceEncoder() 504 ExternalReferenceEncoder::ExternalReferenceEncoder()
501 : encodings_(Match), 505 : encodings_(Match),
502 isolate_(Isolate::Current()) { 506 isolate_(Isolate::Current()) {
503 ExternalReferenceTable* external_references = 507 ExternalReferenceTable* external_references =
504 ExternalReferenceTable::instance(isolate_); 508 ExternalReferenceTable::instance(isolate_);
505 for (int i = 0; i < external_references->size(); ++i) { 509 for (int i = 0; i < external_references->size(); ++i) {
506 Put(external_references->address(i), i); 510 Put(external_references->address(i), i);
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1561 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1558 } 1562 }
1559 } 1563 }
1560 int allocation_address = fullness_[space]; 1564 int allocation_address = fullness_[space];
1561 fullness_[space] = allocation_address + size; 1565 fullness_[space] = allocation_address + size;
1562 return allocation_address; 1566 return allocation_address;
1563 } 1567 }
1564 1568
1565 1569
1566 } } // namespace v8::internal 1570 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698