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

Side by Side Diff: src/objects.cc

Issue 22601003: Out-of-line constant pool on Arm: Stage 2 - Introduce ConstantPoolArray object. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Enable pointers to be stored in ConstantPoolArray and add tests Created 7 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 } 1684 }
1685 break; 1685 break;
1686 } 1686 }
1687 return; 1687 return;
1688 } 1688 }
1689 1689
1690 switch (type) { 1690 switch (type) {
1691 case FIXED_ARRAY_TYPE: 1691 case FIXED_ARRAY_TYPE:
1692 FixedArray::BodyDescriptor::IterateBody(this, object_size, v); 1692 FixedArray::BodyDescriptor::IterateBody(this, object_size, v);
1693 break; 1693 break;
1694 case CONSTANT_POOL_ARRAY_TYPE:
1695 reinterpret_cast<ConstantPoolArray*>(this)->ConstantPoolIterateBody(v);
1696 break;
1694 case FIXED_DOUBLE_ARRAY_TYPE: 1697 case FIXED_DOUBLE_ARRAY_TYPE:
1695 break; 1698 break;
1696 case JS_OBJECT_TYPE: 1699 case JS_OBJECT_TYPE:
1697 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 1700 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
1698 case JS_GENERATOR_OBJECT_TYPE: 1701 case JS_GENERATOR_OBJECT_TYPE:
1699 case JS_MODULE_TYPE: 1702 case JS_MODULE_TYPE:
1700 case JS_VALUE_TYPE: 1703 case JS_VALUE_TYPE:
1701 case JS_DATE_TYPE: 1704 case JS_DATE_TYPE:
1702 case JS_ARRAY_TYPE: 1705 case JS_ARRAY_TYPE:
1703 case JS_ARRAY_BUFFER_TYPE: 1706 case JS_ARRAY_BUFFER_TYPE:
(...skipping 14402 matching lines...) Expand 10 before | Expand all | Expand 10 after
16106 #define ERROR_MESSAGES_TEXTS(C, T) T, 16109 #define ERROR_MESSAGES_TEXTS(C, T) T,
16107 static const char* error_messages_[] = { 16110 static const char* error_messages_[] = {
16108 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16111 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16109 }; 16112 };
16110 #undef ERROR_MESSAGES_TEXTS 16113 #undef ERROR_MESSAGES_TEXTS
16111 return error_messages_[reason]; 16114 return error_messages_[reason];
16112 } 16115 }
16113 16116
16114 16117
16115 } } // namespace v8::internal 16118 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698