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

Side by Side Diff: src/objects-inl.h

Issue 7112010: Plumbing changes to merge various element kind implementaions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 6 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.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 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 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after
2839 return static_cast<CheckType>(type); 2839 return static_cast<CheckType>(type);
2840 } 2840 }
2841 2841
2842 2842
2843 void Code::set_check_type(CheckType value) { 2843 void Code::set_check_type(CheckType value) {
2844 ASSERT(is_call_stub() || is_keyed_call_stub()); 2844 ASSERT(is_call_stub() || is_keyed_call_stub());
2845 WRITE_BYTE_FIELD(this, kCheckTypeOffset, value); 2845 WRITE_BYTE_FIELD(this, kCheckTypeOffset, value);
2846 } 2846 }
2847 2847
2848 2848
2849 ExternalArrayType Code::external_array_type() {
2850 ASSERT(is_keyed_load_stub() || is_keyed_store_stub());
2851 byte type = READ_BYTE_FIELD(this, kExternalArrayTypeOffset);
2852 return static_cast<ExternalArrayType>(type);
2853 }
2854
2855
2856 void Code::set_external_array_type(ExternalArrayType value) {
2857 ASSERT(is_keyed_load_stub() || is_keyed_store_stub());
2858 WRITE_BYTE_FIELD(this, kExternalArrayTypeOffset, value);
2859 }
2860
2861
2862 byte Code::unary_op_type() { 2849 byte Code::unary_op_type() {
2863 ASSERT(is_unary_op_stub()); 2850 ASSERT(is_unary_op_stub());
2864 return READ_BYTE_FIELD(this, kUnaryOpTypeOffset); 2851 return READ_BYTE_FIELD(this, kUnaryOpTypeOffset);
2865 } 2852 }
2866 2853
2867 2854
2868 void Code::set_unary_op_type(byte value) { 2855 void Code::set_unary_op_type(byte value) {
2869 ASSERT(is_unary_op_stub()); 2856 ASSERT(is_unary_op_stub());
2870 WRITE_BYTE_FIELD(this, kUnaryOpTypeOffset, value); 2857 WRITE_BYTE_FIELD(this, kUnaryOpTypeOffset, value);
2871 } 2858 }
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
4428 #undef WRITE_INT_FIELD 4415 #undef WRITE_INT_FIELD
4429 #undef READ_SHORT_FIELD 4416 #undef READ_SHORT_FIELD
4430 #undef WRITE_SHORT_FIELD 4417 #undef WRITE_SHORT_FIELD
4431 #undef READ_BYTE_FIELD 4418 #undef READ_BYTE_FIELD
4432 #undef WRITE_BYTE_FIELD 4419 #undef WRITE_BYTE_FIELD
4433 4420
4434 4421
4435 } } // namespace v8::internal 4422 } } // namespace v8::internal
4436 4423
4437 #endif // V8_OBJECTS_INL_H_ 4424 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698