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

Side by Side Diff: src/serialize.cc

Issue 8344045: Fast elements conversions in crankshaft using generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 42, 483 42,
484 "power_double_int_function"); 484 "power_double_int_function");
485 Add(ExternalReference::store_buffer_top(isolate).address(), 485 Add(ExternalReference::store_buffer_top(isolate).address(),
486 UNCLASSIFIED, 486 UNCLASSIFIED,
487 43, 487 43,
488 "store_buffer_top"); 488 "store_buffer_top");
489 Add(ExternalReference::address_of_canonical_non_hole_nan().address(), 489 Add(ExternalReference::address_of_canonical_non_hole_nan().address(),
490 UNCLASSIFIED, 490 UNCLASSIFIED,
491 44, 491 44,
492 "canonical_nan"); 492 "canonical_nan");
493 Add(ExternalReference::address_of_the_hole_nan().address(),
494 UNCLASSIFIED,
495 45,
496 "the_hole_nan");
493 } 497 }
494 498
495 499
496 ExternalReferenceEncoder::ExternalReferenceEncoder() 500 ExternalReferenceEncoder::ExternalReferenceEncoder()
497 : encodings_(Match), 501 : encodings_(Match),
498 isolate_(Isolate::Current()) { 502 isolate_(Isolate::Current()) {
499 ExternalReferenceTable* external_references = 503 ExternalReferenceTable* external_references =
500 ExternalReferenceTable::instance(isolate_); 504 ExternalReferenceTable::instance(isolate_);
501 for (int i = 0; i < external_references->size(); ++i) { 505 for (int i = 0; i < external_references->size(); ++i) {
502 Put(external_references->address(i), i); 506 Put(external_references->address(i), i);
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1557 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1554 } 1558 }
1555 } 1559 }
1556 int allocation_address = fullness_[space]; 1560 int allocation_address = fullness_[space];
1557 fullness_[space] = allocation_address + size; 1561 fullness_[space] = allocation_address + size;
1558 return allocation_address; 1562 return allocation_address;
1559 } 1563 }
1560 1564
1561 1565
1562 } } // namespace v8::internal 1566 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698