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

Side by Side Diff: src/spaces.cc

Issue 6894003: Better support for 'polymorphic' JS and external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: final review feedback Created 9 years, 7 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/objects-inl.h ('k') | src/stub-cache.h » ('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-2010 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
11 // with the distribution. 11 // with the distribution.
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 break 1557 break
1558 1558
1559 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { 1559 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) {
1560 switch (static_cast<Code::Kind>(i)) { 1560 switch (static_cast<Code::Kind>(i)) {
1561 CASE(FUNCTION); 1561 CASE(FUNCTION);
1562 CASE(OPTIMIZED_FUNCTION); 1562 CASE(OPTIMIZED_FUNCTION);
1563 CASE(STUB); 1563 CASE(STUB);
1564 CASE(BUILTIN); 1564 CASE(BUILTIN);
1565 CASE(LOAD_IC); 1565 CASE(LOAD_IC);
1566 CASE(KEYED_LOAD_IC); 1566 CASE(KEYED_LOAD_IC);
1567 CASE(KEYED_EXTERNAL_ARRAY_LOAD_IC);
1568 CASE(STORE_IC); 1567 CASE(STORE_IC);
1569 CASE(KEYED_STORE_IC); 1568 CASE(KEYED_STORE_IC);
1570 CASE(KEYED_EXTERNAL_ARRAY_STORE_IC);
1571 CASE(CALL_IC); 1569 CASE(CALL_IC);
1572 CASE(KEYED_CALL_IC); 1570 CASE(KEYED_CALL_IC);
1573 CASE(TYPE_RECORDING_UNARY_OP_IC); 1571 CASE(TYPE_RECORDING_UNARY_OP_IC);
1574 CASE(TYPE_RECORDING_BINARY_OP_IC); 1572 CASE(TYPE_RECORDING_BINARY_OP_IC);
1575 CASE(COMPARE_IC); 1573 CASE(COMPARE_IC);
1576 } 1574 }
1577 } 1575 }
1578 1576
1579 #undef CASE 1577 #undef CASE
1580 1578
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
3138 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { 3136 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) {
3139 if (obj->IsCode()) { 3137 if (obj->IsCode()) {
3140 Code* code = Code::cast(obj); 3138 Code* code = Code::cast(obj);
3141 isolate->code_kind_statistics()[code->kind()] += code->Size(); 3139 isolate->code_kind_statistics()[code->kind()] += code->Size();
3142 } 3140 }
3143 } 3141 }
3144 } 3142 }
3145 #endif // DEBUG 3143 #endif // DEBUG
3146 3144
3147 } } // namespace v8::internal 3145 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698