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

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

Issue 6123007: Fixes needed to compile on gcc-4.4.1 on ARM. It is still necessary... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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/jsregexp.cc ('k') | src/objects-visiting.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2231 static_cast<byte>(value)); 2231 static_cast<byte>(value));
2232 } 2232 }
2233 2233
2234 2234
2235 InstanceType Map::instance_type() { 2235 InstanceType Map::instance_type() {
2236 return static_cast<InstanceType>(READ_BYTE_FIELD(this, kInstanceTypeOffset)); 2236 return static_cast<InstanceType>(READ_BYTE_FIELD(this, kInstanceTypeOffset));
2237 } 2237 }
2238 2238
2239 2239
2240 void Map::set_instance_type(InstanceType value) { 2240 void Map::set_instance_type(InstanceType value) {
2241 ASSERT(0 <= value && value < 256);
2242 WRITE_BYTE_FIELD(this, kInstanceTypeOffset, value); 2241 WRITE_BYTE_FIELD(this, kInstanceTypeOffset, value);
2243 } 2242 }
2244 2243
2245 2244
2246 int Map::unused_property_fields() { 2245 int Map::unused_property_fields() {
2247 return READ_BYTE_FIELD(this, kUnusedPropertyFieldsOffset); 2246 return READ_BYTE_FIELD(this, kUnusedPropertyFieldsOffset);
2248 } 2247 }
2249 2248
2250 2249
2251 void Map::set_unused_property_fields(int value) { 2250 void Map::set_unused_property_fields(int value) {
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
3209 return code() != Builtins::builtin(Builtins::LazyCompile); 3208 return code() != Builtins::builtin(Builtins::LazyCompile);
3210 } 3209 }
3211 3210
3212 3211
3213 int JSFunction::NumberOfLiterals() { 3212 int JSFunction::NumberOfLiterals() {
3214 return literals()->length(); 3213 return literals()->length();
3215 } 3214 }
3216 3215
3217 3216
3218 Object* JSBuiltinsObject::javascript_builtin(Builtins::JavaScript id) { 3217 Object* JSBuiltinsObject::javascript_builtin(Builtins::JavaScript id) {
3219 ASSERT(0 <= id && id < kJSBuiltinsCount); 3218 ASSERT(id < kJSBuiltinsCount); // id is unsigned.
3220 return READ_FIELD(this, OffsetOfFunctionWithId(id)); 3219 return READ_FIELD(this, OffsetOfFunctionWithId(id));
3221 } 3220 }
3222 3221
3223 3222
3224 void JSBuiltinsObject::set_javascript_builtin(Builtins::JavaScript id, 3223 void JSBuiltinsObject::set_javascript_builtin(Builtins::JavaScript id,
3225 Object* value) { 3224 Object* value) {
3226 ASSERT(0 <= id && id < kJSBuiltinsCount); 3225 ASSERT(id < kJSBuiltinsCount); // id is unsigned.
3227 WRITE_FIELD(this, OffsetOfFunctionWithId(id), value); 3226 WRITE_FIELD(this, OffsetOfFunctionWithId(id), value);
3228 WRITE_BARRIER(this, OffsetOfFunctionWithId(id)); 3227 WRITE_BARRIER(this, OffsetOfFunctionWithId(id));
3229 } 3228 }
3230 3229
3231 3230
3232 Code* JSBuiltinsObject::javascript_builtin_code(Builtins::JavaScript id) { 3231 Code* JSBuiltinsObject::javascript_builtin_code(Builtins::JavaScript id) {
3233 ASSERT(0 <= id && id < kJSBuiltinsCount); 3232 ASSERT(id < kJSBuiltinsCount); // id is unsigned.
3234 return Code::cast(READ_FIELD(this, OffsetOfCodeWithId(id))); 3233 return Code::cast(READ_FIELD(this, OffsetOfCodeWithId(id)));
3235 } 3234 }
3236 3235
3237 3236
3238 void JSBuiltinsObject::set_javascript_builtin_code(Builtins::JavaScript id, 3237 void JSBuiltinsObject::set_javascript_builtin_code(Builtins::JavaScript id,
3239 Code* value) { 3238 Code* value) {
3240 ASSERT(0 <= id && id < kJSBuiltinsCount); 3239 ASSERT(id < kJSBuiltinsCount); // id is unsigned.
3241 WRITE_FIELD(this, OffsetOfCodeWithId(id), value); 3240 WRITE_FIELD(this, OffsetOfCodeWithId(id), value);
3242 ASSERT(!Heap::InNewSpace(value)); 3241 ASSERT(!Heap::InNewSpace(value));
3243 } 3242 }
3244 3243
3245 3244
3246 Address Proxy::proxy() { 3245 Address Proxy::proxy() {
3247 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kProxyOffset)); 3246 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kProxyOffset));
3248 } 3247 }
3249 3248
3250 3249
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
3850 #undef WRITE_INT_FIELD 3849 #undef WRITE_INT_FIELD
3851 #undef READ_SHORT_FIELD 3850 #undef READ_SHORT_FIELD
3852 #undef WRITE_SHORT_FIELD 3851 #undef WRITE_SHORT_FIELD
3853 #undef READ_BYTE_FIELD 3852 #undef READ_BYTE_FIELD
3854 #undef WRITE_BYTE_FIELD 3853 #undef WRITE_BYTE_FIELD
3855 3854
3856 3855
3857 } } // namespace v8::internal 3856 } } // namespace v8::internal
3858 3857
3859 #endif // V8_OBJECTS_INL_H_ 3858 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/objects-visiting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698